6 Replies Latest reply on Aug 5, 2016 9:34 AM by alangodfrey

    Updating value lists

    ndveitch

      Hi There,

       

      I am busy developing a system for a new client and they have a ton of value lists that I foresee are going to need to be update on the odd occasion and I would like to give my client the opportunity to update the lists themselves without them going to File--> Manage--> Value Lists. The thought I had last night was to maybe have a ValueList table and then each value list is connected to a field in that table. Then I can give my client a layout where they can update the data for the value lists as and when they need. The only time they would need me to step in, or if they get an in-house developer, would be if they need a completely new list. For that all it would mean, would be to create a new field in the ValueList table and associate the new value list to that field.

       

      Would this be a good method to use, or would I run into problems doing it this way?

        • 1. Re: Updating value lists
          Johan Hedman

          Create a Settings table in your solution. Create on Text field for each Value List that you like to be editable. Give user access to this area and populate the field with the information you have in your Value List now. Then change the Value List to show info from table Settings chosen field

          • 2. Re: Updating value lists
            alangodfrey

            You could allow the option in the field/value list set-up to allow the user to edit the value list.  However this is not as flexible as it seems, as the custom edits will not carry forward when you import the live data to an upgrade version of your solution, for example.  Hence Johan's suggestion is better than the feature that *seems* to be native to Filemaker.

            • 3. Re: Updating value lists
              jbrown

              I prefer one table per value list because each value list is its own set of records. It adds tables, but the size of each table is much smaller. Then I give them access to each table through an "Admin" UI. This is based on a table that is connected to each value list table. They can edit/add/delete on the fly.

               

              In this case, you have to consider the nature of each value in the list. What if they change a value list item from "Car" to "Automobile", for example. Would you want that edit to ripple through your entire system? Especially if you've got scripts or other db functionality based on the word "car".

               

              Developing a table of value lists is great, but it comes with it extra development time. But I find it more valuable and useful for the client in the long run.

               

              EDIT: Another thing to consider: putting the value lists into tables is a good idea for those lists that could change frequently. A value list of Race or Ethnicity or Gender is likely to not change often. In an app I built recently I put every list into a table; in retrospect that was a bit overkill.

              1 of 1 people found this helpful
              • 4. Re: Updating value lists
                keywords

                I like the idea of each list beings its own table, if for no other reason than (1) an all in one table will have heaps of empty fields, as the number of records will be dictated by the length of the longest list; and (2) adding to any list other than the longest one should be done by filling an empty field on an existing record—but which one? A separate table per list is much simpler to manage.

                I also take the point that it is hardly necessary to make a table for some lists—yes/no for example. If it's a fixed list define it as a custom list.

                • 5. Re: Updating value lists
                  BruceHerbach

                  In cases were I don't want to use a table to let the client edit a value list,  I use a standard value list.  Then give the client an Admin screen with a tab/section to edit the lists.

                   

                  • I use a global field, putting one copy of the global field on the layout for each value list the client is going to edit.  The field label is the name of the list.
                  • I usually make the field size just big enough to show the Pop up list arrow.
                  • The field is set as a PopUp menu with "Allow editing of value list" checked.
                  • I use an onModify script trigger to clear any data in the field.

                   

                  The one advantage to using a standard value list versus a table/field is the control of the order the items are displayed.  They appear exactly as the client wants.  When I use a field in a table the appear sorted the way FileMaker wants.  Which is not always what the client wants.

                   

                  HTH

                  • 6. Re: Updating value lists
                    alangodfrey

                    Hi, Bruce

                     

                    I may not have understood the detail of your suggestion, but could you not achieve the same result, with only one global field, duplicated on the layout as many times as you have value lists to edit, and tie each to a different value list?

                     

                    Also, does the technique not also suffer from the problem that the value list will not be imported when the user's data is imported into an upgrade, for example?  (I believe I posted that as a feature request some time ago, but I haven't spotted it coming up on any version release notes.)