What is render variable?Where do you exactly use in developing a
report?
Answer Posted / dhanu
Render Variable: - Specify a variable based on which object can be conditionally rendered.
Style Variable: - Specify a variable based on which object can be conditionally styled.
Example for Style Variable
In a report in a list if u want to display every alternate row with particular color
in this case
1) create a data item with name running-count with function "running-count" on particular unique column
2) now create one more data item as mod with functon "mod" on that running-count data item
3)create a boolean varibale with expression mod 1
4)go to the page select List column Body style
5)In properties pane select Style Variable as boolean variable
6)click on YES variable and set its Foreground color as RED
7)click on No variable and set its Foreground color as Yellow
now run the report
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.
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
how can I test reports in cagnos?
How to Reset Pagenumbers in one report.
what do u mean by bridge group? where we r using this one?
what is the role of cognos comsultant?what actually it means?pls reply
What is difference between page break and section report? What is main advantage datawarehousing over oracle?
i was asked what are the caluclations done by you in your report? plz give reply
in u r data u having duplicates how to fetch the latest data in our report?
is cognos 7 is better than cognos 8
What are the components of report net?
How can we import Excel data in to FWM?Wt is mean by Ragged dimensions?where can we observe the Regular dimensions & measure dimensions?
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.
my table having data like this year month revenue 2011 jan 100 2011 feb 200 2011 mar 150 like this i want My report 2011 jan 100 2011 feb 100+200=300 2011 mar 300+150=450 like this for this where we specify the condition how will specify? pls ans me pls...
Explain what is the difference between microstrategy and cognos reporting tool?
can we insert all types of charts in a list report? what r the realtime prompts?
1.WHAT IS XML SPECIFICATION WHAT IS PURPOSE,WHERE YOU ARE GOING TO USE.2 DIFFERENCE BETWEEN RENDER VARIABLE AND CONDITIONAL BLOCK.3.WHAT IS LINK AND SEGMENT.4.WHAT IS CONDITIONAL LAYOUT.5. DIFFERENCE BETWEEN DETAIL FILTER AND SUMMERY FILTER AND HOW YOU ARE GOING DEFINE IN SQL (DETAIL AND SUMMARY FILTER ).. WELL THESE QUESTION I BEEN FACED IN IBM COULD SOMEBODY GET SOLUTIONS PLZ..THANKS IN ADVANCE