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 stacked bar graph whic counts the number of products within each product group across quarter.
GRAPH FILE PRDRLSE SUM CNT.PRODFAM ACROSS YEARQTR BY PRODGROUP ... ON GRAPH SET STYLE * TYPE=DATA, FOCEXEC=TEST.FEX(YEARQTR=A1\ PRODGRP= ????) TARGET='iframe2',$
I want to drill into the graph and pass the value of PRODGROUP to the called FEX. How do I reference the specific PRODGROUP column?
I've tried N1 and N2... N2 gives me the CNT.PRODFAM value, and N1 returns nothing.
I thought you may have tried that; should have known better.
Here is an example for what you are trying to do:
-DEFAULT &CAR_SEL = ' ', &CNTRY_SEL = ' '
GRAPH FILE CAR
SUM
DEALER_COST
SALES
RETAIL_COST
COUNTRY NOPRINT <-------------------
ACROSS CAR
ON GRAPH SET LOOKGRAPH VBRSTK1
ON GRAPH SET STYLE *
TYPE=DATA, FOCEXEC=TEST(CAR_SEL=A1 CNTRY_SEL = COUNTRY), $
ENDSTYLE
ON GRAPH SET GRAPHSTYLE *
setDisplay(getDataTextStackedTotalOnTop(), true);
setFillColor(getDataTextStackedTotalOnTop(),new Color(0,0,255));
setDataTextPosition(0);
setTextRotation(getDataTextStackedTotalOnTop(), 0);
setPlace(true);
END
-EXIT
Test.fex
-SET &ECHO=ALL;
-DEFAULT &CAR_SEL = ' '
-DEFAULT &CNTRY_SEL = ' '
TABLE FILE CAR
HEADING
"CAR"
"COUNTRY <+0> NAME <+0> SEAT"
" "
PRINT
CAR AS ''
SEAT AS ''
BY COUNTRY AS ''
WHERE COUNTRY EQ '&CNTRY_SEL.EVAL'; <----------
WHERE CAR EQ '&CAR_SEL.EVAL'; <----------
ON TABLE SET STYLE *
UNITS=IN, SQUEEZE=ON, ORIENTATION=PORTRAIT, $
TYPE=REPORT, GRID=OFF, FONT='ARIAL', SIZE=9, $
TYPE=HEADING, HEADALIGN=BODY, SIZE=10, $
TYPE=HEADING, LINE=1, ITEM=1, POSITION=CAR, STYLE=NORMAL,$
TYPE=HEADING, LINE=2, ITEM=2, POSITION=CAR, STYLE=ITALIC,$
ENDSTYLE
END
-EXIT
GRAPH FILE PRDRLSE SUM CNT.PRODFAM ACROSS YEARQTR BY PRODGROUP ... ON GRAPH SET STYLE * TYPE=DATA, FOCEXEC=TEST.FEX(YEARQTR=A1 \ PRODGRP= PRODGROUP) TARGET='iframe2',$
Adding
GRAPH FILE PRDRLSE SUM CNT.PRODFAM PRODGROUP NOPRINT ACROSS YEARQTR BY PRODGROUP
within the verb won't work??? I am surprised, should work..
I will assume there is a space between YEARQTR=A1 and your continuation slash \...