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

What are links & Segments in Cognos Framework Manager?

1 Answers   Systime,


Write various indexes used in cognos?

0 Answers  


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

1 Answers   BoA, Cap Gemini, TCS,


1. Explain your project.

0 Answers   IBM,


how to handle multifact?

2 Answers   IBM,






What is a query set?

3 Answers   IBM,


Part 1 : Cognos 1.What are the technologies that are used in cognos? 2.What are complex reports? 3.What is page break? 4.What is layout component? 5.How do you use extract function? 6.What is the use of Crosstab space? 7.What is Rank()? 8.What is the use of Query calculation and layout calculation? 9.What is Slicer and Dicer? 10.How can you create users in Cognos? 11.What is last child member? 12.What is the use of Conditional blocks? 13.What is Conditional Formatting? 14.What is group span? 15.In which types of reports does the page breaks applicable? Is it applicable in excel reports? 16.I want to show a up arrow and down arrow image in cross tab report, if the revenue is > 5000 (up arrow) and if <5000 (down arrow)? How will you achieve this? 17.What are types of Filters in RS? What is Summary Filter and Detail Filter? 18.What is Cast Function? 19.How will you create prompts for the example like this : In a single report I want a) List report (Need a prompt for this) b) Crosstab report (Need a separate prompt for this) c) Chart ()(Need a separate prompt for this) Part II : Framework Manager (FM) 1. What is Determinant in FM? 2. What is Cardinality? 3. What are the types of filters used in FM? 4. Can we create cubes with Relational Data sources? 5. What is Aliasing and Shortcut? 6. What is Session Parameter & Parameter Maps? 7. How many types of securities that we have in FM? 8. What is Data Security in FM? Part III : Data warehousing 1.What are various types of Schemas? 2.What is Star Schema and Snow Flow Schema? Difference between both? 3.What is surrogate key? Part IV : Databases 1.What are NVL Functions? 2.What is left outer join? Give an Example? 3.Can we straightaway use the tables that we have in the database instead of creating the package’s FM and making use of them, through Report Studio (RS)?

2 Answers   Satyam,


For example I developed some reports on employee package now I have to develop same reports to another package.How can I change reports to another package?

5 Answers   TCS,


What are the considerations regarding performance kept in mind while setting up cognos?

0 Answers  


difference between join and union in reportstudio?

2 Answers   IBM,


In my report i want display sales rep name, country ,city how to achieve this by using repeater table

0 Answers   IBM,


How to Create users in cognos Access Manager from 1) front end 2) back end

1 Answers   TCS,


Categories