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.
Can anyone try this in 8.1.05? I have a Single Source Tree Control and just a button with an Onclick event. Just add some static values in the tree control. I am trying to get the values of the selected values of the tree control.
I am not able to get the value using either of these.
//var values = IbComposer_getCurrentSelection('treecontrol1');
var x = document.getElementById("treecontrol1").value;
alert (x);
These work fine in my old 8.00.8 DS version, but I am re-creating the page in App Studio. The page created in 8.00.08 runs fine in version 8.1.05, I just can't open it in App Studio 8.1.05, hence to why I am re-creating it.
Please and ThanksThis message has been edited. Last edited by: <Emily McAllister>,
The "value" property is not there in 8.1.05. The "treecontrol1" is a DIV element, and underneath it are HTML "input" tags of type "radio". Find these elements and you can test the "checked" property in each one. If "checked" is true, then you can read the "value" property that is there as well.
App Studio WebFOCUS 8.1.05M Windows, All Outputs
Posts: 594 | Location: Michigan | Registered: September 04, 2015
Originally posted by Squatch: You would need to go through them all and look for the ones where the "checked" property is true.
Yuck! I would prefer not to have to go this route. If my values are dynamically populated, I would think that these inputs could change, if my data changes.
It's actually not that bad. You can use JavaScript's "getElementsByTagName" and loop through all the dynamically generated values, or use JQuery (which is even easier).
I could not get Francis' suggestion to work in my test page.
App Studio WebFOCUS 8.1.05M Windows, All Outputs
Posts: 594 | Location: Michigan | Registered: September 04, 2015