Focal Point
Limit the number of values in Parameter

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/773107674

June 28, 2010, 09:15 PM
Arif
Limit the number of values in Parameter
I am writing a report that requires use to select weekend date. My date table has hundreds of values for weekend field. I just want to show where vlue is > 01/01/2010 in parameter dynamic selection text box. How do I accomplish this?


WebFOCUS 7.6.10
Windows
HTML
June 28, 2010, 09:30 PM
Waz
You want to enter "> 01/01/2010"

You could do this, and then you will have to change the ">" to a GT and then add it to the filter.

&Date = '> 01/01/2010' ;
-SET &test = &Date | ' ' ;
-SET &Test = STRREP (&test.LENGTH,&test,1,'>',2,'GT',&test.LENGTH,'A&test.LENGTH');
WHERE Field &Test



I think that an extra parameter may be a better way to go.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

June 28, 2010, 09:38 PM
Waz
Oops, I misunderstood.

You want to limit the values returned in the parameter its self ?


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

June 28, 2010, 10:42 PM
Arif
Yes want parameter screen to show only values that are after 01/01/2010

Arif


WebFOCUS 7.6.10
Windows
HTML
June 28, 2010, 10:54 PM
Waz
Would this technique help ?


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

June 28, 2010, 11:28 PM
Arif
I was thinking about using another procedure to populate the values in the parameter. Do you know how to use some other procedure to populate the values?


WebFOCUS 7.6.10
Windows
HTML
June 28, 2010, 11:48 PM
Waz
I don't think that would work, unless you have another process to create a new file to use on a regular basis.

Another option may be &variable.(FROM Range1 TO Range2)., but may not work well with dates.

See here


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

June 29, 2010, 11:58 AM
Darin Lee
quote:
Do you know how to use some other procedure to populate the values

There are a couple of different ways to do this, and they are fairly well documented in the manual and on-line help. In the GUI, you just click on the "Procedure" radio button and tell it which procedure will supply the values. The procedure must create and hold the content as documented.


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat