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     [Solved]unable to select values from listbox

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[Solved]unable to select values from listbox
 Login/Join
 
Gold member
posted
Hi All,

I have multiple listboxes on the left and on a single click I have to move values to the right listbox.

So to attain this I have introduced array and push the array value to target listbox.

Now I am unable to select values from the target listbox.

This message has been edited. Last edited by: Ramya,


WebFocus 7702
HTML
 
Posts: 73 | Registered: January 02, 2012Report This Post
Expert
posted Hide Post
I think this is a question for a JavaScript forum.

WebFOCUS Dev Studio HTML Composer has a built-in double listbox control - have you tried using that?


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
It sounds like you are corrupting the right listbox. You need to create OPTION tags before adding values:

var x = document.getElementById("listbox5");
var option = document.createElement("option");
option.text = "Kiwi";
option.value = "Kiwi";
x.add(option);


App Studio
WebFOCUS 8.1.05M
Windows, All Outputs
 
Posts: 594 | Location: Michigan | Registered: September 04, 2015Report This Post
Gold member
posted Hide Post
quote:
var x = document.getElementById("listbox5");


Hi Squatch,

Thanks for your valuable input. I was using the same code but instead of x.add(option) I was using x.options.add(option) which actually troubled.


for (var y=0;y<=list.length;y++)

{
var oOption = document.createElement("OPTION");
oOption.text = list[y];
oOption.value = list[y];
listbox4.options.add(oOption); // I have changed this code line to listbox4.add(oOption); and looks working perfectly
}

Many Thanks


WebFocus 7702
HTML
 
Posts: 73 | Registered: January 02, 2012Report 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     [Solved]unable to select values from listbox

Copyright © 1996-2020 Information Builders