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.
I have a report that runs for certain date. I also have a column in the report that has period and year associated to the date. Is there a way I can show period information in header? I looked in here I found that I can show paramet value in hearer; however, I want a different value from a field showing in my heading. Is it possible?This message has been edited. Last edited by: Kerry,
Sorry I didnt provide complete information. Here is the list of complete information:
I have a field called date I am using in parameter. I also have a column name Fiscalyearperiod. I want to show FISCALyearperiod information for the user selected dated in the header information. Exmaple: User Selected date> 01/01/2010
Coresponding Value for FiscalYearPERIOD is 201001 So, I want to show 201001 in header when user select 01/01/2010
IF User Selected date> 02/01/2010
Coresponding Value for FiscalYearPERIOD is 201002 So, I want to show 201002 in header when user select 02/01/2010
Just put that amper variable in the AS phrase for that column. Say your date input variable is &FY_PERIOD.
PRINT Fiscalyearperiod AS '&FY_PERIOD'
Regards,
Darin
In FOCUS since 1991 WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex WF Client: 77 on Linux w/Tomcat
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007
I guess that I'm assuming that by "header" you mean the column title. For putting it in a sub/page/report heading, the &var name just goes between the double quotes wherever you want it placed.
Regards,
Darin
In FOCUS since 1991 WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex WF Client: 77 on Linux w/Tomcat
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007
I think I still didnt post clearly what I want. Here is what my Table looks like
Date FYP 01/01/2010 201001 02/01/2010 201002 03/01/2010 201003 When user runs the report, report opens a parameter page with date selection. User selectc a date 01/01/2010, so when user selects this date I want it to show 201001 in heading of the report not column. If user select 02/01/2010 then heading should be 201002. I hope I am clear enough I can not use &FYP because I am not selcting FYP in the parameter. Any idea?
If FYP is in the data you are tabling, then include the field in the heading " If its not, TABLE the file with the FYP in it, with a date filter, Hold it, then -READ the value into a variable.
Folloing is the table so i have the FYP value in my table but user is seletcing DATE Value in the parameter, so I cant use &DATE variable. I need FYP for the selected date in my heading.
DATE FYP
01/01/2010 201001
02/01/2010 201002
03/01/2010 201003
You cannot use the value of another field in the column heading. If you want anything in the column title other than the field name it has to go in the AS phrase and the only thing that can go in there is text or an &var. A little creativity would allow you to easily manipulate the date you are passing and create an &var that can be used in the column title:
No need to rely on a field.This message has been edited. Last edited by: Darin Lee,
Regards,
Darin
In FOCUS since 1991 WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex WF Client: 77 on Linux w/Tomcat
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007
If your report is based on FYP, why not use FYP for user selection on your parameter selection page? What does the WHERE clause in your report look like? I would be interested to see how you obtain the data for FYP on your report if you are using a DATE value in your WHERE clause.This message has been edited. Last edited by: Dan Satchell,
WebFOCUS 7.7.05
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007
Alternatively, you could write a separate procedure that would create dynamic Dialogue Mangager code to populate the column title based on a selected parameter value. Here's an example from CAR:
-SET &ECHO=ALL;
-DEFAULTH &CAR=JENSEN
-* &CAR is the user selected value
-* Set up your dynamic fex
FILEDEF HOLD DISK dmfex.ftm (APPEND
-RUN
-WRITE HOLD -SET &|TITLE=
-* read the car file creating a matched pair of value(CAR) and column heading(COUNTRY) for the value selected and write out the DM code
DEFINE FILE CAR
COUNTER/I9 WITH RCOST=COUNTER+1;
LINE1/A80=IF COUNTER EQ 1 THEN '- IF &|CAR EQ '|''''||CAR||''''||' THEN '|''''||COUNTRY||'''' ELSE
'- ELSE IF &|CAR EQ '|''''||CAR||''''||' THEN '|''''||COUNTRY||'''' ;
END
TABLE FILE CAR
PRINT LINE1
ON TABLE HOLD FORMAT ALPHA
END
-RUN
-WRITE HOLD - ELSE ' ' ;
-CLOSE HOLD
-* HOLD now contains a complete Dialogue Manager statement which will take the value selected and populate &TITLE with the appropriate value.
-MRNOEDIT -INCLUDE dmfex.ftm
TABLE FILE CAR
PRINT CAR AS '&TITLE'
ON TABLE SET STYLE *
TYPE=REPORT, GRID=OFF,$
TYPE=TITLE, STYLE=BOLD,$
ENDSTYLE
END
If you view source on this you'll see the contents of the dynamically generated fex with the DM code.
Regards,
Darin
In FOCUS since 1991 WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex WF Client: 77 on Linux w/Tomcat
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007