As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.
Join the TIBCO Community TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.
From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
Request access to the private WebFOCUS User Group (login required) to network with fellow members.
Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.
Is there a way to set a default range for the slider control in the HTML Composer? I need for the slider to be forced to its min and max range on load.
I have tried the below javascript addition in the onInitialUpdate()
From a static slider (set to range from 0 to 200 step 10), the below work perfectly
function onInitialUpdate() {
IbComposer_setCurrentSelection('slider1', 120, false);
}
And the default value can be anything up to 200 from the moment it's a multiple of 10. But even that, I can set it at 125. Will not be able to select it again from the slider since the step is by 10, but can be typed in the selection box
WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF In Focus since 2007
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013
Martin,
I have tried that but i only sets the box to a value of 120. The slider still remains at 0. Plus this is a range which needs the slider_from and slider_to to be set.
I am not sure how to upload an image to show what I mean but it will visually not work as programmed.
Thanks,
WebFOCUS 8.2.02M Windows Server/8.2.02M All Outputs
Here is my HTML code where only a slider is defined with a range from 0 to 200 and default to 120
From client, select the Public folder, right click on folder and select New / Text Editor. Paste the code and save it with htm extension. Then refresh your folder in AS and you will be able to see it with HTML Composer
Yes this works great for a single slider. I am using a double slider. If you set properties/miscellaneous/Range to yes then it no longer works. The slider does not know which head to slide for the default number.
There must be something which says slider1_to and slider1_from but I have not been able to find enough documentation to determine the name for these values.
Thanks for your help!
WebFOCUS 8.2.02M Windows Server/8.2.02M All Outputs
That is ok. I have searched all the technical content and have found no way to distinguish between the range of values to set the defaults. I'm going to open a case too and see if that will find an answer. If it does I will post it back to this chain.
WebFOCUS 8.2.02M Windows Server/8.2.02M All Outputs