steilpass
Posts: 0
Joined: Wed Mar 05, 2014 4:47 pm

How to invoke a datasource from JS?

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?

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

How to invoke a datasource from JS?

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.

Return to “Issues”