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] Dynamic Listboxes

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Dynamic Listboxes
 Login/Join
 
Member
posted
I'm creating a launch page using Resource Layout and I have a problem trying to populate a listbox.

I want the listbox to be populated with either data from Source A or Source B, depending upon an earlier selection made on the form.

I'm selecting a Dynamic Control Value but I can't use the Data Source option as that expects me to select a specific data source - I want the data source to be dynamic.

I'm guessing I need to use the Procedure option but I'm really not sure what I need to do ?

Help much appreciated, Rob.

This message has been edited. Last edited by: Kerry,
 
Posts: 7 | Location: London, England | Registered: February 16, 2005Report This Post
Virtuoso
posted Hide Post
Here's an approach (untried):

Make the earlier selection control a pull-down (SELECT) list, and chain the second SELECT to it.

Assuming just the filename depends on choice of parent, have the fex that populates the 2nd option list base its source file (rather than screening condition) on the choice of parent option, like so:



-* determine source file, based on parent selected:
-DEFAULT &PARENT=one
-SET &SOURCE = DECODE &PARENT (one fileone, ELSE filetwo);
TABLE FILE &SOURCE
SUM opt2name
BY opt2code
ON TABLE PCHOLD FORMAT XML
END
If more than the filename would depend on parent, you'd use -GOTO to handle the two (or however many) cases, but you get the idea.

This message has been edited. Last edited by: <Mabel>,
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
<JG>
posted
Two ways to create your list boxes,
1st one is pure WebFocus, 2nd uses dynamic javascript.
My personal choice is the 2nd as it only needs to go to the server once and so although the initial population takes longer it looks much smoother.

Sorry I can not paste the code because the system objects to the tags so I've emailed it to you.
 
Report This Post
Silver Member
posted Hide Post
Hi JG,

Could you please send me the code to the below mail id
shakila_aslam@syntelinc.com


WebFOCUS 7.6.x
Windows
Output: Excel,PDF, HTML
 
Posts: 42 | Registered: September 28, 2007Report This Post
<JG>
posted
Shakila, you just needed to search a little further to find it

http://forums.informationbuild...111058331#8111058331
 
Report This Post
Expert
posted Hide Post
Amazing what you can find via the search function Wink

JG, You might want to go back and edit that post as it had been got at by Mabel (bless her) and now gives JS errors.

T
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
<JG>
posted
Thanks Tony and thank god that Mabel's not with us any more. I remember having had to fix that before.

I had actually posted the code to another thread
back in October last year so a search would have found it twice.
 
Report 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] Dynamic Listboxes

Copyright © 1996-2020 Information Builders