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?
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?
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.