The AddContentArea method defined for the syAreaPageXML form adds a top-level content area to the Area Page.
AddContentArea of form syAreaPageXML, XML_state, display_name, image, expanded, column
• XML_state – A composite parameter of the type AreaPageXMLState that is used to maintain state information for the Area Page.
• display_name – A string parameter that specifies the title displayed for the content area. Consider using one of the getmsg() function and one of the following message values to retrieve the string to display for the standard content areas:
Content area |
Message number |
---|---|
Cards |
9823 |
Inquiry |
4426 |
Reports |
451 |
Routines |
11456 |
Setup |
860 |
Transactions |
1232 |
Utilities |
4080 |
• image – A string parameter that specifies the relative path to the image to be displayed for the content area. The path is relative to the Background folder found in the Microsoft Dynamics GP installation. Use one of the following constants defined for the syAreaPageXML form to specify the image for the standard content areas:
Content area |
Constant |
---|---|
Cards |
IMAGE_CARDS |
Inquiry |
IMAGE_INQUIRY |
Reports |
IMAGE_REPORTS |
Routines |
IMAGE_ROUTINES |
Setup |
IMAGE_SETUP |
Transactions |
IMAGE_TRANSACTIONS |
Utilities |
IMAGE_UTILITIES |
• expanded – A boolean that specifies whether the content area is expanded. The value true specifies that it is, while false specifies that it is not.
• column – An integer that specifies the column the content area is located in. Indicate column 1 or column 2.
The following illustration shows the Cards content area that was added to an Area Page for Microsoft Dynamics GP. It contains one item.