Page 1 of 2

Uncaught SyntaxError: Unexpected end of input

Posted: Sat Apr 26, 2014 12:07 pm
by João Galvão

I've build a appery application where i need to update a record.
I've a collection called cards where i've created 2 DB fields called cardphoto and cardphoto2.
When i'm trying to update this collection with the default created db service i'm receiving this error.
Image
This is the mapping that i'm doing for the service.
Image

Can any one tell me the error that i'm doing, because i cannot see it.
BR


Uncaught SyntaxError: Unexpected end of input

Posted: Sat Apr 26, 2014 12:21 pm
by Alena Prykhodko

Hello João,

Please show us Service Settings and Request tabs screen shots.


Uncaught SyntaxError: Unexpected end of input

Posted: Sat Apr 26, 2014 1:41 pm
by João Galvão

Is i understand correctly this is the Service settings:

Image

I've tested directly in the service and it returns correctly

Image

This are the events and screens:

Image

Image

If you need to go inside the application i can provide you login and password

Thanks


Uncaught SyntaxError: Unexpected end of input

Posted: Sat Apr 26, 2014 2:15 pm
by Igor

Hello,

When you test service in the "Test" tab is it return "Test successful" ?
http://docs.appery.io/documentation/r...

You can share app link and tell us the steps how can we reproduce this.
http://docs.appery.io/documentation/s...


Uncaught SyntaxError: Unexpected end of input

Posted: Sat Apr 26, 2014 2:20 pm
by João Galvão

Regarding the test, as you can see in one of the images that I've shared it returns success ( this is a update service ).

I've shared it
http://appery.io/app/mobile-frame?src...

Image

Thanks


Uncaught SyntaxError: Unexpected end of input

Posted: Sat Apr 26, 2014 2:24 pm
by João Galvão

To reproduce, if you have the chrome you can go to the development tools ans see it.

The main problem is that when i click the Save button it always throws a error.

If you are available i can contact you any way and if you have the tools i can show you directly my problem.


Uncaught SyntaxError: Unexpected end of input

Posted: Sat Apr 26, 2014 2:28 pm
by Igor

Can you also tell us username/password to login to the app?


Uncaught SyntaxError: Unexpected end of input

Posted: Sat Apr 26, 2014 2:38 pm
by João Galvão

login:jpgalvao
pwd: ggh


Uncaught SyntaxError: Unexpected end of input

Posted: Sun Apr 27, 2014 3:22 pm
by João Galvão

Hello Igor or Alena,

Could you find any solution for this problem ?
Now i'm having another beaver, i'm receiving no events, but never the less it does not update any record.

Thanks


Uncaught SyntaxError: Unexpected end of input

Posted: Mon Apr 28, 2014 3:21 am
by Alena Prykhodko

Hello,

There is no mistakes with your service and mapping.

But with your click (on button) action.

To fix this problem follow next steps below:

1 Delete "save" button click event handler (which redirects to the page).

2 Navigate to the data tab. And for update service create event handler on "success" event select Navigate to the page and choose destination page.