Focal Point
[CLOSED] How do I create a single parameter value for multiple fields?

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

May 11, 2010, 10:29 AM
Patty Stoddard
[CLOSED] How do I create a single parameter value for multiple fields?
I want to create an outstanding check list. I need the check date to be on or before a particular date the user enters as a parameter. I also have an if statement that says if the cancel date is not missing, the cancel date should be on or before the same particular date the user enters as a parameter.

How do I set it up so the user only has to enter a single date that can be applied to both if/where statements?

This message has been edited. Last edited by: Kerry,
May 11, 2010, 10:51 AM
GinnyJakes
You can use the same amper variable in multiple places in a focexec. What you are trying to do doesn't seem to be a problem. You may have to reformat the incoming date parameter based on the formats of the dates you are comparing it to, but you should be able to do this easily.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
May 11, 2010, 08:24 PM
Doug
Right...
TABLE FILE MYFILE
...
WHERE DB_DATE_FIELD1 GE &MY_DATE
WHERE DB_DATE_FIELD2 LE &MY_DATE
...
END





   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206