10,853
edits
Line 193: | Line 193: | ||
{{Note|Please check this [http://blog.resco.net/2015/08/11/conditional-formatting/ BLOG POST] for an additional example of row script use. {{Badge|Blog}} }} | {{Note|Please check this [http://blog.resco.net/2015/08/11/conditional-formatting/ BLOG POST] for an additional example of row script use. {{Badge|Blog}} }} | ||
==== Creating a new style with red background ==== | |||
# Click '''Edit Styles''' to display the styles designer. | |||
# Select '''primary''' from the style list, and then click '''Add'''. This creates a clone of the primary style. | |||
# Change the BackColor (background), ForeColor (text color), and rename the style (for example ''Red Primary''). | |||
# Click '''Save & Close''' to close the styles editor and return to the view designer. | |||
==== Creating a second row ==== | ==== Creating a second row ==== | ||
You have multiple options for creating rows: | You have multiple options for creating rows: | ||
* Click '''Clone Row''' to create a copy of the row selected in the Properties pane. Then rename the row. | * Click '''Clone Row''' to create a copy of the row selected in the Properties pane. Then rename the row, for example to ''RedRow''. | ||
* Click '''Add Row''' to create an empty row, where you can add fields and design it from scratch. | * Click '''Add Row''' to create an empty row, where you can add fields and design it from scratch. | ||
* You can also click '''Copy Design''' to copy the design of any view from any entity. | * You can also click '''Copy Design''' to copy the design of any view from any entity. | ||
In the new row, select a cell and change the style from ''Primary'' to ''Red Primary''. | |||
==== Creating a row script ==== | ==== Creating a row script ==== | ||
Line 215: | Line 216: | ||
# Click '''Row Script''' to open the script editor. | # Click '''Row Script''' to open the script editor. | ||
# Add the following conditions and steps. | # Add the following conditions and steps. | ||
#: If entity.name does not contain data | #: '''If''' entity.name does not contain data | ||
#: Then Step TemplateIndex Assign | #: Then '''Step''' TemplateIndex Assign RedRow | ||
#: Else Step TemplateIndex Assign Default | #: '''Else''' '''Step''' TemplateIndex Assign Default | ||
# Click '''Save & Close'''. | # Click '''Save & Close'''. | ||