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.
As a part of our dashboard, I am trying to create a date range slider filter as shown in the url below. Please provide if you have any inputs on how to create this in webfocus. Thank you very much.
Thanks for taking time to provide this information. I see a "slider" in components tool bar in the html composer. Is it possible to create a date range slider filter with this and pass date ranges to the procedures on the html page.
Thanks for taking time to provide this information. I see a "slider" in components tool bar in the html composer. Is it possible to create a date range slider filter with this and pass date ranges to the procedures on the html page.
Regards BI DEV
That slider control is only a single slider, not a range slider.
*Edit: Hold that thought. I see a multiple attribute on it. Looking into using dates and will update.
Hallway
Prod: 8202M1
Test: 8202M4
Repository:
OS:
Outputs:
Posts: 608 | Location: Salt Lake City, UT, USA | Registered: November 18, 2015
(ignore the black spot on the picture. I converted the picture to base64 so all can see it. However in the code there is the letter k repeated three times and IBI masks it as ***, which of course breaks the base64 data. #cuzIBI So, I had to change one of the k to l and that caused the black)
You need to change the slider attribute "range" to yes, and get the date values from a master file. I created a hold file from ggsales with just the distinct dates
TABLE FILE GGSALES
BY DATE AS 'DATEKEY'
ON TABLE SET ASNAMES ON
ON TABLE SET HOLDLIST PRINTONLY
ON TABLE HOLD AS baseapp/gg_dates FORMAT FOCUS
END
I then referenced the master file in the slider settings. The input box ends up being too small so I just changed the width on the embedded css tab
#slider1 > input {
width:130px;
}
/*the following code will put the input box inline with the slider*/
#slider1 > div {
width: calc(100% - 160px) !important;
}
This message has been edited. Last edited by: Hallway,
Hallway
Prod: 8202M1
Test: 8202M4
Repository:
OS:
Outputs:
Posts: 608 | Location: Salt Lake City, UT, USA | Registered: November 18, 2015
I have been working with the WebFOCUS slider range for a few now with techsupport help. Does the data range actually include the default range capabilities the way you are doing it?
Currently, the range does not have the capability to pass a default range of data. But if creating a hold file as you are doing with the dates will work for creating a default range of values, then maybe I can go that route too.
Thanks,
WebFOCUS 8.2.02M Windows Server/8.2.02M All Outputs
Originally posted by Hallway: I was able to make it work:
(ignore the black spot on the picture. I converted the picture to base64 so all can see it. However in the code there is the letter k repeated three times and IBI masks it as ***, which of course breaks the base64 data. #cuzIBI So, I had to change one of the k to l and that caused the black)
You need to change the slider attribute "range" to yes, and get the date values from a master file. I created a hold file from ggsales with just the distinct dates
TABLE FILE GGSALES
BY DATE AS 'DATEKEY'
ON TABLE SET ASNAMES ON
ON TABLE SET HOLDLIST PRINTONLY
ON TABLE HOLD AS baseapp/gg_dates FORMAT FOCUS
END
I then referenced the master file in the slider settings. The input box ends up being too small so I just changed the width on the embedded css tab
#slider1 > input {
width:130px;
}
/*the following code will put the input box inline with the slider*/
#slider1 > div {
width: calc(100% - 160px) !important;
}
I have been working with the WebFOCUS slider range for a few now with techsupport help. Does the data range actually include the default range capabilities the way you are doing it?
Currently, the range does not have the capability to pass a default range of data. But if creating a hold file as you are doing with the dates will work for creating a default range of values, then maybe I can go that route too.
Thanks,
Using the hold file, the range in the hold file will determine the range of the slider. the defaults will be the max and min values. I'm sure that you could set different default values with JavaScript.
Hallway
Prod: 8202M1
Test: 8202M4
Repository:
OS:
Outputs:
Posts: 608 | Location: Salt Lake City, UT, USA | Registered: November 18, 2015
I'm trying this, but it doesn't seem to work correctly. When my screen comes up, the slider is populated properly, but when I move a slider I get numbers like 1996.1234 instead of dates. I'm on 8.105M.
Our company has finally decided to give IE the boot and use designate Chrome and Edge-Chromium as our official browsers. This came about with the adivce from a MSFT rep stating at how vulnerable you are using IE. #happyDaysThis message has been edited. Last edited by: Hallway,
Hallway
Prod: 8202M1
Test: 8202M4
Repository:
OS:
Outputs:
Posts: 608 | Location: Salt Lake City, UT, USA | Registered: November 18, 2015
Thank you so much for this! It totally worked for my needs. Since I just needed a numeric range from 0-100 to default I was able to create a flat file and a table master off the file. Then just called the master from the dynamic call from the canvas.
I have a meeting set with Barry Solomon tomorrow at 1:00 pm est. He will be happy to be able to log this in his how to do that in WebFOCUS/App Studio.
Thanks again and have a great weeekend!
WebFOCUS 8.2.02M Windows Server/8.2.02M All Outputs