COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: BiliBoy on 10 Oct 2012 09:37:45 AM

Title: Layout Component Reference
Post by: BiliBoy on 10 Oct 2012 09:37:45 AM
Hello Experts

when i  use layout component reference in my report, at the run time does my report calls reference report as well to run or its just uses what ever referenced block from  reference report? any one willing to throw some light on this issue.
Title: Re: Layout Component Reference
Post by: MFGF on 10 Oct 2012 11:16:31 AM
Assuming your layout component reference is set as a link (rather than embedded), the report you are running will use the relevant xml specification for the layout component by reading it from the report spec of the report your reference points to. It does not mean, however, that this report is being executed.  Every report must have a complete XML specification stored in the Content Store, so that the report service knows what to do. In this case, the report spec is held in two different areas in the content store - that's all it means.

Alternatively, if you set your layout component reference to embedded instead of linked, the relevant xml is copied from the source report to your current report. In this case, running your current report does not reference the other report at all. The downside is that if you change the component in the original report, you have to manually refresh it in your current report.

Regards,

MF.
Title: Re: Layout Component Reference
Post by: BiliBoy on 12 Oct 2012 12:31:02 PM
Thanks MFGF for your knowledge sharing gesture.

in my report i am referencing  value prompt from different report  and  embed property is reference, so in this case , query associated with the value prompt  reside at two places, in my report and  another report from where i am referencing value prompt. so both queries  executes at run time in two different reports?
Title: Re: Layout Component Reference
Post by: bdbits on 12 Oct 2012 01:50:03 PM
As far as I know the query does not run twice - the report you make a reference to does not really run at all. I believe the process is that when your report is submitted to Cognos, it will parse out the XML spec for the submitted report. It will see you have a reference to the other report. It will open that report spec to grab the XML fragment for the object referenced, and incorporate that into the submitted report's XML (or however Cognos represents it internally). Once these references are resolved, the processing continues and eventually, the prompt is processed and the its query runs.
Title: Re: Layout Component Reference
Post by: MFGF on 15 Oct 2012 11:47:03 AM
Yep - exactly as bdbits says. The other thing to be aware of is that this technology is designed for layout components, not queries or data. A standard page header would be a good example of where a Layout Component Reference would be used.

Regards,

MF.