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 have a calendar control in my HTML and i have defined its date format as trMYY (i.e September, 2011). This value is passed to my fex file on page sumbit and i am trying to convert this to a YYM format in order to use it as a filter. I have tried CHGDAT, DATECVT and EDIT. No luck yet. Here is what i am doing, can any one please help me out
&START_DT is the variable coming from Calendar control. The value will be 'September, 2011'
Alas, an ampersand variable does not know date formats from adam. Ampersand Variables can be ALpha, or numeric, and their contents, AND their usage in the CURRENT Dialog Manager line of code determine how they will be evaluated.
In this case, I would use a DECODE of your &ST_MON variable to convert 'September' into '09'. Then hard concatente that onto &ST_YR as in &ST_YY || &ST_MON to create something theat looks liek a YYM date.
Now, create a DEFINE field using your CHGDAT function and use that defined field in your WHERE clause.
Robert F. Bowley Jr. Owner TaRa Solutions, LLC
In WebFOCUS since 2001
Posts: 132 | Location: Gadsden, Al | Registered: July 22, 2005
Thnks Robert. I was also thinking of using a Define field for my Where Clause. But that is converting my Hold file field to this trMYY format. Anyways just wanted to know if there is something available in dialog manager to convert trMYY to YYMD format. One more reason why i wanted it to be converted is to use this variable in my SQL Pass thro filter. I guess i have to the use your DECODE logic. Thanks much for your help.
Release : 7.7.02 OS : Linux App Server : Tomcat all output
I had the exact same issue with the date coming from a launch page. This is the logic I use to process the incoming date (&RPT_MONTH is the incoming date) and determine begin and end dates for WHERE...FROM...TO clauses in the report logic: