"row_selected" trigger

Description

After a selection of any data block's row, row_selected trigger is fired. row_selected trigger function is optional. if it is needed, must be in Code Behind File. row_selected trigger has 1 variants. row_selected trigger is a function with a specific name. Trigger function and its name should conform to the following format:

Function's name format:

blockName + ".row_selected"

What can be done in row_selected trigger function:

  • Refreshing details block.

Declaration

void RowSelectedTriggerFunctionName(); 

Example

void emps.row_selected() {

	refresh_block('employee_photo');
	refresh_block('cars');

	if (:emps.has_car == 'E') then
		show_block('cars', true);
	else
		hide_block('cars', true);
	end if;

}

See also

Last updated