Wondering if this has changed, can we control the default operator on search fields? For example, instead of Starts With we can have the default be Equals or Contains. We want to be able to do this in list views and search forms. Thank you.
Fields can have this configured onto them:
[default filter operator is ( contains
| starts with
| equals
| less than or equals
| less than
| greater than or equals
| greater than
)] // valid only on a SimpleField (not a GroupField or ArrayField)
Example:
MyListABC is a List
Display Fields
MyTimeStamp
default filter operator is greater than or equals
Helps to pay attention to what the UI gives you for options in the drop-down as some field types (Numeric, Alpha, Timestamp) can offer different valid subsets of options.
Thank you! This worked.
Is it possible to default a value in a list view filter? I'm thinking of defaulting the actor into a field, so it is dynamic and not hardcoded to a string.
I think I know what you mean?,Check out:
ListDefinition::=
[Required Search Parameters]
<RelatedField>…
[initial value is <RelatedValue>]Might look like:ZSomeList is a List Required Search Parameters SomeFieldA initial value is actorWhere SomeFieldA is a searchable field or column on the list. This of course would require that SomeFieldA is filled out in all searches.
If I'm on the right track lmk. This makes me think we should have a convention for reserved words that can be used in general, especially good for Saved Searches too. Something like {actor} or <actor.context.HROrganization> kinda thing
Is there a way to default the filter operator to the "In Range" option for Date Fields?
No, there is not today. I see no reason it couldn't be added in the future. Current options:
)]