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.

New TIBCO Community Coming Soon
In early summer, TIBCO plans to launch a new community—with a new user experience, enhanced search, and expanded capabilities for member engagement with answers and discussions! In advance of that, the current myibi community will be retired on April 30. We will continue to provide updates here on both the retirement of myibi and the new community launch.

What You Need to Know about Our New Community
We value the wealth of knowledge and engagement shared by community members and hope the new community will continue cultivating networking, knowledge sharing, and discussion.

During the transition period, from April 20th until the new community is launched this summer, myibi users should access the TIBCO WebFOCUS page to engage.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Limiting a Dynamic Dropdown

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Limiting a Dynamic Dropdown
 Login/Join
 
Gold member
posted
I am trying to create a dynamic dropdown which will query a list of our production master files. I need this to be dynamic so that if a new table is added it will automatically populate the report.

The issue I am having is that I only want the master files beginning with DW in my dropdown.

Any thoughts on how to exclude values from a dynamic dropdown? A basic hold file does not work.

This message has been edited. Last edited by: <Kathryn Henning>,


WebFOCUS 7.7 and WebFOCUS 8
Windows, All Outputs
 
Posts: 36 | Registered: August 17, 2010Report This Post
Platinum Member
posted Hide Post
How are you currently populating the dropdown? Can you write a javascript on load of page to control the dropdown?


Regards,
Cyril Joy.

WF Production 8008 on Linux.
 
Posts: 143 | Location: Rochester,NY. | Registered: August 20, 2004Report This Post
Guru
posted Hide Post
Lynsi,

what about this?

dir /b DW*.mas > masterlist.txt

Create a Master file for masterlist.txt. Maybe add a DEFINE in the master file to extract the filename without the .mas.

TABLE FILE masterlist
SUM FST.filename
BY filename
ON TABLE PCHOLD FORMAT XML
END


WebFOCUS DS 8.0.06/08 DS/AS
WebFOCUS RS 8.0.08 (Linux/IBM i)
WebFOCUS Client 8.0.06 (Linux)
 
Posts: 319 | Location: Stockholm, Sweden | Registered: February 04, 2004Report This Post
Virtuoso
posted Hide Post
Try using SYSTABLE:
TABLE FILE SYSTABLE
SUM NAME
BY NAME
WHERE NAME LIKE 'DW%' OR 'dw%'
ON TABLE PCHOLD FORMAT XML
END


Alan.
WF 7.705/8.007
 
Posts: 1451 | Location: Portugal | Registered: February 07, 2007Report This Post
Gold member
posted Hide Post
We are currently populating the drop down via the gooey tool, directly from the table.

Example using Car File:

TABLE FILE CAR
PRINT
CAR.ORIGIN.COUNTRY
CAR.COMP.CAR
WHERE CAR.CARREC.MODEL EQ &MODEL.(OR(FIND CAR.CARREC.MODEL,CAR.CARREC.MODEL IN car)).MODEL.;
END

What I am trying to do based on the above is exclude values from the filter above, so for example I may want to only include values that begins with 2002, but I need the dynamic dropdown in case additional 2002 values are added to the data warhouse so that those values will be automatically picked up.

Thank you


WebFOCUS 7.7 and WebFOCUS 8
Windows, All Outputs
 
Posts: 36 | Registered: August 17, 2010Report This Post
Guru
posted Hide Post
Lynsi, what about a year drop and chaining to your current list and select only the 2002 models. You can have multiple controls chaining to same list, eg. country, car, year.

Regards
Håkan


WebFOCUS DS 8.0.06/08 DS/AS
WebFOCUS RS 8.0.08 (Linux/IBM i)
WebFOCUS Client 8.0.06 (Linux)
 
Posts: 319 | Location: Stockholm, Sweden | Registered: February 04, 2004Report This Post
Virtuoso
posted Hide Post
Hi Lynsi,

I've tried to answer your request with this :

TABLE FILE CAR
BY CAR.ORIGIN.COUNTRY
BY CAR.COMP.CAR
BY CAR.CARREC.MODEL
WHERE CAR.CARREC.MODEL CONTAINS '2002';
ON TABLE HOLD AS HLD FORMAT FOCUS
END

TABLE FILE HLD
PRINT
     HLD.SEG01.COUNTRY
BY  LOWEST HLD.SEG01.CAR
WHERE HLD.SEG01.MODEL EQ '&MODEL.(FIND HLD.SEG01.MODEL,HLD.SEG01.MODEL IN hld).Model.';
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
$
ENDSTYLE
END


But as you mentioned it seems that the gui doesn't want to display the data properly even if the HLD file does only includes MODEL having 2002 in his description.

But if you're using the following you will have your list :

TABLE FILE CAR
PRINT CAR.CARREC.MODEL
BY CAR.CARREC.MODEL
WHERE CAR.CARREC.MODEL CONTAINS '2002';
ON TABLE PCHOLD FORMAT XML
END


Then you can assign a control in a HTML page to it with a parameter that will pass the selected value to your fex and have the result you want.


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2410 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Gold member
posted Hide Post
The XML file with the HTML layover works prefectly. Thank you greatly for the assistance!


WebFOCUS 7.7 and WebFOCUS 8
Windows, All Outputs
 
Posts: 36 | Registered: August 17, 2010Report 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] Limiting a Dynamic Dropdown

Copyright © 1996-2020 Information Builders