cancel
Showing results for 
Search instead for 
Did you mean: 

Scripting transition for pagebook pages using timer component

Former Member
0 Kudos
314

Hello All,

I am attempting to script a transition for pages included in a pagebook based on a timer component. I am using Design Studio n1.6 SP01, I am finding it extremely difficult to properly develop the script. I have searched numerous forums for an example script for me to base mine off of. If anyone has any experience doing this and would be willing to share even if it is just a start I would greatly appreciate it. All pages on the pagebook draw data from a different DataSource, my shortcoming I believe lies with my level of experience developing with the BIAL language. Thank you for reading my post and thank you ahead of time for any insight you are willing to offer.

Very Respectfully to all,

Randy

Accepted Solutions (1)

Accepted Solutions (1)

MustafaBensan
Active Contributor
0 Kudos

Hi Randy,

Here's a first cut at a sample BI app for your scenario.  Just import into Design Studio 1.6 and replace the 4 data sources with your own.

You can download it here.

Let me know if you have any questions.

Regards,

Mustafa.

Former Member
0 Kudos

when i import your zip file(SCN_PAGEBOOK_CYCLING-20160519134943) .it displayed data sources not loaded. what can i do?

MustafaBensan
Active Contributor
0 Kudos

Hi Rajesh,

Please provide a screenshot so I can respond accordingly.

Thanks,

Mustafa.

Former Member
0 Kudos

Hi Mustafa Bensan,

                        when i import your zip file. I faced this kind of errors. here I attached my error screenshots. so please find out the error.

MustafaBensan
Active Contributor
0 Kudos

Hi Rajesh,

Yes, the errors are as expected if you don't update the data sources.  As I mentioned in my instructions above, you need to reassign each of the four data sources to ones in your own system.

Regards,

Mustafa.

Former Member
0 Kudos

Hi Mustafa Bensan,


Thanks for your immediate response. you are doing great job man.

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Mustafa Bensan,


                           Thanks you. it's working.

Former Member
0 Kudos

This message was moderated.

Former Member
0 Kudos

Hi Mustafa Bensan,

 

                               I reassigned four data sources to each of the crosstab. now also i faced the same errors.

MustafaBensan
Active Contributor
0 Kudos

You mean it is still trying to load the old data sources?  Can you show me a screenshot of Design Studio including the outline panel with data sources?

MustafaBensan
Active Contributor
0 Kudos

Here's a version with unassigned data sources you can download.

Former Member
0 Kudos

Mustafa,

You are the man! It is working seamlessly, Thanks again. If I can EVER be of any help please don't hesitate to contact me

Karol-K
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Randall,

I have created an example for you with tabstrip

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

This one behaves like here:

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:

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

MustafaBensan
Active Contributor
0 Kudos

Hi Karol,

Based on Randy's previous post related to this topic, my understanding is that the page transitions need to coincide with the data refreshes.  Although we can't guarantee exactly the same duration between transitions due to different data source refresh times, I was thinking we could integrate the timer with the data source "On Result Set Changed" event so that the data source for the next page is being refreshed while displaying the current page.  Then once the data source for the next page has been refreshed, we navigate to that page to immediately display the current data for that page and then trigger the timer component again to start the cycle for the next refresh.

Anyway, perhaps Randy can confirm the requirement so we can provide further guidance accordingly.

Regards,

Mustafa.

Former Member
0 Kudos

Mustafa,

once again you are right on target with what I am trying to accomplished, also I attempted to use the script for the timer that was recommended leverage the pageindex. I am receiving a failure to bind component error though. The script is clean, I have been trying to conduct my own research on this topic but there is little out there to go of. Also, I am the pioneer of this tool within my organization, all previous dashboards where developed off of Exelsius.

Again, thank for all of your help!

Randy

MustafaBensan
Active Contributor
0 Kudos

Hi Randy,

Thanks for the confirmation.  Let me take a look and get back to you.

By the way, just out of curiosity, given that the requirement is to cycle through the pages at a fixed time interval, it sounds like the scenario for this dashboard will be to display it on a wall-mounted monitor/TV.  Is that right?

Regards,

Mustafa.

Former Member
0 Kudos

Mustafa,

That is absolutely correct, the dashboard is a Warehouse nightly progress dashboard. It will be displayed on a TV monitor to help track staff with their progress throughout the night.

Respectfully,

Randy

MustafaBensan
Active Contributor
0 Kudos

Very good then.  Give me a day or two and I'll post back a scripting example for your scenario.

Regards,

Mustafa.

MustafaBensan
Active Contributor
0 Kudos

Hi Randy,

This sounds like a follow-up to your previous question on the topic    I had actually started working on a sample script for you but haven't had the chance to finish it yet.  I think you'll need to combine the timer component with the data source On Result Set Changed event to get the desired outcome.

I'll try to get back to finishing that script over the next couple of days then.

Regards,

Mustafa.

Former Member
0 Kudos

Mustafa,

Thank you for your help! I greatly appreciate it.

Respectfully,

Randy

Former Member
0 Kudos

Mustafa,

Curious if you possibly could assist me in locating some reading material or learning tools for BIAL. I have searching the WEB non-stop and I can not seem to find more than an handful of references to the language in general.

Randy