Page 1 of 1

Do generic services run async?

Posted: Wed Jul 23, 2014 1:42 am
by Kapow36

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


Do generic services run async?

Posted: Wed Jul 23, 2014 5:15 am
by Yurii Orishchuk

Hi Kapow,

Unfortunatly your question is not clear for us.

Please describe in details your goal and problem.

Regards.


Do generic services run async?

Posted: Thu Jul 24, 2014 4:07 am
by Kapow36

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


Do generic services run async?

Posted: Thu Jul 24, 2014 4:17 am
by Yurii Orishchuk

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.


Do generic services run async?

Posted: Thu Jul 24, 2014 5:11 am
by Kapow36

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


Do generic services run async?

Posted: Thu Jul 24, 2014 5:21 am
by Yurii Orishchuk

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.


Do generic services run async?

Posted: Wed Jul 30, 2014 12:28 am
by Kapow36

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?


Do generic services run async?

Posted: Wed Jul 30, 2014 2:37 am
by Yurii Orishchuk

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.