Files
ayanova7/filterexamples.txt
2018-06-29 19:47:36 +00:00

146 lines
8.0 KiB
Plaintext

Filters:
CM=database column name to be filtered
Required, always present. Contrived from the biz object field name if the field is not decorated with an attribute.
If it is decorated with an attribute it will be the SqlColumnNameAttribute which contains two values:
SqlColumnName represents the "display" or text based column and used for alpha searches
SqlValueColumnName represents the underlying value column and used for match or not match to underlying value searches
SqlColumnNameAttributes may be used on any type of data not only gridnamevaluecellitems as they are used to redirect to the correct
sql name if the biz object field name differs.
UI=original data source field name
TYPE=Original data source data type (object in the case of a date time field)
If it's a gridnamevaluecell item then this is either a string or a guid depending
UICOMPAREVALUE=Only used for a gridnamevaluecellitem based field and contains the actual displayed value in the grid, otherwise it's present but an empty quoted string
CompareValue=used in all types and is the actual value to compare against. Is an empty string for all blank or nonblank filters regardless of underlying type.
If the compare value is a guid it's all uppercase in "registry" format. Always quoted. For built in date filters it's not a date but the filter key itself, i.e. "[THIS MONTH]".
Examples
//this month
<WHEREITEMGROUP GROUPLOGICALOPERATOR="And" UI="LT_WorkorderService_Label_ServiceDate">
<WHEREITEM COMPAREOPERATOR="Custom" CM="aWorkorderService.aServiceDate" UI="LT_WorkorderService_Label_ServiceDate" TYPE="System.Object" UICOMPAREVALUE="" COMPAREVALUE="[THIS MONTH]" />
</WHEREITEMGROUP>
//next month
<WHEREITEMGROUP GROUPLOGICALOPERATOR="And" UI="LT_WorkorderService_Label_ServiceDate">
<WHEREITEM COMPAREOPERATOR="Custom" CM="aWorkorderService.aServiceDate" UI="LT_WorkorderService_Label_ServiceDate" TYPE="System.Object" UICOMPAREVALUE="" COMPAREVALUE="[NEXT MONTH]" />
</WHEREITEMGROUP>
//last month
<WHEREITEMGROUP GROUPLOGICALOPERATOR="And" UI="LT_WorkorderService_Label_ServiceDate">
<WHEREITEM COMPAREOPERATOR="Custom" CM="aWorkorderService.aServiceDate" UI="LT_WorkorderService_Label_ServiceDate" TYPE="System.Object" UICOMPAREVALUE="" COMPAREVALUE="[LAST MONTH]" />
</WHEREITEMGROUP>
//this week
<WHEREITEMGROUP GROUPLOGICALOPERATOR="And" UI="LT_WorkorderService_Label_ServiceDate">
<WHEREITEM COMPAREOPERATOR="Custom" CM="aWorkorderService.aServiceDate" UI="LT_WorkorderService_Label_ServiceDate" TYPE="System.Object" UICOMPAREVALUE="" COMPAREVALUE="[THIS WEEK]" />
</WHEREITEMGROUP>
//equals specific date
<WHEREITEMGROUP GROUPLOGICALOPERATOR="And" UI="LT_WorkorderService_Label_ServiceDate">
<WHEREITEM COMPAREOPERATOR="Equals" CM="aWorkorderService.aServiceDate" UI="LT_WorkorderService_Label_ServiceDate" TYPE="System.Object" UICOMPAREVALUE="" COMPAREVALUE="10/22/2008 10:05:34 AM" />
</WHEREITEMGROUP>
//nonblanks
<WHEREITEMGROUP GROUPLOGICALOPERATOR="And" UI="LT_Workorder_Label_FromPMID">
<WHEREITEM COMPAREOPERATOR="NotEquals" CM="aWorkorderPreventiveMaintenance.aPreventiveMaintenanceNumber" UICOMPAREVALUE="" TYPE="System.Int32" COMPAREVALUE="" />
</WHEREITEMGROUP>
//blanks
<WHEREITEMGROUP GROUPLOGICALOPERATOR="Or" UI="LT_Workorder_Label_FromPMID">
<WHEREITEM COMPAREOPERATOR="Equals" CM="aWorkorderPreventiveMaintenance.aPreventiveMaintenanceNumber" UICOMPAREVALUE="" TYPE="System.Int32" COMPAREVALUE="" />
</WHEREITEMGROUP>
//a-h
<WHEREITEMGROUP GROUPLOGICALOPERATOR="And" UI="LT_O_Client">
<WHEREITEM COMPAREOPERATOR="LessThanOrEqualTo" CM="aClient.aName" TYPE="System.String" UICOMPAREVALUE="Hz" COMPAREVALUE="Hz" />
</WHEREITEMGROUP>
//match wo#
<WHEREITEMGROUP GROUPLOGICALOPERATOR="And" UI="LT_O_Workorder">
<WHEREITEM COMPAREOPERATOR="Equals" CM="aWorkorder.aID" UICOMPAREVALUE="44" TYPE="System.Guid" COMPAREVALUE="{7DA89C49-C94E-4D57-94EF-D25507E5E512}" />
</WHEREITEMGROUP>
//i-p
<WHEREITEMGROUP GROUPLOGICALOPERATOR="And" UI="LT_O_Client">
<WHEREITEM COMPAREOPERATOR="GreaterThanOrEqualTo" CM="aClient.aName" TYPE="System.String" UICOMPAREVALUE="I" COMPAREVALUE="I" />
<WHEREITEM COMPAREOPERATOR="LessThanOrEqualTo" CM="aClient.aName" TYPE="System.String" UICOMPAREVALUE="Pz" COMPAREVALUE="Pz" />
</WHEREITEMGROUP>
//q-z
<WHEREITEMGROUP GROUPLOGICALOPERATOR="And" UI="LT_Part_Label_ManufacturerID">
<WHEREITEM COMPAREOPERATOR="GreaterThanOrEqualTo" CM="aManufacturers.aName" TYPE="System.String" UICOMPAREVALUE="Q" COMPAREVALUE="Q" />
</WHEREITEMGROUP>
//0-3
<WHEREITEMGROUP GROUPLOGICALOPERATOR="And" UI="LT_Part_Label_ManufacturerNumber">
<WHEREITEM COMPAREOPERATOR="LessThanOrEqualTo" CM="aPart.aManufacturerNumber" UI="LT_Part_Label_ManufacturerNumber" TYPE="System.String" UICOMPAREVALUE="" COMPAREVALUE="3z" />
</WHEREITEMGROUP>
//4-6
<WHEREITEMGROUP GROUPLOGICALOPERATOR="And" UI="LT_Client_Label_Email">
<WHEREITEM COMPAREOPERATOR="GreaterThanOrEqualTo" CM="aClient.aEmail" UI="LT_Client_Label_Email" TYPE="System.String" UICOMPAREVALUE="" COMPAREVALUE="4" />
<WHEREITEM COMPAREOPERATOR="LessThanOrEqualTo" CM="aClient.aEmail" UI="LT_Client_Label_Email" TYPE="System.String" UICOMPAREVALUE="" COMPAREVALUE="6z" />
</WHEREITEMGROUP>
//7-9
<WHEREITEMGROUP GROUPLOGICALOPERATOR="And" UI="LT_Part_Label_ManufacturerNumber">
<WHEREITEM COMPAREOPERATOR="GreaterThanOrEqualTo" CM="aPart.aManufacturerNumber" UI="LT_Part_Label_ManufacturerNumber" TYPE="System.String" UICOMPAREVALUE="" COMPAREVALUE="7" />
<WHEREITEM COMPAREOPERATOR="LessThanOrEqualTo" CM="aPart.aManufacturerNumber" UI="LT_Part_Label_ManufacturerNumber" TYPE="System.String" UICOMPAREVALUE="" COMPAREVALUE="9z" />
</WHEREITEMGROUP>
//>0
<WHEREITEMGROUP GROUPLOGICALOPERATOR="And" UI="LT_ServiceBank_Label_IncidentsBalance">
<WHEREITEM COMPAREOPERATOR="GreaterThan" CM="INCIDENTSBAL" UI="LT_ServiceBank_Label_IncidentsBalance" TYPE="System.Decimal" UICOMPAREVALUE="" COMPAREVALUE="0" />
</WHEREITEMGROUP>
//<0
<WHEREITEMGROUP GROUPLOGICALOPERATOR="And" UI="LT_ServiceBank_Label_IncidentsBalance">
<WHEREITEM COMPAREOPERATOR="LessThan" CM="INCIDENTSBAL" UI="LT_ServiceBank_Label_IncidentsBalance" TYPE="System.Decimal" UICOMPAREVALUE="" COMPAREVALUE="0" />
</WHEREITEMGROUP>
//=0
<WHEREITEMGROUP GROUPLOGICALOPERATOR="And" UI="LT_ServiceBank_Label_IncidentsBalance">
<WHEREITEM COMPAREOPERATOR="Equals" CM="INCIDENTSBAL" UI="LT_ServiceBank_Label_IncidentsBalance" TYPE="System.Decimal" UICOMPAREVALUE="" COMPAREVALUE="0" />
</WHEREITEMGROUP>
//standard filter client name
<WHEREITEMGROUP GROUPLOGICALOPERATOR="And" UI="LT_O_Client">
<WHEREITEM COMPAREOPERATOR="Equals" CM="aClient.aID" UICOMPAREVALUE="Lawyers R Us Merville" TYPE="System.Guid" COMPAREVALUE="{9480D8CC-C656-4140-8A8C-3DF9687ABDBA}" />
</WHEREITEMGROUP>
//standard filter - workorder number
<WHEREITEMGROUP GROUPLOGICALOPERATOR="And" UI="LT_Workorder_Label_FromPMID">
<WHEREITEM COMPAREOPERATOR="Equals" CM="aWorkorder.aFromPMID" UICOMPAREVALUE="6" TYPE="System.Guid" COMPAREVALUE="{CD597546-D3E6-4F55-B562-88A094A1FDE2}" />
</WHEREITEMGROUP>
//standard filter - text field
<WHEREITEMGROUP GROUPLOGICALOPERATOR="And" UI="LT_Workorder_Label_CustomerReferenceNumber">
<WHEREITEM COMPAREOPERATOR="Equals" CM="aWorkorder.aCustomerReferenceNumber" UI="LT_Workorder_Label_CustomerReferenceNumber" TYPE="System.String" UICOMPAREVALUE="" COMPAREVALUE="ABC" />
</WHEREITEMGROUP>
//standard filter -bool field
<WHEREITEMGROUP GROUPLOGICALOPERATOR="And" UI="LT_Workorder_Label_Closed">
<WHEREITEM COMPAREOPERATOR="Equals" CM="aWorkorder.aClosed" UI="LT_Workorder_Label_Closed" TYPE="System.Boolean" UICOMPAREVALUE="" COMPAREVALUE="True" />
</WHEREITEMGROUP>
//standard filter - currency field
<WHEREITEMGROUP GROUPLOGICALOPERATOR="And" UI="LT_Part_Label_Retail">
<WHEREITEM COMPAREOPERATOR="Equals" CM="aPart.aRetail" UI="LT_Part_Label_Retail" TYPE="System.Decimal" UICOMPAREVALUE="" COMPAREVALUE="13.89000" />
</WHEREITEMGROUP>