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] Date dropdown in maintain.

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Date dropdown in maintain.
 Login/Join
 
Guru
posted
Hi All,
In maintain Screen, I want to place a dropdown which will contain values of Previous 12 month end date and next 12 month end date in DD/MM/YYY format . i.e, As today date is 05/07/2012, the dropdown will contain 31/07/2011,31/08/2011,/30/09/2011,……………………30/06/2012,31/07/2012,31/08/2012,…………………………….31/05/2013, 30/06/2013,31/07/2013 values. How to achieve this? Please suggest.

Thanks in Advance

This message has been edited. Last edited by: Kerry,


WF 8.1.04,Windows 7,
DataBase: Oracle 11g,Output :Excel,PDF,HTML
 
Posts: 281 | Location: India | Registered: April 21, 2007Report This Post
Virtuoso
posted Hide Post
Sunil, try this:
.
.
Case Top
dateStack.meDate/a10;
.
.
popDates();
EndCase
.
.
case popDates
Declare (eomDate/dmyy; holdDate/dmyy; thisDate/HDMYYm; alphaDate/a10; point/a3; component/a1; i/i4; j/i4; Recurs/i4;);

$* 
  Get today and move to end of month
  Note: Some date functions are different in Maintain, requiring an extra component
        Dates can move directly into and out of Alpha format in Maintain
        All components of date fuctions need to be variables
*$
Compute point = 'EOM'; component = 'M'; recurs = 25; thisDate = HGETC(8,thisDate); alphaDate = thisDate; holdDate = alphaDate; eomDate = DATEMOV(holdDate,point,eomDate);

$$ Populate stack from 12 months back to 12 months ahead
Repeat Recurs i = -12; j = 1; 
  dateStack(j).meDate = DATEADD(eomDate,component,i,holdDate); 
endRepeat i = i + 1; j = j + 1;

EndCase


(Edit is just a tidy up…)

This message has been edited. Last edited by: Alan B,


Alan.
WF 7.705/8.007
 
Posts: 1451 | Location: Portugal | Registered: February 07, 2007Report This Post
Guru
posted Hide Post
Thanks a lot Alan.

Regards,
Anil


WF 8.1.04,Windows 7,
DataBase: Oracle 11g,Output :Excel,PDF,HTML
 
Posts: 281 | Location: India | Registered: April 21, 2007Report 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] Date dropdown in maintain.

Copyright © 1996-2020 Information Builders