Thursday, January 19, 2012

How to see the data present in Model in XML form

Lets assume,you have drag and drop certain WebServices into UI.
A Default Model will be created for that.
That model default behavior is automatic,Means when the page is loaded,it will do the task wat it  is intended for.
If the Webservices was made to fetch the data from db,it will do it automatically,
If Certain record has to be updated with static data,it will do it automatically.

To see the data present in Model in XML form,use this approach

alert(GetAllEmployeesModel.getData().xml);
alert(cordys.getXML(GetAllEmployeesModel.getData()));

Assuming GetAllEmployeesModel is the model name,ie created when u dragdrop getAllEmployees() related webservice

No comments:

Post a Comment