Searched the Forum and couldn't see if this idea was developed/adopted.
I'm trying and failing to set addTableFilterParams that will allow records to show if the required information is in one of two fields.
Have an addTableFilterParam that allows Sales staff to only see records where the Addr_Country is in their list of approved Countries
- Code: Select all
var vSuccess = databaseManager.addTableFilterParam('Server', 'contacts', 'addr_country', 'IN', vArray )
Client now wants the list Sales staff to also see Contacts where the POBox Country is in their list - so I tried adding a second line
- Code: Select all
var vSuccess = databaseManager.addTableFilterParam('Server', 'contacts', 'pob_country', 'IN', vArray )
Each line works correctly on its own, but having the two lines results in no Filtering at all. Tried changing the 1st line to show both dataproviders but results in no filtering:
- Code: Select all
var vSuccess = databaseManager.addTableFilterParam('Server', 'contacts', 'addr_country, pob_country', 'IN', vArray )
Having successfully gone round in ever-decresing circles not sure which way is up - can anyone shed light please?
Thanks
Graham Greensall
Worxinfo Ltd
Version 3.1.4-build 408
Java version 1.5.0_07-87 (Mac OS X)