Page 3 of 12

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

Posted: Wed Dec 03, 2014 7:28 pm
by Evgene Karachevtsev

Ellen,

You use wrong query for 'where' parameter in your request.
1) Please clarify, what value mobilelabel_320 has?
2) Could you please test it in a service first ( openservice tab - test tab- click test )to be sure ?


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

Posted: Wed Dec 03, 2014 7:48 pm
by Ellen Schlechter

My apologies, the second screen shot was the wrong one. The one I meant to post was a register button that basically didn't the same thing except register. My app is shared with support and called Test App if you would like to take a look. The register page is called startScreen.


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

Posted: Fri Dec 05, 2014 5:57 am
by Yurii Orishchuk

Hi Ellen,

Please give us your app public link cause of we have several applications with name "Test App".

Regards.


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

Posted: Fri Dec 05, 2014 12:14 pm
by Ellen Schlechter

I changed the name to Ellens Test App so hopefully help you out a little.

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


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

Posted: Sat Dec 06, 2014 11:42 pm
by Ellen Schlechter

Have you gotten the change to take a look?


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

Posted: Sun Dec 07, 2014 10:45 pm
by Yurii Orishchuk

Hi Ellen,

You have following JS code in one of your mapping on "Screen1" page:

pre

Code: Select all

                 { 
                     "_id": "hereIsYourUserIdYouWantToTest" 
                 } 

/pre

http://prntscr.com/5ectku/direct

You should replace it with:

pre

var someVar = {"_id": "hereIsYourUserIdYouWantToTest"};

/pre

Regards.


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

Posted: Sun Dec 07, 2014 11:02 pm
by Ellen Schlechter

Great thank you! Now I can get into my app to test it!

Okay, now back to the original issue.
There is an _id in the label before anything is even in the database so I do not know where it is coming from. It also doesn't save to the database the first time I click save, or ever for that matter. However, it does keep the settings as long as I don't log out.


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

Posted: Mon Dec 08, 2014 5:33 am
by Yurii Orishchuk

Hi Ellen,

It's hard to say what is wrong in your implementation.

You need to debug your app.

Please read more about it here: http://devcenter.appery.io/documentat...

Regards.


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

Posted: Mon Dec 08, 2014 4:55 pm
by Ellen Schlechter

I get this error message when I click the save button.
Image


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

Posted: Tue Dec 09, 2014 5:49 am
by Yurii Orishchuk

Hi Ellen,

Take a look on the following screen shot:

http://prntscr.com/5es8lw/direct

Regards.