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     FML Report - Column Headings

Read-Only Read-Only Topic
Go
Search
Notify
Tools
FML Report - Column Headings
 Login/Join
 
Gold member
posted
I am trying to change the column heading in a FML report base on a define field - for some reason it does not recognize the define field.
THESE ARE MY DEFINES:

YR1_TITLE/A11 = IF 'SERVICEMONTH' EQ 'December' THEN (' ' | '&YR1') ELSE (PREVYR1A | ' - ' | CURYR1A );
YR2_TITLE/A11 = IF 'SERVICEMONTH' EQ 'December' THEN (' ' | '&YR2') ELSE (PREVYR2A | ' - ' | CURYR2A );
YR3_TITLE/A11 = IF 'SERVICEMONTH' EQ 'December' THEN (' ' | '&YR3') ELSE (PREVYR3A | ' - ' | CURYR3A );
END

TABLE FILE HLDXALL
SUM
COMPUTE SERVMONTH/Mtr = SERVICEMONTH; AS 'Service Month'
YR1_COUNT AS '&YR1_TITLE'

HERE YOU SEE I AM TRYING TO CHANGE THE HEADING VALUE WITH THE 'AS' BUT THE YR1_TITLE FIELD ACCORDING TO FOCUS DOES NOT EXIST

ANY SUGGESTIONS


WebFocus 7.6.6
Oracle 10
Windows XP
 
Posts: 60 | Registered: March 13, 2007Report This Post
Virtuoso
posted Hide Post
Jay

You are intermixing dialogue manager and table the wrong way around.

A TABLE or DEFINE can utilise &variables, but you are creating a field in a DEFINE that you then refer to as an &variable.

Dialogue Manager is a control language with &variables and lines that begin with a '-'; &variables are constructed with a -SET only.

Now I am not sure how to achieve what you want here, with any ease, but your approach cannot work.

An approach may be to use the DEFINEd fields in a heading, positioning over each column, and use AS '' for the fields.

This message has been edited. Last edited by: Alan B,


Alan.
WF 7.705/8.007
 
Posts: 1451 | Location: Portugal | Registered: February 07, 2007Report This Post
Gold member
posted Hide Post
Here is some of the code I used to create the column headings:
-IF &SELECTMONTH = 'December' GOTO ONEYEAR;
-SET &PREVYR1 = &YR1 - 1;
-SET &PREVYR2 = &YR2 - 1;
-SET &PREVYR3 = &YR3 - 1;
-SET &DASH = '-';
-SET &HEADYR1 = &PREVYR1 | &DASH | &YR1;
-SET &HEADYR2 = &PREVYR2 | &DASH | &YR2;
-SET &HEADYR3 = &PREVYR3 | &DASH | &YR3;
-GOTO REPORT
-ONEYEAR
-SET &HEADYR1 = &YR1;
-SET &HEADYR2 = &YR2;
-SET &HEADYR3 = &YR3;

Now in the report - this is the code:

TABLE FILE HLDXALL
SUM
YR1_COUNT/I10C AS '&HEADYR1'
YR2_COUNT/I10C AS '&HEADYR2'
COMPUTE PC21/P6.2% = ( ( YR2_COUNT - YR1_COUNT ) / YR1_COUNT ) * 100;
AS 'Percent Change'
YR3_COUNT/I10C AS '&HEADYR3'


Hope this helps somebody


WebFocus 7.6.6
Oracle 10
Windows XP
 
Posts: 60 | Registered: March 13, 2007Report This Post
Expert
posted Hide Post
If this is truly a snippet of your code, then there doesn't appear to be anything wrong with it. Your original post stated that the DEFINE wasn't working. Alan B explained you were incorrectly mixing Dialogue Manager and WebFOCUS code.

What's wrong with the latest version of the code?

Are you getting an error message?


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 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     FML Report - Column Headings

Copyright © 1996-2020 Information Builders