Submitted by jan_rifkinson on 2009/01/08 17:22
In the knowledgebase I read user could create source = field one or field two or field three, etc Likewise w filters but I must be missing something because when I try this format within the source dialog the first field is replaced by the 2nd field.
 
Sitting in the corner wearing my dunce cap, i remain,
 
Sincerely,
 
--
Jan Rifkinson
Ridgefield CT USA

Comments

 

Filter

The Filter filters the list of items. It can be edited directly, but it also can be set through the Search Form or Quick Search. The Filter can be toggled on and off using the button on the left of the field. See below for more information on the filter syntax.

Source

Source takes more than just a Property name, in fact it's also a filter. It's the query that indicates what items are selected for the current Grid. For example, instead of just AddressBook you could put AddressBook and Archived is null to only show unarchived contacts.

The reason why Source and Filter are kept separate is so you can keep the Source constant as you tweak the Filter as described above

When a Grid is first created its Source is set to be the property that matches the Grid's name. When a Source field has only one property listed (sometimes called a simple Source) then any new items created in the Grid will automatically have that value set so they meet the Source criteria.

More Filtering Info

Filter Syntax
Filter Syntax is close to Transact-SQL syntax. Currently the best way to learn it is to experiment using the Search Form which generates the filter string for you.
Checkboxes are a little different than you might expect (unless you know SQL). For example, for the Checkbox field Followup you would use Followup if you want to search for checked or Followup is null if you want to search for unchecked.

Filter Examples

  • MyField                              : Field has a value for this item
  • MyField is not null               : Field has a value for this item (same as above)
  • MyField is Null                    : Field has no value for this item
  • MyTextField="test"              : field = test
  • MyTextField like "*test*"      : field contains the string test
  • MyNumberField = 34
  • MyDateField=#2001-12-31#            Date = Dec 31th 2001
  • int(MyDateField)=#2001-12-31#     : If date contains time information, Date = Dec 31th 2001
  • MyCheckBox                               : Checkbox is checked
  • MyCheckBox is null                      : Checkbox is unchecked
  • ItemCreated > now-7 and ItemCreated < now       This will give you the last 7 days, and it is dynamic (as "now" returns the current date/time)

Filter Operators
In addition, you can use the following operators in filters:

  • =
  • <>: not equal to
  • >: greater than
  • <: less than
  • is null: has no value
  • NOT: negates an expression
  • LIKE: for text string (see above example)
  • AND: both conditions are required
  • OR: either condition is required
  • ( ): use parenthasis to set filter parsing

jan_rifkinson

2009/01/08 20:59

In reply to by Pierre_Admin

Yes, Pierre, I read that in the knowledgebase. What I'm saying is that it isn't happening here. Maybe it's me. Maybe it's not working. I don't know. I tried field 1 or field 2 & like I said in my original post, field 1 was replaced by field 2. Thx.
 
--
Jan Rifkinson
Ridgefield CT USA
HP Blackbird Vista Ultimate SP-1

Pierre_Admin

2009/01/08 22:46

In reply to by jan_rifkinson

Fields with spaces need to be enclosed in  [  ]. Also, the combobox needs improvements (along the lines of the one for the New Item form also used when clipping).
 
If you type "Field1 or Field2" and hit enter, does it work?
or:  [Field 1] or [Field 2] (if the field name contains a space)

jan_rifkinson

2009/01/09 12:04

In reply to by Pierre_Admin

The fields that I was trying to work with are single names, i.e. no spaces & it does not work. <ENTER> causes name1 to be replaced by name2
 
--
Jan Rifkinson
Ridgefield CT USA
HP Blackbird Vista Ultimate SP-1

Pierre_Admin

2009/01/09 14:44

In reply to by jan_rifkinson

do you use the pull-down part of the combobox? It does not support multiple fields. Simply type the string Field1 OR Field2 and hit enter. It is working here.

jan_rifkinson

2009/01/09 20:02

In reply to by Pierre_Admin

I was typing string as you suggest. Since it's working for you, I guess I'm doing something wrong. I'll have to figure it out.  If I read the info correctly, I should be able to do this in the source dialog, right?
 
--
Jan Rifkinson
Ridgefield CT USA
HP Blackbird Vista Ultimate SP-1

KeithB

2009/01/09 21:30

In reply to by jan_rifkinson

[quote=jan_rifkinson]
I was typing string as you suggest. Since it's working for you, I guess I'm doing something wrong. I'll have to figure it out.  If I read the info correctly, I should be able to do this in the source dialog, right?
 
--
 
Jan, are you typing in exactly like this? SQLNotes OR Addressbook         (no quotations, no [ ] unless spaces are in the fieldnames)   --then hitting ENTER or refreshing?

jan_rifkinson

2009/01/10 13:47

In reply to by KeithB

yes
 
--
Jan Rifkinson
Ridgefield CT USA
HP Blackbird Vista Ultimate SP-1

jan_rifkinson

2009/01/10 13:48

In reply to by KeithB

yes
 
--
Jan Rifkinson
Ridgefield CT USA
HP Blackbird Vista Ultimate SP-1

KeithB

2009/01/10 18:24

In reply to by jan_rifkinson

There may be a bug; I just got something like that.
  1. Did you get any kind of a message at the bottom?  I got some kind of a red highlighted message.
  2. Try picking one grid of the dropdown. Refresh, Then put the a OR b statement back in and refresh, see if it then works. (That did it for me).

jan_rifkinson

2009/01/11 12:40

In reply to by KeithB

KeithB, Thanks for taking the time to reply to what remains a vexing problem here.
 
1. In this case i did not get a msg @ the bottom.
2. This did not work for me. Again it became a replacement. Once I add a source, refresh, add 'or' the cursor changes shape, i.e. it's no longer a real pointer which is a hint to me that it's not working  as it should.
 
--
Jan Rifkinson
Ridgefield CT USA
HP Blackbird Vista Ultimate SP-1

KeithB

2009/01/11 14:12

In reply to by jan_rifkinson

  1. What version are you running?
  2. Could you post a screencapture(s); it might help clarify.