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     Use Amper Variable as Detail Column [SOLVED]

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Use Amper Variable as Detail Column [SOLVED]
 Login/Join
 
Member
posted
Hello All,

I am trying to figure out how can I use an amper variable as a detail field in a report.

For example, if I have &work_date, how can I use &work_date as a detail_field.

I know that typically amper variable have a tie-in to master file, but due to special circumstances it is not the case in this situation.

Thanks for any help.

-redapple

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


WebFOCUS 7.6.11
Developer Studio on Windows XP. Server Components running on Windows Server 2003.
Excel, HTML, PDF
 
Posts: 21 | Registered: August 26, 2009Report This Post
Master
posted Hide Post
If I understand you correctly, you are want to print the value of a variable in a report. Try using define or compute.

COMPUTE WORK_DATE/A10=EDIT('&WORK_DATE.EVAL','99/99/9999');


Pat
WF 7.6.8, AIX, AS400, NT
AS400 FOCUS, AIX FOCUS,
Oracle, DB2, JDE, Lotus Notes
 
Posts: 755 | Location: TX | Registered: September 25, 2007Report This Post
Platinum Member
posted Hide Post
redapple,
I believe you can reference the &var in the detail using the COMPUTE.
 
COMPUTE work_date/A10 = IF &work_date EQ '' THEN '' ELSE &work_date; AS 'WORK DATE'
 


WebFOCUS 7.6.9

Reporting client Windows 2003 Service pack 2 using IIS and TomCat 5.5
Reporting Server OS/400 V5R4M0
Outputs: HTML, Excel, PDF, CSV, and Flat Files
 
Posts: 130 | Location: Columbus, Ohio | Registered: February 25, 2009Report This Post
Member
posted Hide Post
Thanks to PBrightwell and ErinP for the quick and correct help.

As a newbie sometimes we search for the harder solution...


WebFOCUS 7.6.11
Developer Studio on Windows XP. Server Components running on Windows Server 2003.
Excel, HTML, PDF
 
Posts: 21 | Registered: August 26, 2009Report This Post
Virtuoso
posted Hide Post
quote:
COMPUTE work_date/A10 = IF &work_date EQ '' THEN '' ELSE &work_date; AS 'WORK DATE'

Better put quotes around &work_date

Without them you can wind up with (say)
... = IF 01/01/2012 EQ '' ...
which will throw an error (comparison between numeric and alpha values).
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report 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     Use Amper Variable as Detail Column [SOLVED]

Copyright © 1996-2020 Information Builders