Page 1 of 1

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

Posted: Mon May 26, 2014 12:51 pm
by luke315774

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?


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

Posted: Mon May 26, 2014 3:07 pm
by Evgene Karachevtsev

Hello LUke,

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


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

Posted: Mon May 26, 2014 3:28 pm
by luke315774

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

Everything was working good last week..


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

Posted: Mon May 26, 2014 5:55 pm
by luke315774

data is not JSON it's XML I think.


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

Posted: Mon May 26, 2014 8:20 pm
by Maryna Brodina

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.


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

Posted: Mon May 26, 2014 8:31 pm
by luke315774

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


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

Posted: Tue May 27, 2014 12:00 pm
by luke315774

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


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

Posted: Tue May 27, 2014 12:45 pm
by luke315774

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

Thank You!


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

Posted: Tue May 27, 2014 1:04 pm
by Kateryna Grynko

Luke,

Thank you for the feedback! Glad it works.