tracker issue : CF-3861026

select a category, or use search below
(searches all categories and all time range)
Title:

Sub reports don't allow for InitializeReport() nor allow for instantiation of objects

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/CannotReproduce

Reporter/Name(from Bugbase): M Bean / M Bean (M Bean)

Created: 12/02/2014

Components: Reporting

Versions: 10.0

Failure Type: Crash

Found In Build/Fixed In Build: Final /

Priority/Frequency: Critical / Some users will encounter

Locale/System: English / Windows 7 64-bit

Vote Count: 0

Problem Description:
CFR Subreports don't allow for InitializeReport() nor allow for instantiation of objects. Since objects are not accessible, functions have to be embedded into each report separately, which is undesirable when certain functions are necessary for various reports (user.getAddress(), for example). 

Steps to Reproduce:
In query or in a function of a sub-report, instantiate an object using either createObject or cfobject. 

Actual Result:
Report crashes.

Expected Result:
Report doesn't crash, object is created, and object is accessible. 

Any Workarounds:
None that are pleasant. The only workaround we have is to add the function to the report. That works fine when important parameters can be passed to the function, but if the function needs to perform data access, it probably won't work.

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3861026

External Customer Info:
External Company:  
External Customer Name: bean5b
External Customer Email:  
External Test Config: My Hardware and Environment details:

CF 10, no updates.

Attachments:

Comments:

Please make sub reports more supportive. Perhaps allow sub reports to access parent.report, so at least the parent can instantiate key object's in its InitializeReport() function.
Comment by External U.
9807 | December 02, 2014 05:57:53 PM GMT
The information provided is not sufficient to repro the case. Please provide some code snippet to repro. Also let us know about how is InitializeReport() used. Thanks.
Comment by Akhila K.
9808 | December 09, 2014 05:19:33 AM GMT
We have this in our upcoming todo list. We'll get the requested information to you soon. Please do not close this ticket before we get you the requested information.
Comment by External U.
9809 | December 19, 2014 01:55:41 PM GMT
Hello, We are unable to repro this issue, so closing the bug. Please let us know if you find more details, will re-open this bug by then. Thanks, Akhila.
Comment by Akhila K.
9810 | September 23, 2015 04:29:44 AM GMT