anon
Posts: 0
Joined: Sun Apr 13, 2014 12:10 am

Service Reuse / Data Tab Issues

So I have a service that is included in the data tab of one page in my app. I manually call these services using javascript (service.execute()/updateComponents()) on a few other pages... I have managed to do this successfully when I design the other pages with equivalent DOM id's so the update populates my component. (I am populating a component that lives on a few pages).

The bug is that whenever I revisit the page with the service (that the service belongs to in the data tab), then visit another page with that service call (not in data tab), the (service.updateComponents()) doesn't work properly. It will however work if i go to another page with the service update then return back. Only when I go to that page with the service in the data tab does it screw things up the next time I visit a page with that component.

To be clear:

I am executing a service one time, and caching the results. Then when I visit pages, the first time I go to another page it doesn't work, then second time I do it does. Any time returning to the original page, will screw up the subsequent visit.

I hope this isn't confusing, and would love some help.

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Service Reuse / Data Tab Issues

Hello,

What event do you use to run this service? There are any errors in console?

Return to “Issues”