If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

Layout Component Reference

Started by BiliBoy, 10 Oct 2012 09:37:45 AM

Previous topic - Next topic

BiliBoy

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.

MFGF

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.
Meep!

BiliBoy

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?

bdbits

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.

MFGF

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.
Meep!