SMART datagrid v.1 > Examples

[ grids ver.1.3.0]   Back  Forward

Derived Field & Row Tag  Example

If apply Data Tag to Derived Field, you can dynamically display other aspects of the data set during the run time without changing the source data. You can use tag variable in Expression of Derived Field, and it is the value set through DataSet.setRowTag, etc. 

After setting data tags, you should call DataSet.recalcRows to recalculate Derived Fields. 

Grid - 1
rows
Set rowTag '10000' in the focused row. (It will run recalculation below after click.)
Remove rowTag from the focused row. (It will run recalculation below after click.)
Recalculate Derived Field of the focused row.
Set rowTag of the selected rows as '20000'. (It will run recalculation below after click.)
Remove rowTag from the selected rows. (It will run recalculation below after click.)
Recalculate Derived Field of the selected rows.
Set rowTag of all rows as '20000'. (It will run recalculation below after click.)
Remove rowTag from all rows. (It will run recalculation below after click.)
Recalculate Derived Field of all rows.

View Source JSP 

See Also
DataSet.recalcRows
DataSet.setRowTag
DataSet.unsetRowTag
DerivedField
DerivedField.expression
Expression Overview
GridBase.focusedDataIndex
Examples
Derived Fields
Data Row Tag