Focal Point
[CLOSED] Parameters

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

March 11, 2011, 05:27 AM
Carlos Dias
[CLOSED] Parameters
I plan to publish a report that, by default, has as parameter the most recent day. For that I am using two procedures. The first gets the last day with data. This information is used to populate a textbox. The second report takes as a parameter the value of the input textbox.

Because data from both procedures are from the same table, can I do everything in just one procedure? What is the best approach?

What I have right now is something like:
Procedure 1
  
TABLE FILE ABC
PRINT DATE
BY  HIGHEST 1 BY DATE
ON TABLE HOLD FORMAT ALPHA AS DATEVAL
END

-RUN
-HTMLFORM BEGIN
!IBI.FIL.DATEVAL;
-HTMLFORM END


This is used is to populate the HTML input textfile. Then the other procedure receives as parameter the value of the input.

Thanks in advanced,
Carlos Dias

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


WebFOCUS version: 7.6
Linux/Windows
HTML, Excel
March 11, 2011, 03:17 PM
Waz
Can't you just combine th two ?

I would suggest having the -HTMLFORM last in the procedure.


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!