Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2069

Background Processing of Data Sources

$
0
0

I have 8 Data Sources out of which i am using only one data source in my display tab.

I want to load rest of the Data Sources in background.

 

DS_1 - used in display page

DS_2

DS_3

DS_4

DS_5

DS_6

DS_7

DS_8


I have set the load in Script of every data Source except DS_1 to true.

I have created a global variable 'abc' of type int with default value as 0.

My on background processing script is as follows:


if(abc==0){DS_2.loadDataSource();}

abc=abc+1;

if(abc<1){APPLICATION.doBackgroundProcessing();}

if(abc==1){DS_3.loadDataSource();}

abc=abc+1;

if(abc<2){APPLICATION.doBackgroundProcessing();}

if(abc==2){DS_4.loadDataSource();}

abc=abc+1;

if(abc<4){APPLICATION.doBackgroundProcessing();}

....................

....................

if(abc==6){DS_8.loadDataSource();}

abc=abc+1;

if(abc<7){APPLICATION.doBackgroundProcessing();}


Is this Correct?? And can anyone please explain how this script is working.


Viewing all articles
Browse latest Browse all 2069

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>