Selecting Filters

When the user clicks Select Filter in the process of creating a Plugin, a pop-up appears to enable the user to locate and modify the filter.

Program *

Specifies the part of the program that the plugin should access. The program the user selects controls which modules appear in the Module list.

Module *

Identifies the Module associated with this plugin. Selecting the module causes the program to begin building the filter.

Use an Existing Filter

Enables the user to select a Filter that has already been saved in the selected Module in Lucity Desktop or Web.

Current Filter

Displays the SQL statement that the filter uses. This statement appears whether the user is manually writing the SQL or has selected a saved filter.

Select reserved word

Indicates that a reserved word should be used in the filter. Reserved words can be used to add specific types of dynamic data to the filterset.

Example: If you wanted a plugin to show today's Work Orders, you could create a filter that said: SELECT * FROM WKORDER WHERE WO_STRT_DT = '9/26/2012'. On Sept. 26, it would show all the work orders for that day, but this would be useless on any other day, and would have to be changed daily to be useful. However, using reserved words, you could create this filter: SELECT * FROM WKORDER WHERE WO_STRT_DT = '%CURRENTDAY%'. Then, every day, the SQL would change to reflect the current day, and the plugin would always display Work Orders for the current day.

Test "Where"

Tests whether the SQL statement's WHERE clause is valid and indicates the number of records that the filter returns.

OK

Saves the filter and closes this window.

 

How to add a filter

How to use a reserved word