Page 1 of 1

Repopulating REST Service Response Structure results in loss of mappings and custom javascript

Posted: Fri Mar 16, 2012 8:41 pm
by Al Veitas

If you have an existing REST Service(s) that is mapped to screens and you "Populate Structure", all of your mappings are lossed AND any custom JavaScript is lossed


Repopulating REST Service Response Structure results in loss of mappings and custom javascript

Posted: Fri Mar 16, 2012 9:54 pm
by maxkatz

Yes, but that's mostly because there is no way for us to know if the new response structure will be the same or completely different. Even the same service can return different JSON. If we try to merge, you will end up with data mapping that's all messed up.


Repopulating REST Service Response Structure results in loss of mappings and custom javascript

Posted: Fri Mar 16, 2012 10:02 pm
by Al Veitas

Agreed, but the suggestion would be to warn the user that this will happen: "Your mappings and custom javascript will be lossed. Are you sure you want to continue?"

We lossed custom javascript.


Repopulating REST Service Response Structure results in loss of mappings and custom javascript

Posted: Sun Mar 18, 2012 11:45 pm
by maxkatz

Agree, we'll add this to our list of things to do.


Repopulating REST Service Response Structure results in loss of mappings and custom javascript

Posted: Sun Feb 17, 2013 6:53 pm
by Sean Kelley

just had this happen to me...luckily most of my scripts where not too complex but I did not save them anywhere else to reinsert +1 on the warning!


Repopulating REST Service Response Structure results in loss of mappings and custom javascript

Posted: Sun Feb 17, 2013 7:37 pm
by maxkatz

We will be adding a warning when this happens.