What is Render Variable? where u can use?

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 ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to a create header dynamically in a crosstab report in cognos 8.1?

1995


what is the difference between native sql and cognos sql?

523


What DB View and Bus View?

1555


hi i need to rename a file in cognos8? can anyone help me out how 2 do it? pls suggest some solution such as using a batch file or using a procedure node or anything to rename the file

1945


-----------------What is Direct and Conventional loading?

1659






How can I schedule reports in cognos?

610


What is the function of model design accelerator?

549


What condition do we use in Cognos when multiple path exits to reach the fact table.(i.e in BOXI we use CONTEXT when multiple path exit)

1680


how you create security to reports?

608


how many numbers of cubes can we create on a single model? How can we navigate between those cubes?

600


Explain what is the difference between microstrategy and cognos reporting tool?

555


Hi.. friends, dis Bhaskar p.if any of u having realtime scenerios.. plz send to me.. my mailid s bhaskarparitala.rao@gmail.com send ASAP.. waiting for reply..

1763


Hi I need real time senarios and how to explain project in the interview pls let me know my email id m.n.prathyusha@gmail.com.Please help me out with this pls pls pls muthireddi@gmail.com

1650


How is possible this scenario using in type-in prompt.?

603


What is meant by junk dimension?

581