Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Using one AMPER VARIABLE to set 3 fields

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Using one AMPER VARIABLE to set 3 fields
 Login/Join
 
Platinum Member
posted
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

 
Posts: 133 | Location: Orlando, FL | Registered: August 04, 2005Report This Post
Virtuoso
posted Hide Post
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

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report This Post
Platinum Member
posted Hide Post
That did it!

Thanks Danny.


prod: WF 7.7.03 platform IIS on Windows 2007, databases: Oracle, , MSSQL

 
Posts: 133 | Location: Orlando, FL | Registered: August 04, 2005Report This Post
Virtuoso
posted Hide Post
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
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Using one AMPER VARIABLE to set 3 fields

Copyright © 1996-2020 Information Builders