what is render variable

Answer Posted / vij

Render Variable: - Specify a variable based on which object
can be conditionally rendered.

Example for Render Variable:--

if the case is like you want to see the particular page in
HTML or PDF or CSV format then


1)Create 3 pages in your report
2)every page conatins some specific data
3)name these pages as HTML PDF CSV
4)create a String vaiable with 3 values as HTML PDF and CSV
5)now in string variable put expression as .....
case

when ReportOutput() 'HTML' then 'HTML'
when ReportOutput() 'PDF' then 'PDF'
when ReportOutput() 'CSV' then 'CSV'
end

6)now go the page named HTML and select page object
7)in properties pane click on Render Variable select that
string variable
8)check only HTML check box value for HTML page
9)repeat step No. 6 to step No.8 for remaining 2 pages.

now run the report :-)


hope it will answer your question .
regards
vij

Is This Answer Correct ?    22 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are cognos connection initial page components?

825


What is called a slice?

774


whats the difference between previous version of cognos and cognos 8 BI?

5034


Can you explain a cognos controller?

780


Can you define snapshot?

725


What is the metric store database?

725


What is the use of cognos decision stream?

835


When we save a report in report studio with what extn it save?

833


What is the difference between group and associare?

772


Can you explain the advantage of using shortcuts?

786


what is catalog and types of catalogs in cagnos and which is better?

894


1. Explain your project.

1787


how can you get the errors in job? when loops are araised we get error?

1873


Can we create 2 conditions in report expression of a single data item..Eg: I added 2 new dataitems each one should show revenue for Q1 and Q2..Pls advice

2325


hi friends pls forward impropmtu interview question

1892