Examples: Unregister


The following example is the change script for the PresenceChangeEventTrigger field in the Lead Inquiry window of the sample integrating application. This script handles two cases based on the value it is set to when the change script is run. When its value is -1, the script unregisters all of the presence indicators for the fields in the window. When its value is a specific presence field instance number, only that presence indicator is unregistered.

local string form_name;
local string window_name;

form_name = "IG_Lead_Inquiry";
window_name = "IG_Lead_Inquiry";

case PresenceChangeEventTrigger
	in [-1]
		{Unregister all of the presence triggers for the window}
		call Unregister of form Dummy_Presence_Form, form_name, window_name, 1, Label_Presence[1], 'Salesperson ID', CO_INETADDRS_SALESPERSON, "", IG_PROD_ID;
	in [1]
		{Unregister a specific presence trigger for the window}
		call Unregister of form Dummy_Presence_Form, form_name, window_name, 1, Label_Presence[1], 'Salesperson ID', CO_INETADDRS_SALESPERSON, "", IG_PROD_ID;
end case;


Documentation Feedback