|
<< Click to Display Table of Contents >> Navigation: Programming Mechworks PDM > DBWCommandShell > Library Reference > Database > DBWFilter |
It makes available from the command shell interface the Filter functionality available in the browser Document and Query pages.
Function DBWFilter(FilterTitle, FilterQuery, Type, FilterAllTables, FilterAllDB)
FilterTitle |
the title of the filter query; a file with name <filter title>.TXT will be created in the %TEMP% directory. |
|---|---|
FilterQuery |
it is the filter query. |
Type |
The type of action to be poerformed. Can assume following values: |
FilterAllTables |
if "0" it applies the filter only to the grid specified in type parameter |
FilterAllDB |
if "0" it applies the filter only to the current recordset loaded in the browser |
'reset the filter
DBWFilter "resetFilter", "RESET","A",0,0
'filter the part grid for IDs tha have a ..64.. in the identifier
DBWFilter "have64in","ID LIKE '%64%'","P",0,0
'filter all the tables and all the database for the IDs beginning with 53200220
DBWFilter "beginWith53200220", "ID LIKE '53200220%'", "A", 1, 1
'filter the query grid for IDs that have a ..64.. in the identifier
DBWLoadQuery "QueryAllParts","SELECT * FROM DOCUMENT WHERE T='P'"
DBWFilter "queryPagehave64in", "ID LIKE '%64%'", "QUERY", 0, 0