Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

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

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 ?

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?

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.

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,

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

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 changed the name to Ellens Test App so hopefully help you out a little.

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

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,

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.

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?

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.

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,

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.

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 get this error message when I click the save button.
Image

Return to “Issues”