pp108 : getData()

getData()


It retrieves data available in the model.

Syntax

Script oData = modelID.getData()


Return Value


Returns the current data available in the model.

Remarks


In case of Transactional models, the typical data format returned will be of<dataset><data>form as<dataset> <data> <...> <tuple> <old> <...>.

In case of non-transactional models, there will be no<dataset><data>appended to the actual response.

Example

This sample code demonstrates how the method can be used.

//alert the business element name from data
var data = EmployeesModel.getData();
alert(cordys.selectXMLNode(data,".//*[local-name()='tuple']/*[local-name()='old']").nodeName);

Applies to


Model

Related reference

getAllDataset()
showAll()