Examples: AddSecurityTaskOperation()


The following is a portion of the IG_CreateSecurityData prodcure for the sample integrating application. It adds security operations to the CART_IGSAMPLE_01 task. A form operation, table operation, report operation, the various list operations, and a SmartList operation are added to the security task.

local long status;
local string taskID;

taskID = "CARD_IGSAMPLE_01";

{Lead Maintenance form}
status = AddSecurityTaskOperation(taskID,
	IG_PROD_ID,
	FORMTYPE,
	resourceid(form IG_Lead_Maintenance)) 
	of form sySecurityTaskOperations;

{Leads report}
status = AddSecurityTaskOperation(taskID,
	IG_PROD_ID,
	REPORTTYPE,
	resourceid(report IG_Leads)) 
	of form sySecurityTaskOperations;

{Lead master table}
status = AddSecurityTaskOperation(taskID,
	IG_PROD_ID,
	TABLETYPE,
	resourceid(table IG_Leads_MSTR))
	of form sySecurityTaskOperations;

{Leads list - Base List}
{The value 1 is the ID of the Lead list}
status = AddSecurityTaskOperation(taskID,
	IG_PROD_ID,
	SECURITYTYPE_LISTS,
	BuildDictSpecificID(LISTSECURITYTYPE_LIST, 1))
	of form sySecurityTaskOperations;

{Leads list - Information Pane}
status = AddSecurityTaskOperation(taskID,
	IG_PROD_ID,
	SECURITYTYPE_LISTS,
	BuildDictSpecificID(LISTSECURITYTYPE_PREVPANE, 1)) 
	of form sySecurityTaskOperations;

{Leads list - Customization}
status = AddSecurityTaskOperation(taskID,
	IG_PROD_ID,
	SECURITYTYPE_LISTS,
	BuildDictSpecificID(LISTSECURITYTYPE_CUSTOMIZE, 1)) 
	of form sySecurityTaskOperations;

{Leads SmartList}
status = AddSecurityTaskOperation(taskID,
	SMARTLIST,
	1000, {Use constant SECURITYTYPE_SMARTLISTOBJECT in GP 10 SP1 and later}
	BuildDictSpecificID(IG_PROD_ID, SMARTLIST_OBJECTTYPE_LEADS))
	of form sySecurityTaskOperations;


Documentation Feedback