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] Reset the value of the tree control

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Reset the value of the tree control
 Login/Join
 
Member
posted
Hello everyone,

Please give an advice.

I have 4 tree controls that logically are connected to one dropdown box. Depending on the value that is selected in the dropdown box one of the 4 tree controls is shown. And the previous control value that was selected should be reset to FOC_NONE or the top hierarchy element.

i used the following code

var defaultValues_HIER = new Array();
defaultValues_HIER.push('FOC_NONE');


//Begin function lst_org_unit_type_onblur
function lst_org_unit_type_onblur(ctrl) {
if(lst_org_unit_type.value == 'TREXC_CRTR') {
treecontrol1.style.visibility ="visible";
treecontrol2.style.visibility ="hidden";IbComposer_setCurrentSelection('treecontrol2',defaultValues_HIER , true);
treecontrol3.style.visibility ="hidden";IbComposer_setCurrentSelection('treecontrol3',defaultValues_HIER , true);
treecontrol4.style.visibility ="hidden";IbComposer_setCurrentSelection('treecontrol4',defaultValues_HIER , true);}

if(lst_org_unit_type.value == 'TREXCU_RCS') {
treecontrol2.style.visibility ="visible";
treecontrol1.style.visibility ="hidden";IbComposer_setCurrentSelection('treecontrol1',defaultValues_HIER , true);
treecontrol3.style.visibility ="hidden";IbComposer_setCurrentSelection('treecontrol3',defaultValues_HIER , true);
treecontrol4.style.visibility ="hidden";IbComposer_setCurrentSelection('treecontrol4',defaultValues_HIER , true);}

if(lst_org_unit_type.value == 'RCVRYRESP') {
treecontrol3.style.visibility ="visible";
treecontrol1.style.visibility ="hidden";IbComposer_setCurrentSelection('treecontrol1',defaultValues_HIER , true);
treecontrol2.style.visibility ="hidden";IbComposer_setCurrentSelection('treecontrol2',defaultValues_HIER , true);
treecontrol4.style.visibility ="hidden";IbComposer_setCurrentSelection('treecontrol4',defaultValues_HIER , true);}

if(lst_org_unit_type.value == 'ABSRPRQ') {
treecontrol4.style.visibility ="visible";
treecontrol1.style.visibility ="hidden";IbComposer_setCurrentSelection('treecontrol1',defaultValues_HIER , true);
treecontrol2.style.visibility ="hidden";IbComposer_setCurrentSelection('treecontrol2',defaultValues_HIER , true);
treecontrol3.style.visibility ="hidden";IbComposer_setCurrentSelection('treecontrol3',defaultValues_HIER , true);}
}
//End function lst_org_unit_type_onblur

after changing the the lst_org_unit_type control the dispalyed tree control have all checkboxes DE selected, BUT when i run the report the old value are still send to the procedure.

May be you can suggest me some other way of resetting the selected values in tree control?

treecontorol1.value = 'FOC_NONE' and parent.parent.IbComposer_setCurrentSelection('treecontorol1', 'FOC_NONE') did not work.

Thank you,
Anton

This message has been edited. Last edited by: <Kathryn Henning>,


WebFOCUS 8.0.08
Windows, All Outputs
 
Posts: 5 | Registered: February 06, 2015Report This Post
Guru
posted Hide Post
Here is what I use for my tree controls

 
    IbComposer_setCurrentSelection('att_tree', 0, false);

 


This will not collapse the tree control, but it will deselect anything checked.


WebFOCUS 8.1.05
 
Posts: 496 | Registered: January 04, 2008Report This Post
Member
posted Hide Post
Thank you for your advice. But this did not help.
The function did remove the checked in checkbox, but did still pass the parameter to the source. May be it is the issue with hiding the trees or my 'bad' js. But thank you anyway.


WebFOCUS 8.0.08
Windows, All Outputs
 
Posts: 5 | Registered: February 06, 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] Reset the value of the tree control

Copyright © 1996-2020 Information Builders