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] Populate drop down list with values from two fields

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[Solved] Populate drop down list with values from two fields
 Login/Join
 
Member
posted
Hi I am new to WebFocus, so I don't even know if what I want to do is even possible.

I am trying to get a drop down list on a html page to contain values from two different fields. I want it to have the name of a term and the term code displayed together (e.g. Spring 2013-201320).

Is this even possible or should I just stop wasting my time on it?

Thanks,
Nate

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


7.7.03/8.1.04
Windows, All Outputs
 
Posts: 26 | Registered: December 10, 2012Report This Post
Expert
posted Hide Post
You can put whatever you want in the option values of a dropdown list. How are you populating this list box, via XML or by creating option tags? Let me know and I can provide the appropriate example.


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
Expert
posted Hide Post
sure, of course.
you write a fex to populate the list
say the variable you want to pass is called CODE and it is /A4 and its description field is /A15, then
DEFINE FILE MYFILE
displayname/A20=CODE | '-' | CODENAME ;
END
TABLE FILE MYFILE
BY CODE BY displayname
ON TABLE SET HOLDLIST PRINTONLY
ON TABLE PCHOLD FORMAT XML
END




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Expert
posted Hide Post
Voila.


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
Member
posted Hide Post
Thank you for your help. That did it.

Nate


7.7.03/8.1.04
Windows, All Outputs
 
Posts: 26 | Registered: December 10, 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] Populate drop down list with values from two fields

Copyright © 1996-2020 Information Builders