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

Re: Scripting transition for pagebook pages using timer component

$
0
0

Hi Randall,

 

I have created an example for you with tabstrip

applications/SCN_TAB-20160511202503.zip at master · org-scn-design-studio-community/applications · GitHub

 

This one behaves like here:

20160511-202608_capture.gif

there is the SCN Time Out component used, which is counting 5 to 0 and then the corresponding script is changing the tab.

 

adding the pagebook, you can also change the pages:

20160511-210029_capture.gif

 

the script in timer is:

 

var selIndex = TABSTRIP_1.getSelectedTabIndex();

var maxIndex = 1;

 

 

if(selIndex < maxIndex) {

  selIndex = selIndex + 1;

} else {

  selIndex = 0;

}

 

 

TABSTRIP_1.setSelectedTabIndex(selIndex);

PAGEBOOK_1.setSelectedPageIndex(selIndex);

TABSTRIP_1.onSelect();

 

I did not get the connection to data sources as those are independent of this transition.

 

Karol


Viewing all articles
Browse latest Browse all 3165

Trending Articles



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