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     [SOLVED]Drill Down: Passing Dates Help

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED]Drill Down: Passing Dates Help
 Login/Join
 
Platinum Member
posted
I am trying to do a drill down on a Date field.

The procedure1 is connected to procedure2 and it passes the a date.

more specifically procedure1 passes "DT(mm/dd/yyy)"

the procedure2 is looking for "mm/dd/yyyy" but it recieves "DT(mm/dd/yyyy)" from procdure1

Then it gives me this error

0 ERROR AT OR NEAR LINE 40 IN PROCEDURE futuresellchanges4
(FOC177) INVALID DATE CONSTANT: DT(05/23/2011
(FOC009) INCOMPLETE REQUEST STATEMENT
BYPASSING TO END OF COMMAND



I hope someone understands and is able to help!
Thank you so much!



it is very frustrating and i can't figure out why it can't just pass the date

This message has been edited. Last edited by: Charles Richards,


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 111 | Registered: May 12, 2011Report This Post
Expert
posted Hide Post
Please show us the drilldown code.


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
procedure 1 & 2 have the same data


procedure 1 passes parameters to procedure 2 via drilldown parameter

CODE:

WHERE SELLEFFECTIVEDATE EQ DT(&SDATE);


procedure 2 recieves parameters from procedure 1 via the drilldown parameter

procedure 2 has this where statement



SELLEFFECTIVEDATE EQ DT(&SDATE)


I still get the error

0 ERROR AT OR NEAR LINE 40 IN PROCEDURE futuresellchanges4
(FOC177) INVALID DATE CONSTANT: DT(05/23/2011
(FOC009) INCOMPLETE REQUEST STATEMENT
BYPASSING TO END OF COMMAND



and if i change the format
from MDYY to MDY


0 ERROR AT OR NEAR LINE 40 IN PROCEDURE futuresellchanges4
(FOC177) INVALID DATE CONSTANT: DT(05/23/11
(FOC009) INCOMPLETE REQUEST STATEMENT
BYPASSING TO END OF COMMAND



Please Help!


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 111 | Registered: May 12, 2011Report This Post
Expert
posted Hide Post
The WebFOCUS stylesheet in your fex has code that generates the drilldown - that's what we need to see.

E.g.:
TYPE=DATA, COLUMN=STORE_NAME, FOCEXEC=TEST (STORE_NAME=STORE_NAME), $


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
I figured out what it was

when you use the GUI to add a where statement involving dates it adds the "DT()" around the data. Then when you use the drilldown GUI to pass a date it also puts a "DT()" around the date ending up with one to many "DT()"

Solution

In the where statement I deleted the "DT()" around the parameter DT(&TEST) leaving just &TEST


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 111 | Registered: May 12, 2011Report 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     [SOLVED]Drill Down: Passing Dates Help

Copyright © 1996-2020 Information Builders