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.
Synopsis Have a HTML UI with different report columns selection, based on selected columns the drilldown instruction is generated dynamically and sent to fex via &VAR variable. In FOCUS the correct Syntax is for each DRILLDOWN is separated by "$" followed by drilldown starting at new line (if DRILLDOWN is on same line as "$" WF comments it out) I had to get creative by using "@" as spot marker for newline wherein in the FEX it would screen the &VAR for any "@" and substitute for CR by using CTRAN. In below example the incoming &VAR is &TEST. If you run this example only COUNTRY column shows the DRILLDOWN but not CAR. However if you view copy and paste the "view source" the DRILLDOWN shows up for both column. Need help please.
I am using WF 7610
-SET &ECHO='ALL';
-DEFAULT &BYPHRASE = 'BY DEPTNAME BY JIBNAME';
-DEFAULT &ACROSSPHRASE = 'NEWACCDT2 AS ''';
-DEFAULT &WHEREPHRASE = 'WHERE TxnBilled EQ 1';
-DEFAULT &ST = 'ON DEPTNAME SUBTOTAL MULTILINES AS ''TOTAL''';
-SET &TEST = ' TYPE=DATA, COLUMN=COUNTRY , DRILLMENUITEM=''View Detail by DEPARTMENT'' , FOCEXEC=app/rpt_acct_admin5(COL1 = ''DEPTNAME'' COL1VAL=''DEPTNAME'' WHEREPHRASE= '' WHERE AcctDate GE DT (^09/01/2012^); WHERE AcctDate LE DT(^09/30/2012^); WHERE TxnBilled EQ 1;'' ), TARGET=''_blank'', $ @ TYPE=DATA, COLUMN=CAR , DRILLMENUITEM=''View Detail by JIB'' , FOCEXEC=app/rpt_acct_admin5(COL2 = ''JIBNAME'' COL2VAL=''JIBNAME'' WHEREPHRASE= '' WHERE AcctDate GE DT(^09/01/2012^); WHERE AcctDate LE DT(^09/30/2012^); WHERE TxnBilled EQ 1;'' ), TARGET=''_blank'', $@ ';
-SET &SIZE = 'A' | &TEST.LENGTH;
-SET &DRILLDOWN1 = CTRAN(&TEST.LENGTH, &TEST, 64, 10, '&SIZE.EVAL');
-TYPE &DRILLDOWN1
SET LINES = 99999
TABLE FILE CAR
SUM
'CAR.BODY.DEALER_COST'
BY 'CAR.ORIGIN.COUNTRY'
BY 'CAR.COMP.CAR'
HEADING
""
FOOTING
""
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
GRID=OFF,
FONT='ARIAL',
SIZE=9,
$
TYPE=TITLE,
STYLE=BOLD,
$
TYPE=TABHEADING,
SIZE=12,
STYLE=BOLD,
$
TYPE=TABFOOTING,
SIZE=12,
STYLE=BOLD,
$
TYPE=HEADING,
SIZE=12,
STYLE=BOLD,
$
TYPE=FOOTING,
SIZE=12,
STYLE=BOLD,
$
TYPE=SUBHEAD,
SIZE=10,
STYLE=BOLD,
$
TYPE=SUBFOOT,
SIZE=10,
STYLE=BOLD,
$
TYPE=SUBTOTAL,
BACKCOLOR=RGB(210 210 210),
$
TYPE=ACROSSVALUE,
SIZE=9,
$
TYPE=ACROSSTITLE,
STYLE=BOLD,
$
TYPE=GRANDTOTAL,
BACKCOLOR=RGB(210 210 210),
STYLE=BOLD,
$
&DRILLDOWN1
ENDSTYLE
END
This message has been edited. Last edited by: Kerry,
-SET &ECHO='ALL';
-DEFAULT &BYPHRASE = 'BY DEPTNAME BY JIBNAME';
-DEFAULT &ACROSSPHRASE = 'NEWACCDT2 AS ''';
-DEFAULT &WHEREPHRASE = 'WHERE TxnBilled EQ 1';
-DEFAULT &ST = 'ON DEPTNAME SUBTOTAL MULTILINES AS ''TOTAL''';
-SET &DRILLDOWN_1 = ' TYPE=DATA, COLUMN=COUNTRY , ';
-SET &DRILLDOWN_1A = 'DRILLMENUITEM=''View Detail by DEPARTMENT'' , FOCEXEC=app/rpt_acct_admin5(COL1 = ''DEPTNAME'' COL1VAL=''DEPTNAME'' WHEREPHRASE= '' WHERE AcctDate GE DT (^09/01/2012^); WHERE AcctDate LE DT(^09/30/2012^); WHERE TxnBilled EQ 1;'' ), TARGET=''_blank'',';
-SET &DRILLDOWN_1B = 'DRILLMENUITEM=''View Detail by DEPARTMENT'' , FOCEXEC=app/rpt_acct_admin5(COL1 = ''DEPTNAME'' COL1VAL=''DEPTNAME'' WHEREPHRASE= '' WHERE AcctDate GE DT (^09/01/2012^); WHERE AcctDate LE DT(^09/30/2012^); WHERE TxnBilled EQ 1;'' ), TARGET=''_blank'', $';
-SET &DRILLDOWN_2 = 'TYPE=DATA, COLUMN=CAR , ';
-SET &DRILLDOWN_2A = 'DRILLMENUITEM=''View Detail by JIB'' , FOCEXEC=app/rpt_acct_admin5(COL2 = ''JIBNAME'' COL2VAL=''JIBNAME'' WHEREPHRASE= '' WHERE AcctDate GE DT(^09/01/2012^); WHERE AcctDate LE DT(^09/30/2012^); WHERE TxnBilled EQ 1;'' ), TARGET=''_blank'',';
-SET &DRILLDOWN_2B = 'DRILLMENUITEM=''View Detail by JIB'' , FOCEXEC=app/rpt_acct_admin5(COL2 = ''JIBNAME'' COL2VAL=''JIBNAME'' WHEREPHRASE= '' WHERE AcctDate GE DT(^09/01/2012^); WHERE AcctDate LE DT(^09/30/2012^); WHERE TxnBilled EQ 1;'' ), TARGET=''_blank'', $';
SET LINES = 99999
TABLE FILE CAR
SUM
'CAR.BODY.DEALER_COST'
BY 'CAR.ORIGIN.COUNTRY'
BY 'CAR.COMP.CAR'
HEADING
""
FOOTING
""
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
&DRILLDOWN_1
&DRILLDOWN_1A
&DRILLDOWN_1B
&DRILLDOWN_2
&DRILLDOWN_2A
&DRILLDOWN_2B
ENDSTYLE
END
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
yes that is my last resort but still there should be an explanation to my issue. Why is WF ignoring the second drill down instruction even when clearly "view source" shows the line break. I thought of posting this on focalpoint to get thoughts from all the WF gurus such as yourself :-)