In my report I ask the user what pay periods data they want in the report. PP for previous pay period and CP for current pay period.
WHERE PAYPERIOD EQ '&PayPeriod'
I have a set of dates in the header that also need to change depending on what the user chooses for the pay period variable.
<80 FROM: <PPSTART <+0> TO: <PPEND
Now the header always displays the prevoius pay period dates. I would like these two params to change to CPSTART and CPEND if the users chooses CP as the variable.
So... Can I use the response to one variable to set 2 others?
GregThis message has been edited. Last edited by: Kerry,
prod: WF 7.7.03 platform IIS on Windows 2007, databases: Oracle, , MSSQL
July 01, 2009, 02:51 PM
Danny-SRL
This should do it:
-SET &START=IF &PayPeriod EQ 'PP' THEN 'PPSTART' ELSE 'CPSTART';
-SET &END=IF &PayPeriod EQ 'PP' THEN 'PPEND' ELSE 'CPEND';
...
<80 FROM: <&START <+0> TO: <&END
Daniel In Focus since 1982 wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF
July 01, 2009, 03:09 PM
Greg
That did it!
Thanks Danny.
prod: WF 7.7.03 platform IIS on Windows 2007, databases: Oracle, , MSSQL
July 02, 2009, 03:32 AM
GamP
You could probably even specify:
<80 FROM: <&PayPeriod..START <+0> TO: <&PayPeriod..END