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] hiding options from listbox

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] hiding options from listbox
 Login/Join
 
Platinum Member
posted
Hi we have a listbox with more than 100 values.
We have a edit box above that through which the user can filter the values in the listbox.

Suppose the listbox has values - AUDI, JENSEN, HONDA
When the user types 'J' in the edit box the listbox shows only JENSEN and hides the rest.

This works fine in chrome and Edge but it is not working in IE - 11
Let us know if anybody has faced this earlier or have a solution for this.

function Custom_SearchSortList_onkeyup(event) {
var eventObject = event ? event : window.event;
var ctrl = eventObject.target ? eventObject.target : eventObject.srcElement;
// TODO: Add your event handler code here
 var SortFldFrmList = IbComposer_getComponentById('customselect1_selectfrom').options;
 var EventFldFrmList = IbComposer_getComponentById('EventSpecific_list').options;
var SearchString = ctrl.value.toLowerCase().replace(/ /g, " ");
for (i=0;i<SortFldFrmList.length;i++){
    var optionValue = SortFldFrmList[i].innerHTML.toLowerCase();
     if ( optionValue.indexOf(SearchString) < 0 ){
        SortFldFrmList[i].setAttribute("hidden","hidden");

}
    else{
        SortFldFrmList[i].removeAttribute("hidden");
        console.log("present");
}
}
}  


The options are updated with hidden="hidden" but the option in the page are still visible in the list box

WF8206

This message has been edited. Last edited by: FP Mod Chuck,
 
Posts: 181 | Registered: October 25, 2017Report This Post
Expert
posted Hide Post
I would CHAIN the editbox to the listbox using a fex to capture the incoming value from the editbox as a filter and populate the listbox accordingly.

I would not use JavaScript to do this as CHAINing is built into WebFOCUS.




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Expert
posted Hide Post
Instead of setting visibility, try setting display to none / block or in jquery .hide() .show()


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Expert
posted Hide Post
I guess I'm not understanding your post.

Are you wanting to hide the values,&Value, that only satisfy a WHERE statement as shown in the next line? Or, are you wanting to hide some 'options'? If 'options', then what options are they?
WHERE MODEL LIKE '%&Value.EVAL%'
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Expert
posted Hide Post
quote:
I'm not understanding your post




Clarity is important in Focal Point

Claret would be better.
Cool


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Expert
posted Hide Post
quote:
Clarity is important in Focal Point
Yes Smiler So, what am I not understanding?
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Expert
posted Hide Post
No reply from Siva1925


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report 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] hiding options from listbox

Copyright © 1996-2020 Information Builders