Johnny
Posts: 0
Joined: Tue Jul 23, 2013 10:09 am

update fields

Hi there

I created a update service and I map the fields like this:
Image

On the ERROR event I put this code:
alert("Error. Please contact us with this number e-11");

So now I keep getting error on update.

My ideal code must check if fields are empty if it is empty it must create a new row in collections.

If there is something it must update.

But if you can help with the update I would really appreciate it!

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

update fields

Hello! Do you use any code to check if the field is empty? Could you post it? Are there any errors in console when you invoke service?

Johnny
Posts: 0
Joined: Tue Jul 23, 2013 10:09 am

update fields

no errors and all the fields do have a value in them.

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

update fields

Could you clarify when you want to make update (and what field should be updated) and when you want to create new record? By the way most likely you recieve this error while update because you didn't map object_id

Johnny
Posts: 0
Joined: Tue Jul 23, 2013 10:09 am

update fields

"By the way most likely you recieve this error while update because you didn't map object_id"

Ok what must map to object_id

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

update fields

id of object you want to update. Please check out tutorials http://docs.appery.io/documentation/b...
http://docs.appery.io/tutorials/build...

Return to “Issues”