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.
In file C:\ibi\WebFOCUS77\ibi_html\javaassist\ibi\html\js\ib_composer_api.js I found this:
//selects values in the control// arrValues is the array of values to be selected not done yet
function IbComposer_setCurrentSelection(controlId, arrValues, bUpdateDependencies)
{
setCurrentSelection(controlId, arrValues, bUpdateDependencies);
}
I certainly hope that "not done yet" doesn't mean the function is non-functional yet (as at v7.7.03)...
As per the documentation, I tried putting the value in an array, but that didn't work either.
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
The 7703 manual shows that the API function takes 'controlID' in the syntax and explains that 'controlID' is the unique identifier of the control from which values are obtained.
Additionally, the "Not done yet" comment in the JS file means that these values have not been obtained yet.
David Glick Director WebFOCUS App Studio and WebFOCUS Developer Studio WebFOCUS Division Information Builders, Inc. Direct (917) 339-5560 Voice Mail (212) 736-6250 x3560 Fax (212) 947-5168 Email david_glick@ibi.com
The next thing I'm trying to work out is how to call IbComposer_setCurrentSelection to set two very particular double-list boxes - one is a list of report dimension (sort by) column names and the other is a list of measure column names. The IbComposer_getCurrentSelection function on these two double-list boxes returns something like "COUNTRY BY MODEL BY CAR" AND "SALES AND WEIGHT AND LENGTH", respectively. To use these values in IbComposer_setCurrentSelection, based on the documentation, the values must be in an array - so I stripped out the BY and AND and created arrays. When I assign these arrays to the IbComposer_setCurrentSelection, the double-lst boxes do not get set.
Are these two types of double-list boxes too specialized?
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
I was not calling the function properly - it works very well for a variety of control types, in fact IbComposer_getCurrentSelection and IbComposer_setCurrentSelection are great functions. In the past, I had developed something similar to what I'm doing now, but with traditional JavaScript, with which I had to treat each control type differently - radio buttons, list boxes, double list boxes, etc. With IbComposer_getCurrentSelection and IbComposer_setCurrentSelection, you don't have to worry about the control type - as long as you have the value(s) - they just work.
My thanks to tech support.
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
Barry is great! I was feeling very sad for how frustrated you were. Glad to hear you are now touting this wonderful tool
WebFOCUS Server 8.1.05 Windows 2008 Server WebFOCUS AppStudio 8.1.05 Windows 7 Professional IE 11 and Chrome Version 43.0.2357.124 m. Mostly HTML, PDF, Excel, and AHTML