Solved

FM - Is There a Way to Make a Value List Dynamic?

Posted on 2013-01-03
6
615 Views
Last Modified: 2013-01-03
Is There a Way to Make a Value List Dynamic?  Two areas of application:  1) My boss wants the ability when he changes a value list that the actual data in the fields change to match.  I'm doubtful about that as it does not seem to be the way value lists work.  

2) Fields and script names change in a calc box when you change their names; however value lists do not.  I've emailed Filemaker as a suggestion for improvement.  Is there a way to make value lists dynamic?  

Thank you.
0
Comment
Question by:rvfowler2
  • 3
  • 3
6 Comments
 
LVL 25

Assisted Solution

by:Will Loving
Will Loving earned 500 total points
ID: 38741123
I think your first question is really asking, "is there a way to force and update of the existing entries on all records for a specific value list value when the user edits the value list itself?'

Assuming I've restated the question correctly, the short answer is that there is no built-in way to have this update occur, especially if you are using File -> Managed -> Value Lists and editing the custom values. You can setup a separate routine or manually use the Replace command, but FM will not replace one value with another automatically when you edit a custom value list.

Value lists however can be based not only on a user specified "Custom Values" value list but also on existing values in the actual field being edited or in another field. If the Value list is set to show only values that already exist in a field (rather than Custom Values), you can create a script tied to a button or menu item that presents a Find/Replace dialog which then does a Find for all records with that value and performs a Replace between the two terms. The Value list should then only show the new Term. Care must be taken with this approach so as to Replace the [entire value rather than just part of an existing value. You have to error check for values that may already exist in whole or as part of other values. e.g if you have two towns, Montague and Montague Center, performing just a replace on the word "Montague" will also Replace the "Montague" in Montague Center unless you setup the calculation to Replace the value of "Montague¶" rather than just the word.

Another way to make flexible, dynamic value lists is to setup a table with the value list values and serial numbers. Change the value assigning system so that when you select the value, you are actually assigning the Value's serial number rather than the value itself.

If you give the user a portal in which to edit these values, then they can edit them to their heart's content and the values will update across the database because the serial number remains the same as with any related record.
0
 
LVL 2

Author Comment

by:rvfowler2
ID: 38741289
Yes, you reworded my question correctly.  So, in the last two paragraphs, you are not suggesting a sub or normalized table, but just a table with 1 record for every value and then create a relationship between that T.O. and the field in the main table?  And the relationship as you suggest is by the number, not the text value, thus when you change the text, it changes throughout the dbs?
0
 
LVL 25

Accepted Solution

by:
Will Loving earned 500 total points
ID: 38741327
Well, sometimes a developer will setup a single table for a single value list, and they will setup a ValueList table that includes ValueListName, a field for the name of the value list thereby allowing the inclusion of multiple value lists within a single table. In order to actually generate the value list, a relationship is created from a global field that simply contains the name of the value list as it appears in the ValueListName field, one global for each value list in the table.

But that may be more than you need for the moment. So yes, a separate table solely for the value list values. If you have an Admin area, you might want to setup a separate relationship and portal for the purpose of user edits to the list or you could just make a separate layout and button/script combination that pops up an editor (portal or list) that allows the user to edit values. You WILL need to script a Find/Replace if the user wants to delete rather than just edit one of the existing values.
0
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
LVL 2

Author Closing Comment

by:rvfowler2
ID: 38741383
A good solution, but I do hesitate to give user ability to delete and replace text throughout a db.  Could be trouble.
0
 
LVL 25

Expert Comment

by:Will Loving
ID: 38741427
Limit access the editor via  checking the privilege set of the account user at the start of the script or simply limit access to the field to Read Only.
0
 
LVL 2

Author Comment

by:rvfowler2
ID: 38741569
Good idea; thanks.
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Conversion Steps for merging and consolidating separate Filemaker files The following is a step-by-step guide for the process of consolidating two or more FileMaker files (version 7 and later) into a single file with multiple tables. Sometimes th…
Problem: You have a hosted FileMaker database and users are tired of having to use Open Remote or Open Recent to access the database. They say, "can't you just give us something to double-click on rather than have to go through those dialogs?" An…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question