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.
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.
Actually, it's not just in REST services.
Any chance you can show us steps to reproduce this problem?
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.
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.
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?
By using the duplicate option at the top of the page.
Our dev. team tried this but still couldn't reproduce this issue. Can you try to reproduce it in a brand new project?
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.
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.