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.
First: I'm a newbie with zero experience and about as little training as you can get. Training cost money so therefore is not an option with some companies...
I have a report where I'm trying to get dates greater than 22 months old to highlight in yellow and greater than 24 months old to highlight in red.
Also, I have a report that I know the "NEED DATE" in the shop and a projected lead time from the vendor. I want to show a date needed to order (Need date - # days lead time - 7 days for processing req and PO).
Again, I know this is probably InfoAssist 101 but when you get zero training, you waste a lot of time on things like this.
Thanks!This message has been edited. Last edited by: Pops,
Can you post your date's format; i.e., YYMD, MDYY, etc; and maybe a few examples of what you're trying to accomplish? Are the dates greater than 22 and 24 months using today's date as a reference? The "date needed to order" could be calculated by creating a "define" field and using a function called DATEADD. Hope this helps some.
Posts: 117 | Location: Denver | Registered: July 27, 2005
Convert your date format first using HDATE(YOURDATE, 'YYMD') then try DATEADD again. For instance: NewDate/YYMD (or MDYY) = HDATE(YOURDATE, 'YYMD'); DateCalc/YYMD = DATEADD(NewDate,'D', 7);
Luiz, I did the conversion using HDATE, to establish the MDYY settings. I should have been more clear in my statment above. The System Date is YYMMDDHHMMSS but I use MDYY.
I thought maybe that was the reason for the error.
Date22M shows up fine, I just cannot get the "condiditional formatting" to work.
Yet every date shows up with the special format not just the dates that are LT MONTHS22, I'll attempt to link a sample of the report (at least I did that right!!!)
I've had some issues with the traffic lights, and have a case opened with IB for that. Let me run a quick test, and see if I can duplicate your issue. I'll keep you posted. Thanks
Posts: 117 | Location: Denver | Registered: July 27, 2005
Try the following: a)Make your first condition LT M22 background red b)Add a second condition GE M22 background color of your choice. c) Save it and run
Let me know if works. Thanks
Posts: 117 | Location: Denver | Registered: July 27, 2005
This is the issue with "condidional formatting". I left the second Traffic Light Condition you had me add....
-*COMPONENT=Define_ITEM DEFINE FILE ITEM INVABBR/A6=IF J001.INVT.INVT_ABBRV_CD EQ 'BTAINV' THEN J001.INVT.INVT_ABBRV_CD ELSE IF J001.INVT.INVT_ABBRV_CD EQ 'BTAHNV' THEN J001.INVT.INVT_ABBRV_CD ELSE 'JOB' ; CURRENT_DATE/MDYY=&MDYY ; MONTHS22/MDYY=DATEADD ( CURRENT_DATE , 'M' , -22 ) ; MONTHS24/MDYY=DATEADD ( CURRENT_DATE , 'M' , -24 ) ; LAST_ADJ_DATE/MDYY=HDATE ( LAST_ADJ_DT , 'YYMD' ) ; LA_STATUS/A15=IF LAST_ADJ_DATE LE DATEADD ( LAST_ADJ_DATE , 'Y' , -2 ) THEN 'SLOW' ELSE 'ACTIVE' ; END TABLE FILE ITEM SUM MONTHS22 AS 'Back 22 Months' MONTHS24 AS 'Back 24 Months' NOPRINT J001.INVT.LAST_RECPT_DT/HMDYY AS 'Last Receipt' J001.INVT.LAST_ISS_DT/HMDYY AS 'Last Issue' J001.INVT.LAST_ADJ_DT/HMDYY AS 'Last Adjustment' J001.INVT.ON_HAND_QTY/P16.4C LST.J001.INVT.MATL_CST_AMT/P16.2M AS 'Cost' COMPUTE Value/D12MC=J001.INVT.ON_HAND_QTY * J001.INVT.MATL_CST_AMT ; BY ITEM.ITEM.ITEM_ID UNDER-LINE BY ITEM.ITEM.ITEM_DESC BY INVABBR WHERE ITEM.ITEM.COMM_CD LIKE 'TUBE%'; WHERE ITEM.ITEM.COMPANY_ID EQ '02'; WHERE ITEM.ITEM.ITEM_ID LIKE '06-2000-2%'; HEADING "INVENTORY AGING AS OF ON TABLE PCHOLD FORMAT HTML ON TABLE NOTOTAL ON TABLE SET PAGE-NUM NOLEAD ON TABLE SET SQUEEZE ON ON TABLE SET HTMLCSS ON ON TABLE SET HTMLENCODE ON ON TABLE SET EMPTYREPORT ON ON TABLE SET EXPANDABLE OFF ON TABLE SET EXPANDBYROW OFF ON TABLE SET DROPBLNKLINE OFF ON TABLE SET STYLE * INCLUDE=IBFS:/CFG/FILE/IBI_HTML_DIR/javaassist/intl/EN/ENIADefault_combine.sty,$ DEFMACRO=Condition_1, COLOR=RGB(255 255 0), STYLE=BOLD, BACKCOLOR=RGB(255 0 0), WHEN=N6 LT MONTHS22, $ DEFMACRO=Condition_2, COLOR=RGB(32 0 32), STYLE=BOLD, BACKCOLOR=RGB(255 255 0), WHEN=N6 GE MONTHS22, $ TYPE=HEADING, LINE=1, JUSTIFY=CENTER, $ TYPE=HEADING, LINE=1, ITEM=1, OBJECT=TEXT, SIZE=12, STYLE=BOLD, $ TYPE=HEADING, LINE=1, ITEM=1, OBJECT=FIELD, SIZE=12, STYLE=BOLD, $ TYPE=DATA, BACKCOLOR=(RGB(255 255 255) NONE), $ TYPE=DATA, COLUMN=N7, JUSTIFY=CENTER, $ TYPE=DATA, COLUMN=N6, MACRO=Condition_1, $ TYPE=DATA, COLUMN=N6, MACRO=Condition_2, $ ENDSTYLE END
I think the issue that you are encountering may be because of the "dynamic redefine" of the receipt date's format, and/or that this format does not match the MONTHS22 format i.e. J001.INVT.LAST_RECPT_DT/HMDYY AS 'Last Receipt' and MONTHS22/MDYY=DATEADD ( CURRENT_DATE , 'M' , -22 ) ;
So, if you leave MONTHS22 with a format of MDYY, then I would suggest you create a DEFINE for a new field e.g. LASTRECPTDT, which converts your LAST_RECPT_DT field to an MDYY format as well.
WebFOCUS 8.2.06 mostly Windows Server
Posts: 195 | Location: Johannesburg, South Africa | Registered: September 13, 2008