Salesforce

DbXmlExist (Magic xpa 4.x)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

DbXmlExist (Magic xpa 4.x)

Returns a true value if an XML structure stored in a Blob variable contains the element on which the view is defined.

The XML view must include one 'main' complex and/or repeatable and/or recursive element.

When loading an XML view, the task's data view contains records of that 'main' element.

This function completes XML views by providing a way to avoid calling a task to process a certain XML view, if the XML (Blob variable) that the task assigns for a data source does not contain any records belonging to that XML view.

You can improve your programs' performance by using this function as an efficient stop condition when processing recursive XML views.

Syntax:

DbXmlExist(data-source index, blob variable)

Parameters:

data-source index: an index in the Data repository

blob variable: an XML content

Returns:

Logical; A True value if the XML contain elements according to the view defined in the data source.

Note:

This is a server-side function.

Example:

DbXmlExist Example

See also:

The Online and Rich Client Samples projects (program XM19 and RXM19)

Reference
Attachment 
Attachment