João Galvão
Posts: 0
Joined: Sat Apr 26, 2014 11:54 am

Uncaught SyntaxError: Unexpected end of input

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

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Uncaught SyntaxError: Unexpected end of input

Hello João,

Please show us Service Settings and Request tabs screen shots.

João Galvão
Posts: 0
Joined: Sat Apr 26, 2014 11:54 am

Uncaught SyntaxError: Unexpected end of input

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

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

Uncaught SyntaxError: Unexpected end of input

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...

João Galvão
Posts: 0
Joined: Sat Apr 26, 2014 11:54 am

Uncaught SyntaxError: Unexpected end of input

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

João Galvão
Posts: 0
Joined: Sat Apr 26, 2014 11:54 am

Uncaught SyntaxError: Unexpected end of input

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.

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

Uncaught SyntaxError: Unexpected end of input

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

João Galvão
Posts: 0
Joined: Sat Apr 26, 2014 11:54 am

Uncaught SyntaxError: Unexpected end of input

login:jpgalvao
pwd: ggh

João Galvão
Posts: 0
Joined: Sat Apr 26, 2014 11:54 am

Uncaught SyntaxError: Unexpected end of input

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

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Uncaught SyntaxError: Unexpected end of input

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.

Return to “Issues”