What is render variable?Where do you exactly use in developing a
report?

Answers were Sorted based on User's Feedback



What is render variable?Where do you exactly use in developing a report?..

Answer / 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

What is render variable?Where do you exactly use in developing a report?..

Answer / srini madhala

When you hide an object, the
object exists but is transparent. If an object is not
rendered, it is not in the report.

Is This Answer Correct ?    1 Yes 0 No

What is render variable?Where do you exactly use in developing a report?..

Answer / the_xxx

Render variable is used to conditionally hide particular
part of the report like column, Summary, footer, header
e.t.c. By using Style variable also we can achieve this, By
setting the property Box Type to 'None' for a particular
part of the report after selecting a condition variable (
Boolean or String) as Style variable. And we can perform
conditional formatting by using Style variable for Report
columns and this cannot be achieved by using Render
variable. For both Render and Style variable we have to
define and use either Boolean variable or String variable in
Conditional Explorer. I hope you understand the difference.

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More Cognos Interview Questions

Are you aware of any limitations in Cognos?

1 Answers   HCL,


how to access the database directly from cognos reportnet

2 Answers  


What do you understand by the term ‘frame manager' in cognos and write all the layers of the framework manager model?

0 Answers  


What is called cognos reporting tool?

0 Answers  


actually we are migrating one project to ACTUATE business intelligence solution to COGNOS REPORTNEt? why the client want to migrate from ACTUATE to COGNOS REPORTNEt? what are the special features in COGNOS REPORTNEt?

1 Answers  






1.How will u link a list to crosstab.?i.e link a pramater in list so that it shows further information in cross tab.? 2.I have different regions,I want region specific logo to be displayed when I run the report.How it is done ? 3.Among Drill through and Master detail relationship which is more effective? 4.How do u hide a column in list report? Ans: In properties,Burn list option-check whichever column u wanna hide. 5.What is Roll play dimension? 6.What is Data Item Value n Parameter value?,What exactly it ll take when select either of them? 7.How many types of filters are there? 8.What will happen if u use detailed filter ?,n what is da result when used on summary filter?

0 Answers   TCS,


what is the diffence between render variable & style variable with egs? Plz reply ASAP

4 Answers   TCS,


How can you schedule the report that it displays a day old data. (My answer was to create a view, but the lady wanted some other method).

1 Answers  


what is dynamic sort?

1 Answers   Infosys,


write a query to display to 10 max record from the employee table?

8 Answers   HCL,


My report output is showing data as 1 11 111 2 22 222 3 33 333 How can I sort this to 1 2 3 11 22 33 111 222 333

1 Answers  


-----------------What is Singleton?

1 Answers   BoA, Cap Gemini, TCS,


Categories