Dynamic Script Parameters

Version 2

     

    Script

     

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

    Description

    Script parameters are a great new addition to FileMaker Pro 7. They have not only saved developers from having to write tons of repetitive code, but have also provided greatly simplified techniques that were previously very difficult to implement. That leads us to the next great leap in script parameters — dynamic script parameters that function across multiple records. You might be thinking to yourself that that's all fine and dandy, all it takes is to pass the next record's value as a script parameter from the parent script to a second subscript as it operates on the subsequent record in the loop. I'm well aware of that technique, but what I'm talking about is truly dynamic script parameters that operate on multiple records using a single script. Now that's a useful FileMaker Pro 7 challenge!

     


    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.