Focal Point Banner


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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED]8.1.05 Single Source Tree Control

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED]8.1.05 Single Source Tree Control
 Login/Join
 
Guru
posted
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 Thanks

This message has been edited. Last edited by: <Emily McAllister>,


WebFOCUS 8.1.05
 
Posts: 496 | Registered: January 04, 2008Report This Post
Master
posted Hide Post
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, 2015Report This Post
Expert
posted Hide Post
You probably should be using the so-called API calls -
IbComposer_getCurrentSelection('controlID')
where controlID is the unique identifier of the control from which values are obtained.

This is valid for v8.0.08 and should be good for v8.1.05...


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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Master
posted Hide Post
If there's an API call that would be much easier. Thanks, Francis!


App Studio
WebFOCUS 8.1.05M
Windows, All Outputs
 
Posts: 594 | Location: Michigan | Registered: September 04, 2015Report This Post
Guru
posted Hide Post
Yes I try and use the API calls if all possibly.


Squatch - I do see the "input" tags underneath. I am dynamically populating the control, but I am not clear if I need to get them all?


WebFOCUS 8.1.05
 
Posts: 496 | Registered: January 04, 2008Report This Post
Master
posted Hide Post
You would need to go through them all and look for the ones where the "checked" property is true.


App Studio
WebFOCUS 8.1.05M
Windows, All Outputs
 
Posts: 594 | Location: Michigan | Registered: September 04, 2015Report This Post
Expert
posted Hide Post
IbComposer_getCurrentSelection('controlID')
should return all the selected values.

quote:
The IbComposer_getCurrentSelection function gets the current selected values from a control.


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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Guru
posted Hide Post
quote:
Originally posted by Francis Mariani:
IbComposer_getCurrentSelection('controlID')
should return all the selected values.

quote:
The IbComposer_getCurrentSelection function gets the current selected values from a control.


That is they way it worked in prior versions. Now it appears to not work that way anymore.


WebFOCUS 8.1.05
 
Posts: 496 | Registered: January 04, 2008Report This Post
Guru
posted Hide Post
quote:
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.


WebFOCUS 8.1.05
 
Posts: 496 | Registered: January 04, 2008Report This Post
Master
posted Hide Post
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, 2015Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED]8.1.05 Single Source Tree Control

Copyright © 1996-2020 Information Builders