Examples: AddNavBarButton()


The following example is the IG_CreateNavigationBarButton procedure for the sample integrating application. It adds the Sample button to the Navigation pane.

local string sWhere;
local integer nStatus;
local integer nSeq;

{Find out whether the Navigation pane categories for this product have already been added}
sWhere = physicalname('CmdParentDictID' of table syNavBarButtons) + CH_SPACE + CH_EQUAL + CH_SPACE + str(IG_PROD_ID);

range clear table syNavBarButtons;
range table syNavBarButtons where sWhere;
get first table syNavBarButtons;
if err() = OKAY then
	abort script;
end if;

nSeq = 0;

{Add the button to navigation}
nStatus = AddNavBarButton("",
	nSeq,
	true,
	IG_PROD_ID,
	resourceid(form Command_IG_Sample),
	resourceid(command Navigation_IGSample of form Command_IG_Sample),
	0,
	0,
	0,
	true) of form syNavBarBtnObj;


Documentation Feedback