Author Topic: Difference between the render variable and the style variabl  (Read 81 times)

0 Members and 1 Guest are viewing this topic.

Offline rpmolecule

  • Full Member
  • *
  • Posts: 224
  • Karma: +1/-0
  • Seize the Day!
    • View Profile
Difference between the render variable and the style variabl
« on: April 02, 2009, 08:19:24 AM »
Difference between the render variable and the style variable

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.

now run the report :-)

Techronnati | where technology never sleeps

Difference between the render variable and the style variabl
« on: April 02, 2009, 08:19:24 AM »

Mountain View

Offline JusticeLeague

  • Sr. Member
  • *
  • Posts: 352
  • Karma: +1/-0
    • View Profile
Re: Difference between the render variable and the style variabl
« Reply #1 on: April 03, 2010, 09:06:06 AM »
i think render variable is applicable mostly on column level.... style variable is used more on the layout enhancements.... just a thought..


 

Related Topics

  Subject / Started by Replies Last post
0 Replies
122 Views
Last post October 25, 2008, 08:16:36 AM
by Transformer10
2 Replies
99 Views
Last post July 24, 2014, 09:23:38 AM
by CyborgRepublic
0 Replies
114 Views
Last post January 06, 2009, 07:21:24 AM
by Corps
1 Replies
103 Views
Last post April 02, 2009, 08:11:05 AM
by rpmolecule
0 Replies
478 Views
Last post November 27, 2015, 06:06:55 AM
by CyborgRepublic

Posting Disclaimer: Any individual may post a message in this forum and may do so anonymously. Therefore, the sole author is exclusively and entirely responsible for all opinions in that message. They do not represent the official opinions of Techronnati, its administrators or moderators or the Techronnati Management. Techronnati is merely acting as an impartial conduit for constitutionally protected free speech and is not responsible and will not be held liable for the content of such messages. All images and service logos are trademarks of their respective owners.