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] Retrieve data for the last 10 days report

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Retrieve data for the last 10 days report
 Login/Join
 
Member
posted
Hi,
I'm new to the App studio(co-op student) and as a first task I have to create a report that retrieve some date, but the date need to be for the last 10 days. I'm stuck in the part how to display the last ten days data?
thank you!

This message has been edited. Last edited by: FP Mod Chuck,


WebFocus App Studio
V8201
 
Posts: 23 | Registered: September 18, 2017Report This Post
Virtuoso
posted Hide Post
Hi Badr.A

Welcome to Focal Point. This is a great place to get answers to your development questions.

You will need to set a variable to use in your WHERE statement.

This dialog manager code will go before the actual report.


-SET &&P10DAY=AYMD(&YYMD,-10,'I8YYMD');


Then your WHERE statement will be

WHERE DATEFIELD GE &&P10DAY


DATEFIELD will be the name of the date field you want to compare to.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
 
Posts: 2127 | Location: Customer Support | Registered: April 12, 2005Report This Post
Member
posted Hide Post
Thank you Chuck Wolff,
I need to confirm what I did I added:
-SET &&P10DAY=AYMD(&YYMD,-10,'I8YYMD');
To the very top of the TEXT EDITOR, then I create an advanced where clause:
START_TIME GE &&P10DAY
START_TIME: is the name of the field in need to compare with.
what if I need to show the last 5 days,would I change only the numbers from 10 to 05?

thank you!
quote:
Originally posted by Chuck Wolff:
Hi Badr.A

Welcome to Focal Point. This is a great place to get answers to your development questions.

You will need to set a variable to use in your WHERE statement.

This dialog manager code will go before the actual report.


-SET &&P10DAY=AYMD(&YYMD,-10,'I8YYMD');


Then your WHERE statement will be

WHERE DATEFIELD GE &&P10DAY


DATEFIELD will be the name of the date field you want to compare to.


WebFocus App Studio
V8201
 
Posts: 23 | Registered: September 18, 2017Report This Post
Virtuoso
posted Hide Post
Hi Badr

Yes you would change it from 10 to 5.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
 
Posts: 2127 | Location: Customer Support | Registered: April 12, 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     [SOLVED] Retrieve data for the last 10 days report

Copyright © 1996-2020 Information Builders