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     [CLOSED] TrMYY - date Function isn't working

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] TrMYY - date Function isn't working
 Login/Join
 
Member
posted
I am working with 7.1.7 Webfocus.
I am trying to execute the below code and connect the result to Dropdown box in HTML form.

DEFINE FILE COMPPLAN
EFF_FRMT/trMYY=EFF_YM;
END
TABLE FILE COMPPLAN
BY HIGHEST EFF_FRMT
WHERE EFF_FRMT NE ' ';
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT XML
ON TABLE SET HTMLCSS ON
END

But Dropdown box has
'032011'
'022011'
which are suppose to be
'January 2011'
'February 2011'
etc

Any suggessions??

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


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 28 | Registered: January 20, 2011Report This Post
Guru
posted Hide Post
There appear to be multiple challenges here.
First trMYY seems to be unknown; Do you mean MtrYY?
Additionally the format works on legacy dates such as A6YMD.
You may want reconsider the format of EFF_YM


jimster06
DevStu WF 7.6.11
W7
HTML, PDF, EXL2K
 
Posts: 252 | Location: USA | Registered: April 15, 2003Report This Post
Virtuoso
posted Hide Post
Try
myyDate/MYY=EFF_YM;
showDate/A20=DATETRAN(myyDate,'(MYY)','(tr)','EN',20,'A20');


Alan.
WF 7.705/8.007
 
Posts: 1451 | Location: Portugal | Registered: February 07, 2007Report This Post
Member
posted Hide Post
That code isn't working.


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 28 | Registered: January 20, 2011Report This Post
Member
posted Hide Post
I tried even MtrYY, but isn't working.

I am not getting the result in format "January 2011".


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 28 | Registered: January 20, 2011Report This Post
Expert
posted Hide Post
Alan has the right idea.

As you are returning this to a drop down list, it would be safer to return a string instead of a date.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Virtuoso
posted Hide Post
quote:
That code isn't working.


If you mean:
myyDate/MYY=EFF_YM;
showDate/A20=DATETRAN(myyDate,'(MYY)','(tr)','EN',20,'A20');


It is one of the few ways to achieve what you are after. It does work, I use it on various applications. Check what you are doing.


Alan.
WF 7.705/8.007
 
Posts: 1451 | Location: Portugal | Registered: February 07, 2007Report This Post
Expert
posted Hide Post
quote:
myyDate/MYY=EFF_YM;
showDate/A20=DATETRAN(myyDate,'(MYY)','(tr)','EN',20,'A20');


Works perfect, Alan.

  
APP PREPENDPATH IBISAMP
-RUN
DEFINE FILE GGSALES
MYYDATE/MYY=DATE;
SHOWDATE/A20=DATETRAN(MYYDATE,'(MYY)','(TR)','EN',20,'A20');
END
TABLE FILE GGSALES
SUM
  DST.SHOWDATE
 BY SHOWDATE NOPRINT
ON TABLE PCHOLD FORMAT XML
END
-EXIT


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report 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     [CLOSED] TrMYY - date Function isn't working

Copyright © 1996-2020 Information Builders