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

tell me two or three issues from client side and how to solve those issues?

1701


How to join multiple db in catalog?

568


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

650


Can you define slice?

621


What is the difference between the content store and content manager?

566






how you migrate reports to cognos 8 from previous versions?

625


what is the difference between native sql and cognos sql?

509


Is it possible to join multiple Databases in a Catalog?

638


--------------Explain Table of contents?

1556


What do you understand by the term 'aggregate cache'?

567


i was asked what are the caluclations done by you in your report? plz give reply

1705


Hi Buddies...i am lalitha. i am willing to appear for cognos bi-author certification. can anyone of you send me cognos dump. please please help me.

1474


How to test a cube?

1671


What do you understand by user class in cognos?

532


hi, i am searching job in cognos and datastage, does any can provide me the real time experieced scenerios and questions related to cognos and datastage projects, so if anyone provide me the documents related this can very helpful to me, my mail id is tchiru01@yahoo.com

1774