Page 1 of 2

Losing cutom js changes

Posted: Fri Sep 28, 2012 7:39 am
by Barbara

Sometimes my custom javascripts which are attached to REST services revert back to old versions when I save my project, errors will come back that I have fixed previously and code that I have added will disappear.


Losing cutom js changes

Posted: Fri Sep 28, 2012 7:44 am
by Barbara

Actually, it's not just in REST services.


Losing cutom js changes

Posted: Fri Sep 28, 2012 4:31 pm
by maxkatz

Any chance you can show us steps to reproduce this problem?


Losing cutom js changes

Posted: Sat Sep 29, 2012 2:36 am
by Barbara

Not really, as I have no idea why and when it happens. I will try and take more notice of what I have just done before it happens next time.


Losing cutom js changes

Posted: Sun Oct 07, 2012 7:27 am
by Barbara

I have noticed that this happens when duplicating a screen. I have just duplicated a few, and each time services invoked at page load and on button click were lost in the screen I was duplicating.


Losing cutom js changes

Posted: Sun Oct 07, 2012 11:04 pm
by maxkatz

I tested duplicating a page with a service (invoked on page load, and button click) and it worked. Can you tell me how exactly you duplicate the screen?


Losing cutom js changes

Posted: Mon Oct 08, 2012 2:14 am
by Barbara

By using the duplicate option at the top of the page.


Losing cutom js changes

Posted: Mon Oct 08, 2012 1:50 pm
by maxkatz

Our dev. team tried this but still couldn't reproduce this issue. Can you try to reproduce it in a brand new project?


Losing cutom js changes

Posted: Wed Oct 10, 2012 6:57 am
by Barbara

Ok - It just happened again.

To reproduce

Duplicate a screen with REST services attached.
In the new screen delete those services in the design window.
Go back to the duplicated screen.
The services will still appear in the design window, but the Invoke Session events will be gone.


Losing cutom js changes

Posted: Wed Oct 10, 2012 10:42 am
by Maryna Brodina

Hello Barbara! Unfortunatelly I can't reproduce it. I had mobilescreen1 with REST service, Load event and action for screen and Success event and action for REST service component. I duplicated that screen, deleted Service on mobilescreen1, switched to mobilescreen11 - all events and actions are present on duplicated screen.