The first item in each Navigation pane category is a link to the Area Page for that category. The Area Page displays links that allow the user to navigate to various windows and reports that are part of the category.
A command is used to define the Area Page content for a Navigation pane category. Typically, you will add the command for the Area Page to the same command form that you are using for the other commands in your integration. Refer to Commands for more information about commands for an integrating application.
The command used for the Area Page should have the following characteristics:
Command Name The command name should indicate that the command is being used for an area page. For instance, the command for the sample integrating application is named AreaPage_IGSample.
Display Name This name is used for the text of the Area Page link that appears in the Navigation Pane.
Type The command type must be set to Script. The script defines what items are displayed in the Area Page. Details of this script are found in the next section.
Image Type This should be set to Icon.
Normal Image This should be set to AreaPage.
The content of the Area Page is defined by the script attached to the command used for it. You will use procedures described in Area Page scripts to create the content for the Area Page. The command script performs the following actions:
The following example shows the code for command that defines the sample Area Page in the sample integrating application.
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 {Cards} call AddContentArea of form syAreaPageXML, XMLState, getmsg(9823) {Cards}, IMAGE_CARDS of form syAreaPageXML, true, 1; call AddCommand of form syAreaPageXML, XMLState, command IG_Lead_Maintenance of form Command_IG_Sample; {Reports} call AddContentArea of form syAreaPageXML, XMLState, getmsg(451) {Reports}, IMAGE_REPORTS of form syAreaPageXML, true, 1; call AddCommand of form syAreaPageXML, XMLState, command IG_Lead_Reports of form Command_IG_Sample; {Inquiry} call AddContentArea of form syAreaPageXML, XMLState, getmsg(4426) {Inquiry}, IMAGE_INQUIRY of form syAreaPageXML, true, 2; call AddCommand of form syAreaPageXML, XMLState, command IG_Lead_Inquiry of form Command_IG_Sample; {Setup} call AddContentArea of form syAreaPageXML, XMLState, getmsg(860) {Setup}, IMAGE_SETUP of form syAreaPageXML, true, 2; call AddCommand of form syAreaPageXML, XMLState, command IG_Contact_History_Setup of form Command_IG_Sample; end if; {Display the Area Page} call Display of form syAreaPageXML, XMLState;