Examples: XMLDoc_AddLineItem


The following is a portion of the GeneratePreviewPaneXML procedure for the Contact History transaction list in the sample integrating application. This portion of the script uses the XMLDoc_AddLineItem procedure creates a new line item for the Information Pane. It then uses the XMLDoc_AddLineItemValue procedure to add values to that new line item.

local ListPrevPaneXMLState XMLState;
local reference RowValuesElement;

{Add the line items}
{First Contact}
call XMLDoc_AddLineItem of form syListObj, XMLState, RowValuesElement;
sValue = "First Contact";
call XMLDoc_AddLineItemValue of form syListObj, XMLState, RowValuesElement, sValue, false;

sValue = List_FormatDate('First Contact Date' of table(Contact_History_MSTR_Temp), LIST_FORMATFOR_PREVPANE) of form syListObj;
call XMLDoc_AddLineItemValue of form syListObj, XMLState, RowValuesElement, sValue, false;

sValue = 'Contact Salesperson ID' of table(Contact_History_MSTR_Temp);
call XMLDoc_AddLineItemValue of form syListObj, XMLState, RowValuesElement, sValue, false;


Documentation Feedback