Integration Services

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

Steve James
Ebase User
Posts: 331
Joined: Mon Mar 10, 2014 8:34 am

Integration Services

#1

Postby Steve James » Tue Jul 22, 2014 6:43 am

Hopefully an easy question to answer.

Is it possible for a script (js preferably but fpl if necessary) to get at the full request document? I know I can get at individual fields / tables within the request doc.

I've looked through the documentation and cannot see anything.

Thanks
0 x

Steve
Moderator
Moderator
Posts: 421
Joined: Fri Sep 07, 2007 3:44 pm
Location: Sandy, UK
Contact:

#2

Postby Steve » Wed Jul 30, 2014 7:29 am

Hi Steve,

You can use Ebase JavaScript API to get/set the request and response documents from a XML related resource. Then you can use E4X to iterate over the document.

Code: Select all

var w3c = resources.MY_INTEGRATION_SERVICE.getDocument('REQUEST');
var xml = new XML(w3c);

//do something with the document

for each (var customer in xml.customers) {
    log(customer.name);
}

Additional documentation can be found here:

http://dev-docs.verj.io/ufs/doc/Javascript_XML.htm

I hope this helps.
0 x

Steve James
Ebase User
Posts: 331
Joined: Mon Mar 10, 2014 8:34 am

#3

Postby Steve James » Mon Aug 11, 2014 2:02 pm

Thanks Steve
0 x


Who is online

Users browsing this forum: No registered users and 23 guests