Focal Point Banner


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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Drillmenuitem issue

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Drillmenuitem issue
 Login/Join
 
Gold member
posted
I am using the following in a procedure. The field WCCSTS is format A7. Each of these drill downs work individually but when I put them in multiselect format, I don't get the multiselect popup and the browser gives the error (Message: 'a_cont[...][...]' is null or not an object)

Below is the multiselect statement. If I comment out the lines involving WCCSTS, I get the pop up box.

TYPE=DATA,
COLUMN=N1,
TARGET='_self',
DRILLMENUITEM='Sales by Whse',
FOCEXEC=app/whse_sales_loc( \
CCDRILL=WCCSTS \
RANDOM='&RANDOM' \
),
DRILLMENUITEM='Sales by Customer',
FOCEXEC=app/costcenter_sales_loc_cust( \
CCDRILL=WCCSTS \
RANDOM='&RANDOM' \
),
$

This message has been edited. Last edited by: Kerry,


WebFOCUS 7.6.10
Windows
all output (Excel, HTML, PDF)
 
Posts: 69 | Registered: March 11, 2010Report This Post
Expert
posted Hide Post
This works for me.

-SET &RANDOM = &TOD ;

DEFINE FILE CAR
 WCCSTS/A7 = EDIT(CAR,'9999999') ;
END
TABLE FILE CAR
PRINT COUNTRY
      WCCSTS
ON TABLE SET STYLE *
TYPE=DATA,
COLUMN=N1,
TARGET='_self',
DRILLMENUITEM='Sales by Whse',
FOCEXEC=app/whse_sales_loc( \
CCDRILL=WCCSTS \
RANDOM='&RANDOM' \
),
DRILLMENUITEM='Sales by Customer',
FOCEXEC=app/costcenter_sales_loc_cust( \
CCDRILL=WCCSTS \
RANDOM='&RANDOM' \
),
$
ENDSTYLE
END


Can you post the whole TABLE FILE ?

Also what does the field contain ?, could it have embedded quotes ?


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Gold member
posted Hide Post
It doesn't have embedded quotes. If I use only the followng, it works fine but stops working when put in multidrilldown
TYPE=DATA,
COLUMN=N1,
TARGET='_self',
FOCEXEC=app/whse_sales_loc( \
CCDRILL=WCCSTS \
RANDOM='&RANDOM' \
),
$

Here is the procedure. Thanks for your help.
-SET &ECHO=ON;
-SET &RANDOM=EDIT(&TOD,'99$99$99');

TABLE FILE EXEC_SALES_13MO
SUM
'PRIORYRMTD_SALES/D14.2!D' AS 'Sales LY MTD'
'CURRENTYRMTD_SALES/D14.2!D' AS 'Sales MTD'
'PRIORYRMTD_QTY/P14C' AS 'Qty LY MTD'
'CURRENTYRMTD_QTY/P14C' AS 'Qty MTD'
'GP_LY_MTD/D14.2!D' AS 'GP LY MTD'
'GP_MTD/D14.2!D' AS 'GP MTD'
COMPUTE GROSS_MARGIN_LYMTD%/P17.2C% = 100 * ( GP_LY_MTD / PRIORYRMTD_SALES );
AS 'GP%, LY MTD'
COMPUTE GROSS_MARGIN_MTD%/P17.2C% = 100 * (GP_MTD /CURRENTYRMTD_SALES );
AS 'GP% MTD'
'PRIORYTD_SALES/D14.2!D' AS 'Sales LYTD'
'CURRENTYTD_SALES/D14.2!D' AS 'Sales YTD'
'PRIORYTD_QTY/P14C' AS 'Qty LYTD'
'CURRENTYTD_QTY/P14C' AS 'Qty YTD'
'GP_LY_YTD/D14.2!D' AS 'GP LYTD'
'GP_YTD/D14.2!D' AS 'GP YTD'
COMPUTE GROSS_MARGIN_LYTD%/P17.2C% = 100 * ( GP_LY_YTD / PRIORYTD_SALES );
AS 'GP% LYTD'
COMPUTE GROSS_MARGIN_YTD%/P17.2C% = 100 * ( GP_YTD / CURRENTYTD_SALES );
AS 'GP% YTD'

BY KOACNA AS 'Cost Center'
BY WCCSTS NOPRINT


ON TABLE SUBHEAD
"Sales by Cost Center"

ON TABLE SET BYDISPLAY ON
ON TABLE SUMMARIZE AS 'TOTAL'
ON TABLE PCHOLD FORMAT AHTML
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
GRID=OFF,
FONT='ARIAL',
SIZE=8,
LINES-PER-PAGE=25,
ALLOW-CHART=OFF,
ALLOW-ROLLUP=OFF,
ALLOW-PIVOT=OFF,
ALLOW-COMMENTS=OFF,
ALLOW-TOOLS=OFF,
$
TYPE=DATA,
COLUMN=N1,
TARGET='_self',
DRILLMENUITEM='Sales by Whse',
FOCEXEC=app/whse_sales_loc( \
CCDRILL=WCCSTS \
RANDOM='&RANDOM' \
),
DRILLMENUITEM='Sales by Customer',
FOCEXEC=app/costcenter_sales_loc_cust( \
CCDRILL=WCCSTS \
RANDOM='&RANDOM' \
),
$
ENDSTYLE
END
-EXIT


WebFOCUS 7.6.10
Windows
all output (Excel, HTML, PDF)
 
Posts: 69 | Registered: March 11, 2010Report This Post
Virtuoso
posted Hide Post
The message sounds like a javascript issue. I would open a case with IBI.
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
Expert
posted Hide Post
What browser are you using ?

Are there any messages, popups, etc.

e.g. IE 6 will have a small yellow triangle in the bottom left corner of the browser.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Gold member
posted Hide Post
I am using IE version 8 and the error is the following.


Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB7.0; .NET CLR 2.0.50727)
Timestamp: Tue, 28 Jun 2011 20:17:24 UTC


Message: 'a_cont[...][...]' is null or not an object
Line: 1
Char: 1
Code: 0
URI: http://srvbitest/ibi_apps/WFServlet


WebFOCUS 7.6.10
Windows
all output (Excel, HTML, PDF)
 
Posts: 69 | Registered: March 11, 2010Report This Post
Expert
posted Hide Post
Can you post the fex, I think there is something more to the report than a simple program.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Expert
posted Hide Post
Please always post code between
[CODE]

[/CODE]

tags.


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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Gold member
posted Hide Post
quote:
BY WCCSTS NOPRINT


The above statement was the problem. I removed the 'NOPRINT' and now it works fine with just 'BY WCCSTS'. I had no idea this would cause this issue.


WebFOCUS 7.6.10
Windows
all output (Excel, HTML, PDF)
 
Posts: 69 | Registered: March 11, 2010Report This Post
Expert
posted Hide Post
I would suggest putting in a case with IBI to determine what the actual issue is, and get it fixed.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Gold member
posted Hide Post
Would do. Thanks.


WebFOCUS 7.6.10
Windows
all output (Excel, HTML, PDF)
 
Posts: 69 | Registered: March 11, 2010Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Drillmenuitem issue

Copyright © 1996-2020 Information Builders