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 am asking the user for 2 dates, a begin and end date. I want to display the 2 dates on the report like this: 01/01/2007 through 02/02/2007 I can display the first date but I cant figure out how to capture the last date the user entered in order to display on the report.
These dates are captured via an HTML form or some kind of prompt? The dates must have different variable names, something like &BEGIN_DT and &END_DT. You're displaying the dates in a HEADING perhaps? If you can one to work, the second one is exaclty the same:
HEADING "Report for &BEGIN_DT to &END_DT"
Please provide a little more detail if this doesn't help you out.
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
DEFINE FILE AA_GIFT_DETAIL ..... GDATE/MDYY=HDATE(GIFT_DATE, 'MDYY'); GDATE2/MDYY=HDATE(GIFT_DATE, 'MDYY') ..... END TABLE FILE AA_GIFT_DETAIL SUM GIFT_AMT NOPRINT ID NAME1 AS 'NAME' BY DESG NOPRINT BY GIFT_NO_KEY NOPRINT ON DESG SUBHEAD "'DESG'" ON DESG SUBTOTAL AS '*Designation Total' HEADING " North Carolina A "Reconciliation Report" "'GDATE to GDATE2'" FOOTING " " " " WHERE GDATE GE &GDATE.ENTER BEGIN DATE (MMDDYYYY). AND GDATE LE &GDATE2.ENTER THROUGH DATE.; ON TABLE SET PAGE-NUM OFF ON TABLE COLUMN-TOTAL AS 'TOTAL' ON TABLE PCHOLD FORMAT PDF ON TABLE SET STYLE *
&GDATE and &GDATE2 are the DM variables. You could use those directly in your HEADING, but they would be as the use input them. I'm not at all familiar with prompting, but I don't think you can add the '/' to the amper variables with DM. You could try using WebFOCUS to convert the dates:
DEFINE FILE AA_GIFT_DETAIL
.....
GDATE/MDYY WITH GIFT_DATE = '&GDATE';
GDATE2/MDYY WITH GIFT_DATE = '&GDATE2';
.....
HEADING
" North Carolina A
"Reconciliation Report"
"'<GDATE to <GDATE2'"
(The WITH db-field syntax is there because the DEFINE does not have a database field in it).
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
Frank, if these two variables are the ones used in the prompt, will they be available to the code on the 3rd and 4th lines when the prompt is after the 4th line?
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
....(my code)
TABLE FILE AA_GIFT_DETAIL
SUM
GIFT_AMT NOPRINT
ID
NAME1 AS 'NAME'
BY DESG NOPRINT
BY GIFT_NO_KEY NOPRINT
ON DESG SUBHEAD
"'DESG'"
ON DESG SUBTOTAL AS '*Designation Total'
HEADING
" North Carolina A
"Reconciliation Report"
"&DISPLAYDAT1 to &DISPLAYDATE2'"
FOOTING
" "
" "
WHERE GDATE GE '&GDATE' AND GDATE LE '&GDATE2' ;
ON TABLE SET PAGE-NUM OFF
ON TABLE COLUMN-TOTAL AS 'TOTAL'
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE
This should do it....you must not do the define statements
Frank
prod: WF 7.6.10 platform Windows, databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7 test: WF 7.6.10 on the same platform and databases,IE7
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006