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

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

Recommended Posts

Posted

Good day dear FM friends, I have hot stuck on something much trivial - something I though would be a breeze to set up, but apparently not. Please help, dear friends!

I thought I could easily find a function similar to GetValue but the other way around. With a valuelist based on cities::id to show cities::name I would need to do something like:

getValueListItem("cities value list"; "Paris") to return cities::id.

I understand I can use position to find the position in the list, but how about the corresponding id?

Posted

GetNthRecord ( cities::id ; Position(List(cities::name) ; "Paris" ;0 ;1 ))

That doesn't look right: if your Cities table contains Amsterdam, Paris and Stockholm (in that order), then =

Position(List(cities::name)  ; "Paris" ;0 ;1 )

will return 11 instead of the 2 you need.

Posted

The CF I linked to earlier will do it. Using the earlier example =

CorrespondingValue ( List ( Cities::Name ) ; "Paris" ; List ( Cities::ID ) )

will return the ID of Paris.

The function is not recursive, so you could also use its formula directly in your calculation field.

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