When the user clicks Acquire Filter in the process of creating a plug-in, a pop-up containing several fields appears.
Program * |
Specifies the part of the program that the plug-in should access. The program selected controls which modules appear in the Module list. |
Module * |
Identifies the Module associated with this plug-in. Selecting the module causes the program to begin building the filter |
Use or Modify an Existing Filter |
Enables the user to select a Filter that was saved in the selected Module in Lucity Desktop or Web. |
Database Syntax |
Displays the SQL statement that the filter will use. This statement will appear 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 plug-in to show today's work orders, you could create a filter that said: SELECT * FROM WKORDER WHERE WO_STRT_DT = '9/26/2012'. On September 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%'. Every day, the SQL would change to reflect the current day, and the plug-in would display only 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 to a Plugin