eva/3 Application BuilderDeveloping Additional eva/3 ComponentsUser CommandsExamples for Tasks of an CommandExamples for database commands 

Filter a STableElement with a SFormattedField

The following example shows, how a STableElement can be filtered.

Examplel:

// Value to be filtered by. It must be an Object
Object value = "name"; 
// Get the SFormattedField by wich the STableElement should be filtered
SFormattedField filter = (SFormattedField)window.getComponent("txt"); 
// Set the value to be filtered in the SFormattedField
filter.setControlledValue(value); 
// Set the STableElement that should be filtered
filter.setFilteredTableSource("STableElement"); 
// Set the column in the STableElement to be filtered
filter.setControlSource("Column");