JSTableFilter
Last updated
Last updated
The JSTableFilter
represents a server-side table filter in Servoy, used for managing database filters with enhanced control over server broadcasting. The class provides properties and methods to define and interact with table filters dynamically.
A JSTableFilter
is associated with a server and a specific table. It includes read-only properties to retrieve the server and table names. The dataBroadcast
method allows setting a flag for database broadcast filtering, ensuring that only specific updates are broadcasted to clients.
The filter supports operations such as in
or =
for applying constraints on data visibility and is tightly integrated with Servoy's database manager capabilities. Filters are set and modified through server-side methods, making them a powerful tool for data management in multi-client environments.
Returns the server name.
Sample
Returns the table name.
Sample
Set the dataBroadcast flag.
When the dataBroadcast flag is set, this filter will be used server-side to reduce databroadcast events for clients having a databroadcast filter set for the same column with a different value.
Note that the dataBroadcast flag is *only* supported for simple filters, only for operator 'in' or '='.
Parameters
Sample
Type String server name.
Type String table name.
broadcast Boolean set to true this is a databroadcast filtering filter. (default false)
Returns: filter.
Returns the server name.
Returns the table name.
Set the dataBroadcast flag.