Examples: AddCommandToCmdBar()


The following example is a portion of the IG_CreateToolbars procedure in the sample integrating application. It uses the AddCommandToCmdBar() function to add two commands to the toolbar created for the sample integration.

local integer Seq;
local integer status;

{Add default items to the toolbar}
Seq = 1;
status = AddCommandToCmdBar(IG_PROD_ID,
	resourceid(form Command_IG_Sample),
	resourceid(command CL_IG_Sample_CMDBAR of form Command_IG_Sample),
	Seq,
	IG_PROD_ID,
	resourceid(form Command_IG_Sample),
	resourceid(command IG_Lead_Maintenance of form Command_IG_Sample),
	true, {available for all users}
	MENULOAD_TOTABLE);

increment Seq;
status = AddCommandToCmdBar(IG_PROD_ID,
	resourceid(form Command_IG_Sample),
	resourceid(command CL_IG_Sample_CMDBAR of form Command_IG_Sample),
	Seq,
	IG_PROD_ID,
	resourceid(form Command_IG_Sample),
	resourceid(command IG_Lead_Inquiry of form Command_IG_Sample),
	true, {available for all users}
	MENULOAD_TOTABLE);


Documentation Feedback