We are using Multisource tree control to do the tree structure and to allow multiselect on the data.
The challenges we are facing are below.
1) It is not getting reset when we click the RESET button after no activity on the portal for more than 30 minutes. All other controls are getting reset.
2) When I try to get the selected value from the multisource tree control, it gives all the values from bottom to top. We just want to grab the selected value.
Anyone faced these issues. How can I resolve it?This message has been edited. Last edited by: <Emily McAllister>,
8.2.06 Windows, All Formats
August 04, 2016, 04:39 AM
Neelima
Hi
As per knowledge, for 2nd Point. you can do following code:-
var oRadio = document.getElementsByName('multisourcetreecontrol1');
for(var i = 0; i < oRadio.length; i++) { if(oRadio[i].checked) { alert(oRadio[i].value); document.getElementById('edit1').value=oRadio[i].value; } }
1) Which version of WebFOCUS? 7.7.03 or 8.0.07? 2) If 8.0.07, Developer Studio or Application Studio?
As gregv suggests, you should use the HTML Composer "API" functions if you used the HTML Composer Tree Control. In Developer Studio 7.7.05 I couldn't get the multi-select to work, so we used a jQuery Tree Control, to complicated to explain here. Perhaps v8.0.07 is better...
controlID - Is the unique identifier of the control from which values are obtained. layer - Is an optional parameter used to specify the layer number in a multi source Tree control if a Multi source Tree control is being used. The layer number starts with 1 for the first layer.
If your Tree Control is chained to another control (or vice versa), use External procedures instead of Embedded procedures - I've had better luck with External procedures.
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
August 04, 2016, 09:41 AM
Neelima
Cool.. Gregv And Francis!!
Can I get the tutorial link for such HTML Composer API.