Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Suppressing Field Validation in Find Mode


This topic is 5455 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I had the idea of providing the user with a list of search symbols in find mode, even when the FM status area is hidden.

For that purpose I added a field "Search Symbols" with a drop-down value list such as:

=

==

!

<

*

etc.

When entering a field in Find Mode, a triggered script memorizes the field name and content. A second trigger acts upon choosing a search symbol in the Search Symbols field, and inserts into the field the user was in prior (including prior content).

This works nicely, except that I get a field validation warning for the Search Symbol field for some symbols. While a * is a valid search criteria on its own, < is not, and FM doesn't like that. The validation warning comes on before the trigger on the field has a chance to act, grab the symbol and clear out the field.

Any tips??

See sample attached

AdvancedSearching.fp7.zip

Posted

Some global fields and another layout - but use BROWSE mode to allow entry of the find criteria. Your scripts can then validate the user input before switching to a real find and populating the real fields with the global values.

Posted

I believe I understand the work around you are suggesting. I would need a global equivalent to each searchable field in the entire database, and a script which transfers the information to the actual field in find-mode. We're talking about some 450 fields... There must be an easier way?

Posted

Sorry, you didn't explain the scope of your problem.

Reading more carefully I can see that you are trying to build a more user friendly interface throughout, but you cannot undermine the need for FM to take priority with respect to validation and it is quite correct for FM to have strict rules in both browse and find mode - what would it do with a find request that it cannot process?

Accordingly these find requests will get processed before any scripts are run - as the scripts may also depend on validated data!

Are you sure you need to search on all 450 fields? Would a subset do it? Have a dedicated find screen with required global fields.

This topic is 5455 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.