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
What are cognos connection initial page components?
What is called a slice?
whats the difference between previous version of cognos and cognos 8 BI?
Can you explain a cognos controller?
Can you define snapshot?
What is the metric store database?
What is the use of cognos decision stream?
When we save a report in report studio with what extn it save?
What is the difference between group and associare?
Can you explain the advantage of using shortcuts?
what is catalog and types of catalogs in cagnos and which is better?
1. Explain your project.
how can you get the errors in job? when loops are araised we get error?
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
hi friends pls forward impropmtu interview question