luke315774
Posts: 0
Joined: Mon Mar 17, 2014 6:33 pm

"On success" custom javascript no longer work since last appery update (data parameter)

Hi, since last update of Appery feature, some of our custom javascript code seems to be broken.

I think it has to do with the format of the "data" parameter on "success" event.

has an example, we had that line of code : if (data.response.status == "0" && data.response.totalRow == "1") {

Here is a screen shot of javascript console. First I logged the "data" parameter and next you see the error..

Image

What exactly is happening? Has the format of the data parameters changed since last update?

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

"On success" custom javascript no longer work since last appery update (data parameter)

Hello LUke,

Please add this line to the beginning of the event handler success:
var data = JSON.parse (data);

luke315774
Posts: 0
Joined: Mon Mar 17, 2014 6:33 pm

"On success" custom javascript no longer work since last appery update (data parameter)

I get another error after I added the line.:
Image

Everything was working good last week..

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

"On success" custom javascript no longer work since last appery update (data parameter)

Hello!

We are going to roll back recent update. See more details here

http://blog.appery.io/2014/05/importa...

We are sorry for inconvenience.

luke315774
Posts: 0
Joined: Mon Mar 17, 2014 6:33 pm

"On success" custom javascript no longer work since last appery update (data parameter)

Ok, thank you.

The new features we're looking really good if it would not have been for breaking our existing app.

I'm looking forward for them!

Thanks

luke315774
Posts: 0
Joined: Mon Mar 17, 2014 6:33 pm

"On success" custom javascript no longer work since last appery update (data parameter)

My app now execute has suppose but in the development environment, I can't see the services mapping.

It's obviously should be there, my app would not work otherwise...

luke315774
Posts: 0
Joined: Mon Mar 17, 2014 6:33 pm

"On success" custom javascript no longer work since last appery update (data parameter)

Alright, I refreshed the browser and my services mapping now appear!

Thank You!

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

"On success" custom javascript no longer work since last appery update (data parameter)

Luke,

Thank you for the feedback! Glad it works.

Return to “Issues”