Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2013-01-03
6
Medium Priority
?
621 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 25

Assisted Solution

by:Will Loving
Will Loving earned 2000 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 2000 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
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

Enroll in September's Course of the Month

This month’s featured course covers 16 hours of training in installation, management, and deployment of VMware vSphere virtualization environments. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

Pop up windows can be a useful feature of any Filemaker database.  Though best used sparingly, they can be employed in a multitude of different ways, for example;  as a splash screen at login, during scripted processes to control user input, as pick…
Having just upgraded from Filemaker 11 to Filemaker 12 over the weekend, we thought we would add some tips for others making the same move.  In general, our installation went without incident. Please note that this is not a replacement for Chapter 5…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

705 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