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

Filtered Value List and...


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

Recommended Posts

Posted

Using FM8 Advanced on Win:

I have a filtered value list built from records in a Valuelist File. The list is attached to a field called 'City'. If the user enters a value that is not already on the list, when I left the layout via a button, I would run a validation routine that checked the value, and added the record automatically to the filtered list. It worked, but the new value was never available until the user left the layout.

I tried using EventScript to run a small script when the user leaves the field. The field is validated by a calc, which calls the script to add the new field. If the calculation option 'Do Not Replace Existing Value For Field...' is checked, the script never gets executed. If it isn't checked, the script runs and adds the value, but when it returns to the layout, the new value is not in the field, and it would cause the user to click on the list again.

Anybody have any ideas on how to make this work correctly? What methods do you use to auto-update filtered valuelists when new values are entered? How do you allow the user to delete values?

Steve

  • 2 weeks later...
Posted

i just have a self joined relationship city = city, then make a value list off that. this way once you have someone enter a city which hasnt been there before, it will appear in the value list from now on without any scripting. you just have to leave the field once. the issue is of course that if i today enter Frankfurt and tomorrow Frank furt i have two values for the same meaning....using the new auto complete feature could help avoiding mistakes though.

This topic is 6859 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.