Page 6 of 12

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

Posted: Mon Dec 15, 2014 1:43 pm
by Ellen Schlechter

Shared and called App with tutorial


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

Posted: Mon Dec 15, 2014 1:48 pm
by Maryna Brodina

Thanks! Yurii will check and get back to you!


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

Posted: Tue Dec 16, 2014 12:27 am
by Yurii Orishchuk

Hi Ellen,

Thanks, i've checked it.

So your problem is in trying to attach via mapping link different types directly.

"Checked" property - requires boolean type.
Read more about it type here: http://www.w3schools.com/js/js_boolea...

Details: http://prntscr.com/5hb5i4/direct

So you should click on JS and implement there convertion from "string" to "boolean".

Regards.


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

Posted: Tue Dec 16, 2014 12:51 am
by Ellen Schlechter

Well in the database the columns are boolean? So shouldn't they already be boolean?


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

Posted: Tue Dec 16, 2014 5:57 am
by Yurii Orishchuk

Try to add following JS code to JS section of this link:

pre

console.log("type = " + typeof(value));
console.log("value = " + value);

return value;

/pre

This code should help you to debug your code.

Regards.


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

Posted: Tue Dec 16, 2014 1:53 pm
by Ellen Schlechter

I got all sorts of errors. Image
This is what I get when I click the link. Image


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

Posted: Wed Dec 17, 2014 1:48 am
by Yurii Orishchuk

Try to delete datasource and create it again..

It seems you have done something wrong.

Regards.


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

Posted: Wed Dec 17, 2014 5:20 am
by Ellen Schlechter

I did that, nothing changed


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

Posted: Wed Dec 17, 2014 5:49 am
by Yurii Orishchuk

Hi Ellen,

Give us your app public link and describe steps to reproduce this issue.

Regards.


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

Posted: Wed Dec 17, 2014 2:07 pm
by Ellen Schlechter

http://appery.io/app/mobile-frame?src...

Here is the link. If you create an account and when it navigates you to the next page, click the setting button in the upper right corner. From there, thats where the check boxes are that I want to create, then later update. The save button should execute the update service IF something has already been created. But there are now issues with creating it. It saves everything as false even if the checkbox is checked.