Examples: AddItems


The following example adds the items from the CL_Purchasing_Reports command list to the content area for the Area Page being defined.

local AreaPageXMLState XMLState;

call Command_HideAndDisable, command CustomizeHomePage of form Command_System;

{Add items to the Area page}
call Create of form syAreaPageXML, XMLState, "Sample";

{Add items if needed}
if not empty(XMLState:XMLDoc) then

	call AddContentArea of form syAreaPageXML, XMLState,  getmsg(451) {Reports}, IMAGE_REPORTS of form syAreaPageXML, true, 1;

	call AddItems of form syAreaPageXML, XMLState, command CL_Purchasing_Reports of form Command_Purchasing;

end if;

call Display of form syAreaPageXML, XMLState;


Documentation Feedback