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.
Does anyone know how to conditionally style with multiple "OR" operators in your WHEN statement? This below does not work:
TYPE=DATA, ACROSSCOLUMN=MAX.AMT_FIELD, IMAGE=streamline_icon_check_circle_25px.png, WHEN=ROW_LBL EQ 'Select Provider Plus 5%' OR 'Select Provider Plus 10%', $
I get the bad value in stylesheet error message when using this code.
However, using just one condition works fine:
TYPE=DATA, ACROSSCOLUMN=MAX.AMT_FIELD, IMAGE=streamline_icon_check_circle_25px.png, WHEN=ROW_LBL EQ 'Select Provider Plus 5%', $
This message has been edited. Last edited by: FP Mod Chuck,
Waz - I had tried that already but my images show as broken images for some reason when doing it that way. Here's the DEFINE field and the style line:
TEST_FIL/A3 = IF ROW_LBL EQ 'Select Provider Plus 5%' OR 'Select Provider Plus 10%' OR 'Select Provider Plus 15%' OR 'Select Provider Plus 20%' OR 'Select Provider Plus 25%' OR 'Select Provider Plus 30%'
THEN 'YES' ELSE 'NOP';
TYPE=DATA, ACROSSCOLUMN=MAX.AMT_FIELD, IMAGE=streamline_icon_check_circle_25px.png, WHEN=TEST_FIL EQ 'YES', $
Yes, it is in a DEFINE and it is a NOPRINT in the final TABLE request. I amended the test selection in the DEFINE however....but the images are still coming out broken for now.
Here is the DEFINE, the last TABLE request, and the styling section:
DEFINE FILE HLD_VBP_DATA
TEST_FIL/A3 = IF ROW_LBL EQ 'Select Provider Plus 5%' AND AMT_FIELD EQ '5%' OR
ROW_LBL EQ 'Select Provider Plus 10%' AND AMT_FIELD EQ '10%' OR
ROW_LBL EQ 'Select Provider Plus 15%' AND AMT_FIELD EQ '15%' OR
ROW_LBL EQ 'Select Provider Plus 20%' AND AMT_FIELD EQ '20%' OR
ROW_LBL EQ 'Select Provider Plus 25%' AND AMT_FIELD EQ '25%' OR
ROW_LBL EQ 'Select Provider Plus 30%' AND AMT_FIELD EQ '30%'
THEN 'YES' ELSE 'NOP';
-*TEST_FIL/A3 = IF AMT_FIELD EQ '5%' OR '10%' OR '15%' OR '20%' OR '25%' OR '30%'
-* THEN 'YES' ELSE 'NOP';
END
TABLE FILE HLD_VBP_DATA
SUM MAX.AMT_FIELD
BY RPT_GRP NOPRINT
BY SORT_ROW NOPRINT
BY ROW_LBL AS ''
BY TEST_FIL NOPRINT
ACROSS CLDR_DT AS ''
ON RPT_GRP SKIP-LINE
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET PAGE-NUM NOPAGE
ON TABLE SET AUTOFIT ON
ON TABLE SET TITLELINE ON
-*ON TABLE SET SPACES 1
-*ON TABLE SET STYLEMODE FIXED
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=REPORT,
CSSURL=IBFS:/WFC/Repository/PMR/common/css/PMR_com_css_main_css.css,
$
TYPE=REPORT,
GRID=OFF ,
FONT='OpenSans',
SIZE=12,
STYLE=NORMAL,
COLOR=RGB(76 76 76),
SQUEEZE=ON,
-* WIDTH=3.0,
JUSTIFY=CENTER,
-* LEFTGAP=1.5,
-* RIGHTGAP=1.5,
$
-*TYPE=HEADING, HEADALIGN=BODY, $
-*TYPE=HEADING, COLSPAN=12, $
TYPE=ACROSSVALUE, STYLE=BOLD, $
TYPE=DATA, ACROSSCOLUMN=MAX.AMT_FIELD, STYLE=BOLD, WHEN=ROW_LBL EQ ' ', $
-* style Potential using bottom border
TYPE=DATA, COLUMN=ROW_LBL, BORDER-BOTTOM=LIGHT, WHEN=ROW_LBL='Potential', $
TYPE=DATA, ACROSSCOLUMN=MAX.AMT_FIELD, BORDER-BOTTOM=LIGHT, WHEN=ROW_LBL EQ 'Potential', $
-* style Estimated using top border
TYPE=DATA, COLUMN=ROW_LBL, BORDER-TOP=LIGHT, WHEN=ROW_LBL='Estimated', $
TYPE=DATA, ACROSSCOLUMN=MAX.AMT_FIELD, BORDER-TOP=LIGHT, WHEN=ROW_LBL EQ 'Estimated', $
-*TYPE=DATA, ACROSSCOLUMN=MAX.AMT_FIELD, COLOR=GREEN, WHEN=ROW_LBL='&|#x2714;&|#xfe0f;', $
TYPE=DATA, ACROSSCOLUMN=MAX.AMT_FIELD, IMAGE=streamline_icon_check_circle_25px.png, WHEN=TEST_FIL EQ 'YES', $
-*TYPE=DATA, ACROSSCOLUMN=MAX.AMT_FIELD, IMAGE=streamline_icon_check_circle_25px.png, WHEN=ROW_LBL EQ 'Select Provider Plus 10%', $
-*TYPE=DATA, ACROSSCOLUMN=MAX.AMT_FIELD, IMAGE=streamline_icon_check_circle_25px.png, WHEN=ROW_LBL EQ 'Select Provider Plus 15%', $
-*TYPE=DATA, ACROSSCOLUMN=MAX.AMT_FIELD, IMAGE=streamline_icon_check_circle_25px.png, WHEN=ROW_LBL EQ 'Select Provider Plus 20%', $
-*TYPE=DATA, ACROSSCOLUMN=MAX.AMT_FIELD, IMAGE=streamline_icon_check_circle_25px.png, WHEN=ROW_LBL EQ 'Select Provider Plus 25%', $
-*TYPE=DATA, ACROSSCOLUMN=MAX.AMT_FIELD, IMAGE=streamline_icon_check_circle_25px.png, WHEN=ROW_LBL EQ 'Select Provider Plus 30%', $
-*OR 'Select Provider Plus 15%' OR 'Select Provider Plus 20%' OR 'Select Provider Plus 25%' OR 'Select Provider Plus 30%',
-*JUSTIFY=LEFT,
$
ENDSTYLE
END
I can't get this to work at all in the TYPE styling.... IMAGE=IBFS:/WFC/Repository/PMR/common/images/streamline_icon_check_circle_25px.png.
What's odd is that if I have this DEFINE field with the filter and just IMAGE=streamline_icon_check_circle_25px.png in the styling , it shows the images:
TEST_FIL/A3 = IF ROW_LBL EQ 'Select Provider Plus 5%' OR 'Select Provider Plus 10%' OR 'Select Provider Plus 15%' OR 'Select Provider Plus 20%' OR 'Select Provider Plus 25%' OR 'Select Provider Plus 30%'
THEN 'YES' ELSE 'NOP';
However, I am not getting the images in the correct places on the output of the report for some records with this filter.
But if I have this particular DEFINE field with this filter with just IMAGE=Image Name in the styling, it does not show the images:
TEST_FIL/A3 = IF ROW_LBL EQ 'Select Provider Plus 5%' AND AMT_FIELD EQ '5%' OR
ROW_LBL EQ 'Select Provider Plus 10%' AND AMT_FIELD EQ '10%' OR
ROW_LBL EQ 'Select Provider Plus 15%' AND AMT_FIELD EQ '15%' OR
ROW_LBL EQ 'Select Provider Plus 20%' AND AMT_FIELD EQ '20%' OR
ROW_LBL EQ 'Select Provider Plus 25%' AND AMT_FIELD EQ '25%' OR
ROW_LBL EQ 'Select Provider Plus 30%' AND AMT_FIELD EQ '30%'
THEN 'YES' ELSE 'NOP';
Also, this is the COMPUTE with the URL link I am using:
SUM COMPUTE CHK/A20 = IF (VBR_PRCG_SCHD_NM EQ 'Select Provider Plus 5%' OR 'Select Provider Plus 10%' OR 'Select Provider Plus 15%' OR 'Select Provider Plus 20%' OR 'Select Provider Plus 25%' OR 'Select Provider Plus 30%')
THEN '<img src="/ibi_apps/run.bip?BIP_REQUEST_TYPE=BIP_LAUNCH&|BIP_folder=IBFS:/WFC/Repository/PMR/common/images|BIP_item=/streamline_icon_check_circle_25px.png">' ELSE '';
Also, the CHK compute field is manipulated into the AMT_FIELD....which is why the stylying uses the AMT_FIELD.
If I generate the checkmark with a Unicode character using this COMPUTE below instead, it works:
COMPUTE CHK/A20 = IF (VBR_PRCG_SCHD_NM EQ 'Select Provider Plus 5%' OR 'Select Provider Plus 10%' OR 'Select Provider Plus 15%' OR 'Select Provider Plus 20%' OR 'Select Provider Plus 25%' OR 'Select Provider Plus 30%')
THEN '&|#x2714;&|#xfe0f;' ELSE '';
Using the Unicode character it generates the checkmarks on the correct records for the report. However, I need to use the image file itself to generate the checkmark because I am including this in a PDF layout. Unicode characters will not display correctly in the PDF layout.