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
February 21, 2011, 09:31 PM
jimster06
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
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