Kapow36
Posts: 0
Joined: Thu May 23, 2013 4:07 pm

Do generic services run async?

It would make sense if they weren't because the mapping process happens with the UI which is in the main thread.

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Do generic services run async?

Hi Kapow,

Unfortunatly your question is not clear for us.

Please describe in details your goal and problem.

Regards.

Kapow36
Posts: 0
Joined: Thu May 23, 2013 4:07 pm

Do generic services run async?

can I run a generic service on another page before it loads/shows etc?

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Do generic services run async?

Hi Kapow,

You can invoke datasources which are defined on the active page.

That's why page should loaded before datasource would be initialized and avaliable to invoke.

Regards.

Kapow36
Posts: 0
Joined: Thu May 23, 2013 4:07 pm

Do generic services run async?

Thought so, thanks! One more question, after the page is loaded can it be run while on another page?

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Do generic services run async?

Kapow,

Yes, while other page loading current active page is - previous page. So you can invoke services with JS code:

pre

datasourceName.execute({});

/pre

Regards.

Kapow36
Posts: 0
Joined: Thu May 23, 2013 4:07 pm

Do generic services run async?

Right, I currently have my REST services separate from the mapping (using generic services) because I have to do some data parsing to make it compatible with ColdFusion. I would like to be able to pre-load all the pages so that when the services execute, they can immediately call the generic service to perform the mapping. Is this possible?

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Do generic services run async?

Hi Kapow36.

In this case you can invoke some services on start page and store results to LSV. Then you can get this results from the LSV(cache) and use them immediately in your generic REST.

If page not loaded, all datasources defined on this page could not be used at all.

Regards.

Return to “Issues”