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

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

Recommended Posts

  • Newbies
Posted

Hello,

I'm stuck and my head is now hurting. Unfortunately I normally work with traditional RDBMS' and so I'm in that frame of mind. I'm sure FMP can do the business for me but I'm really lost.

I have a table (keywords) it has two fields (keywordCategory, keywordEntry).

I would like to define a valueList based on a group of documents where the keywordCagtegory field matches.

ie:

keywordCategory keywordEntry

Gender Male

Gender Female

Status Current

Status Archive

Status Delete

From this i'd like to have two ValueLists (Gender & Status).

My reasons are that I want the ValueLists to be outside of the database design, as I can see many updates to the lists being made.

I wrote a script that updated some global fields with the values. But then learned that global fields can not be indexed. AAARRRGGGHHH.

Please can someone help.

Thanks

Dolly

Posted

If I understand correctly, you want the records in the keywords database to populate various (in this case, 2) valuelists in other databases.

One option is to define calculation fields (text result) in your main database, e.g.:

Keyword_Status = "Status"

and

Keyword_Gender = "Gender"

Then define relationships from Keyword_Status in your main db to keywordCategory in your keywords db. Base your Status valuelist on that relationship, pulling the values from keywordEntry.

Do the same for Keyword_Gender.

This will work with FMP 5 and later.

Hope this helps

  • Newbies
Posted

That is fabulous.

It worked straight away.

Oh many thanks. I knew the FMP should be able to do it. I just needed to forget RDBMS'.

Thanks

Dolly.

Posted

You're right -- related value lists don't work with CDML.

What you can do is something like this:

[FMP-InlineAction:-DB=keywords&-Lay=layoutname&keywordCategory=gender&-Find]

[FMP-Record]

<option value="[FMP-Field:keywordEntry]">[FMP-Field:keywordEntry]

[/FMP-Record]

[/FMP-InlineAction]

  • 11 months later...
Posted

Hi

I have almost the same problem.

I have a value list that it's values are from a related table.

I am unable to display it.

DB1 = systems, Field=ID

DB2 = Users , Value_list=active , Lay=Web_main

How can I display the value list using "Inline" in CDML??

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