Al Veitas
Posts: 0
Joined: Tue Mar 06, 2012 3:43 am

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

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

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

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

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.

Al Veitas
Posts: 0
Joined: Tue Mar 06, 2012 3:43 am

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

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.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

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

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

Sean Kelley
Posts: 0
Joined: Thu Oct 11, 2012 2:25 pm

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

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!

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

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

We will be adding a warning when this happens.

Return to “Issues”