Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Value lists from another database

Featured Replies

  • Newbies

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

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

  • Author
  • Newbies

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.

I'm happy I was able to help, Dolly!

  • Author
  • Newbies

Works fine in a FM client. But using CDML ... nada.

Dam.

Any ideas anyone ?

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]

  • Author
  • Newbies

Bingo.

Peter. Hat's off to you.

Dolly.

  • 11 months later...

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??

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.