Focal Point
[SOLVED] 'length' is null or not an object

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/7827053995

February 25, 2011, 04:36 PM
jjeanjaquet
[SOLVED] 'length' is null or not an object
I created a Active report format. It works great until someone tries to enact the rollup function, where an the good 'ol error is thrown on the browser, "'length' is null or not an object" in line 1 char 1.
Does anyone know how to fix this or what is wrong with my data to cause this? It would be really nice to be able to use the rollup function.

An example of what I might do is Rollup Cost by Date.

Thanks,

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


WebFOCUS 7.7.2: Windows 7: all output (Excel, HTML, PDF)
February 27, 2011, 04:40 PM
Brian Suter
Can you post an example using CAR or GGSALES ?


Brian Suter
VP WebFOCUS Product Development
February 28, 2011, 01:26 PM
jjeanjaquet
The thing about it is, I have several other reports in Active Report format that work fine when using the rollup function. As such, I'm sure an example in CAR OR GGSALES would probably work also.
I'm trying to figure out exactly which metrics are causing the problem. I was only wondering if someone had previously experienced this problem, and whether or not they could pinpoint the cause.
I will update the thread with my findings (if any).


WebFOCUS 7.7.2: Windows 7: all output (Excel, HTML, PDF)
February 28, 2011, 02:01 PM
jjeanjaquet
I figured out the one thing that is causing issues. When I create a table of contents using ON TABLE SET COMPOUND 'BYTOC 2', the Rollup and Pivot functionalities return 'length' is null or not an object errors.

TABLE FILE CAR
PRINT
CAR.ORIGIN.COUNTRY
CAR.COMP.CAR
CAR.CARREC.MODEL
CAR.SPECS.MPG
CAR.SPECS.FUEL_CAP
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT AHTML
ON TABLE SET COMPOUND 'BYTOC 2'
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
INCLUDE = endeflt,
$
TYPE=REPORT,
LINES-PER-PAGE=20,
$
ENDSTYLE
END

I would still prefer to use the table of contents as my report is delivering 30 days worth of data, and the contents allow easy reference. Does anyone know how to fix this now?


WebFOCUS 7.7.2: Windows 7: all output (Excel, HTML, PDF)