Page 11 of 12

Is it possible to have the same button run both a create service and an update service?

Posted: Wed Jan 21, 2015 3:36 am
by Ellen Schlechter

That error is no longer there but it still changes the ACL even with the code implemented. Image Image

Would changing any of these help?
Image


Is it possible to have the same button run both a create service and an update service?

Posted: Fri Jan 23, 2015 5:54 am
by Ellen Schlechter

Did these screen shots help at all?


Is it possible to have the same button run both a create service and an update service?

Posted: Mon Jan 26, 2015 1:48 am
by Ellen Schlechter

Do you have an update here yet?


Is it possible to have the same button run both a create service and an update service?

Posted: Mon Jan 26, 2015 9:09 am
by Maryna Brodina

Hello Ellen!

Not yet, sorry... I'll ping dev team.


Is it possible to have the same button run both a create service and an update service?

Posted: Mon Jan 26, 2015 6:52 pm
by Illya Stepanov

Hi Ellen -

What JS code do you have placed for you ACL parameter?


Is it possible to have the same button run both a create service and an update service?

Posted: Mon Jan 26, 2015 6:56 pm
by Ellen Schlechter

Return undefined;


Is it possible to have the same button run both a create service and an update service?

Posted: Mon Jan 26, 2015 8:15 pm
by Illya Stepanov

Try use: return "";
or
return null;


Is it possible to have the same button run both a create service and an update service?

Posted: Tue Jan 27, 2015 2:20 am
by Ellen Schlechter

When I used return ""; the update service wouldn't even work right. I then tried return null; and with that code, there is nothing in the ACL field instead of the right value for the user who created it.


Is it possible to have the same button run both a create service and an update service?

Posted: Tue Feb 03, 2015 4:49 am
by Yurii Orishchuk

Hi Ellen,

pre

return undefined;

/pre

Is correct code..

Could you please try to add new one datasource, and give it name "testDatasource".

Then use that code for "acl" field.

And then invoke this service on the page load.

After, please take a look at the console network tab to see actual request.

Regards.


Is it possible to have the same button run both a create service and an update service?

Posted: Tue Feb 03, 2015 5:06 am
by Ellen Schlechter

The add button when I try to add a new service doesn't work. I've tried Safari and Chrome and when I try to add a new service it doesn't do anything at all.