Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

Posted

I have been populating a "Nickname" field with the first line of another field using the calculation:

GetValue ( Address ; 1 )

I then use the Nickname field to populate a drop-down value list in a related database. It works perfectly.

I now need to populate the Nickname field only on the condition that my field called "Active" is Yes. I tried:

Case (Active = "Yes" ; GetValue ( Address ; 1 )

but it doesn't work.

Your help is appreciated. Thank you.

Kevin

Posted

Hi Kevin,

I assume this is a regular text field and you are using auto-enter calculation? If so, your existing data will not change unless you force an update. There are several ways to update the existing data but you do not need it as auto-enter text field - it can be type calculation (with result of text) instead in which case it will always update.

The only time you need auto-enter (calculation) is if the data in the field might be changed by the Users. Your calculation itself looks fine.

Added: If you are using names in a relationship (as it sounds like you might) then I suggest you switch to using serial IDs. I just want to give you a 'heads up' to potential issue that I sense here. If you are not using names to relate two tables then please just ignore this added paragraph. :)

Posted

Thank you, LaRetta.

I changed the field type to Calculation (unstored) and now it works perfectly, except...my value list stopped working. I now get a message that the value list will not work because the field cannot be indexed. Am I missing something?

Thanks again,

Kevin

Posted

It does not need to be unstored. Those fields, Active and Address both exist in the same table, right? If so then go to Storage Options on the Nickname and uncheck 'do not store'

Posted

Thank you so much, LaRetta. I've followed your advice and all seems to work perfectly now. My Nickname field only populates if Active is set to Yes, and my value list has returned.

Have a wonderful day, and thanks again.

Kevin

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