Parse Return Separated Lists

Version 2

     

    Script

     

    Compatibility
    Creator
    Mac OS X, Windows
    Todd Duell
    FMP 8, 8.5, 9, 10, 11
    Formulations Pro
    Web: No
    File Type: FP7
    Server: Yes
    FileSize: ~ .89 megabytes
    http://www.formulationspro.com

    Description

    If you have ever used dynamic scripting to process records using a field with a returned separated list of values you know how difficult the task is to parse the values from the field. FileMaker Pro 8 has a new function called GetValue that takes all the pain out of the parsing process. All you have to supply to the function is the return separated list of values, which can be from a text field, a value list, or even related records and the value number for the row that you want use. The GetValue function then does the rest of the heavy lifting to parse the list for the specified value. Since this new feature has unlimited potential this demo has four examples to show you some possibilities of the GetValue function. The examples are increasing in complexity as well as utility. They certainly don't represent all that is available to the cleaver FileMaker developer. However, I'm sure with a little practice you will come up with some interesting capabilities.

     


    Code
    See sample file

     

    Sample Input

    Sample Output


    Developer's Notes

    See sample file for full demo and technical article.

     


    FileMaker Inc. provides this content on an “As Is” basis, without any warranty, and subject to the terms of the FileMaker Technical Network Agreement. FileMaker makes no representations and is not liable for any content or related information. You may use the content as part of your own solutions and for your customers, but you may not otherwise publicly distribute any content that you did not submit. ©2009-2011 FileMaker, Inc. All Rights Reserved. FileMaker is a trademark of FileMaker, Inc. registered in the U.S. and other countries.