Newbies Dolly Posted June 6, 2002 Newbies Posted June 6, 2002 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
The Bridge Posted June 6, 2002 Posted June 6, 2002 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 Dolly Posted June 6, 2002 Author Newbies Posted June 6, 2002 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.
Newbies Dolly Posted June 6, 2002 Author Newbies Posted June 6, 2002 Works fine in a FM client. But using CDML ... nada. Dam. Any ideas anyone ?
The Bridge Posted June 6, 2002 Posted June 6, 2002 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]
Newbies Dolly Posted June 6, 2002 Author Newbies Posted June 6, 2002 Bingo. Peter. Hat's off to you. Dolly.
xtrim Posted May 8, 2003 Posted May 8, 2003 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??
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now