Focal Point
[SOLVED] Using one AMPER VARIABLE to set 3 fields

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

July 01, 2009, 02:23 PM
Greg
[SOLVED] Using one AMPER VARIABLE to set 3 fields
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?

Greg

This 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



GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988