Page 1 of 1

How to invoke a datasource from JS?

Posted: Thu Mar 06, 2014 10:29 pm
by steilpass

So I have an update and create datasource which I like to from the same button depending on the state of the object.

I thought about just running JavaScript and invoking the datasource from there. But how would I do that?


How to invoke a datasource from JS?

Posted: Thu Mar 06, 2014 10:58 pm
by Illya Stepanov

Hello,

Here is the common code to invoke service of the create service:
pre
createService_name.execute({"data": { "someField": "someValue"}});
/pre

For calling other services is the same. Different only in "data" and service Name.

Regards.