Barbara
Posts: 0
Joined: Mon Sep 17, 2012 8:42 am

Losing cutom js changes

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.

Barbara
Posts: 0
Joined: Mon Sep 17, 2012 8:42 am

Losing cutom js changes

Actually, it's not just in REST services.

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

Losing cutom js changes

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

Barbara
Posts: 0
Joined: Mon Sep 17, 2012 8:42 am

Losing cutom js changes

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.

Barbara
Posts: 0
Joined: Mon Sep 17, 2012 8:42 am

Losing cutom js changes

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.

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

Losing cutom js changes

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?

Barbara
Posts: 0
Joined: Mon Sep 17, 2012 8:42 am

Losing cutom js changes

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

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

Losing cutom js changes

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

Barbara
Posts: 0
Joined: Mon Sep 17, 2012 8:42 am

Losing cutom js changes

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.

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

Losing cutom js changes

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.

Return to “Issues”