Top  | Previous | Next

header_logo Property Expresssions

Property Expressions are a way that you can dynamically change object properties based on key expressions.

propertyexpressionexamplepreview

A few simple tricks using Property Expressions

 

 

Properties

Option

Function

URL

Used for Macromedia Flash based reports. Presently N/A.

IsVisible

1 makes the shape visible, 0 makes the shape invisible.

Font

String based font name to use. Property should evaluate to a string that is a font name in the Font Attribute Panel.

FontColor/FillColor/StrokeColor

Changes color of font, fill, and stroke, respectively. Expects colors by name or "#RRGGBB" (Hex) format.

X/Y

Object position that expects a number.

Width/Height

Dynamically Size an object

 

 

Simple Example

propertyexpressiontable

Playing with Property Expressions to illustrate their use.

 

propertyexpressiontablepreview

 

Dynamic Example

We will use 2 object's Property Expressions to illustrate their uses.

Add an image of a check box. This is included under Builtin/icons/check2.png.
We want a check box is the employees income is greater than the arithmetic average of employees.
Set the isVisible property to "income > Up.average.income". Notice that we neglect the @ for properties in the Inspector Panel.
Add a rectangle with a gradient fill.
We want the width of the rectange to be 100 pixels * the ratio of the employee's income versus the employee with the max income.
Set the Width property to "100 * income / Up.max.income"

 

propertyexpressionexample

Playing with Property Expressions to illustrate their use.

 

propertyexpressionexamplepreview

 

TIPtip

Get creative with property expressions. They're very powerful!