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     multidselect listbox

Read-Only Read-Only Topic
Go
Search
Notify
Tools
multidselect listbox
 Login/Join
 
Platinum Member
posted
Hi, Does anyone have any sample code to take a multiselect listbox and pass the selected values to wfservlet?
PS. I am HTML pages with javascript...
thanks, Lloyd
 
Posts: 157 | Location: Secaucus, NJ | Registered: May 21, 2004Report This Post
<matty@time>
posted
Hi Lloyd,

I believe the servlet call works the same way as the CGI call, so here is what the code looks like, if you've used HTML FORMS you know how to do it. You can also have JavaScript do the submit.

Here is some listbox code (dynamically created with WebFOCUS):

[td colspan=1 bgcolor="#ffffff" align=center>
[SELECT SIZE="10" NAME=MAGS CLASS=select MULTIPLE>
[OPTION VALUE="206" >AARP-THE MAGAZINE
[OPTION VALUE="M34" >ABA JOURNAL-THE LAWYERS
[OPTION VALUE="DB3" >ALLURE

Here is the form with the CGI (or Servlet) call:
[form name="form1" action="/cgi-bin/ibi_cgi/ibiweb.exe"
method="get" target="repwin">
[input type="hidden" name="IBIF_ex" value="magshare">
[input type="hidden" name="MAXMTH" value= 05 >
[input type="hidden" name="CURRYEAR" value= 2004 >

What WebFOCUS will do on the backend is breakout the multiselect for you like this:

Say I made all three picks above

&MAGS0 = 3 (this is a counter you can use for loops)
&MAGS = 206
&MAGS1 = 206
&MAGS2 = M34
&MAGS3 = DB3

You will want to swap my CGI call in the action of FORM1 with your own Servlet call.

Hope this helps,
Matthew
CMI@TimeInc
Matthew_Rossi@TimeInc.com
 
Report This Post
Platinum Member
posted Hide Post
Hi, matty@time
Thanks, that worked out great...it was so simple. I was originally working on jscript to do it but was going down the wrong track.....I added your code to some code I found on the looping and it all came together!
 
Posts: 157 | Location: Secaucus, NJ | Registered: May 21, 2004Report 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     multidselect listbox

Copyright © 1996-2020 Information Builders