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

clear field if not a member of related value list


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

Recommended Posts

Posted

two fields and two tables:

- continent

- country

third table:

- traveller

when a new traveller is created a continent is select from a related pulldown. and then a country is selected from a pulldown that is related to the selected continent.

If the user has selected both and then decides to change the continent. I would like the country to clear. If current country is not a member of the related value list.

My first attempt was a field calc value:

If (

Position ( ValueListItems ( Get ( FileName ) ; "county" ) ; traveler::country ; 1 ; 1 ) =0 ;

"" ; traveler::country )

Posted

Refresh my memory, which country exists on more than one continent - except Russia???

I think I instead would clear the country field every time someone tampers with the continent selection.

It can be done by making the country field an autoenter calc that replaces existing value with this calc's result:

Evaluate(Case(0;0);ContinentField)

--sd

Posted

thanks I will give it a try. And sorry about the geography... I am acctually working with Markets and Districts.

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