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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
Date Display
 Login/Join
 
Platinum Member
posted
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.

Please help!


tbj
Prod WF 8.1.05,Test WF 8.1.05, WINDOWS 7 Platform, Oracle 12
Excel, PDF, Alpha
 
Posts: 132 | Location: Chapel Hill, NC | Registered: October 24, 2006Report This Post
Expert
posted Hide Post
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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Platinum Member
posted Hide Post
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 *


tbj
Prod WF 8.1.05,Test WF 8.1.05, WINDOWS 7 Platform, Oracle 12
Excel, PDF, Alpha
 
Posts: 132 | Location: Chapel Hill, NC | Registered: October 24, 2006Report This Post
Expert
posted Hide Post
&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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Virtuoso
posted Hide Post
I would do it this way.

-DEFAULT &GDATE1='06152007';
-DEFAULT &GDATE2='06292007';
-SET &DISPLAYDATE1=EDIT(&GDATE1.EVAL,'99/99/9999');
-SET &DISPLAYDATE2=EDIT(&GDATE2.EVAL,'99/99/9999');

No defines needed.

The first two are used for the "Where" and the second two in the header.




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, 2006Report This Post
Expert
posted Hide Post
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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Platinum Member
posted Hide Post
Yeah, Franks asked me for 3 prompts....Francis your worked but what normally took 1 minute to run now runs in like 5 minutes...

But Gracias anyway! It works!!


tbj
Prod WF 8.1.05,Test WF 8.1.05, WINDOWS 7 Platform, Oracle 12
Excel, PDF, Alpha
 
Posts: 132 | Location: Chapel Hill, NC | Registered: October 24, 2006Report This Post
Virtuoso
posted Hide Post
Tracie you got 3 prompts because of a typo on my suggestion, I introduces &GDATE1 instead of &GDATE....

and maybe it should be
-SET &DISPLAYDATE1=EDIT('&GDATE1.EVAL','99/99/9999');

mark the '' !!




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, 2006Report This Post
Platinum Member
posted Hide Post
thats not working either Frank...

Its putting the same value in both...


tbj
Prod WF 8.1.05,Test WF 8.1.05, WINDOWS 7 Platform, Oracle 12
Excel, PDF, Alpha
 
Posts: 132 | Location: Chapel Hill, NC | Registered: October 24, 2006Report This Post
Virtuoso
posted Hide Post
....(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, 2006Report This Post
Platinum Member
posted Hide Post
YEP THAT DID IT

GRACIAS


tbj
Prod WF 8.1.05,Test WF 8.1.05, WINDOWS 7 Platform, Oracle 12
Excel, PDF, Alpha
 
Posts: 132 | Location: Chapel Hill, NC | Registered: October 24, 2006Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders