Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

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

Thanks! Yurii will check and get back to you!

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

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

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.

Ellen Schlechter
Posts: 0
Joined: Sun Aug 31, 2014 3:28 am

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

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

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

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

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.

Ellen Schlechter
Posts: 0
Joined: Sun Aug 31, 2014 3:28 am

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

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

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

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

Try to delete datasource and create it again..

It seems you have done something wrong.

Regards.

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

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

Hi Ellen,

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

Regards.

Ellen Schlechter
Posts: 0
Joined: Sun Aug 31, 2014 3:28 am

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

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.

Return to “Issues”