Set List Of Fields ( fieldname¶value¶ ... )

Version 2

     

    Script

     

    Compatibility
    Creator
    Mac OS X
    Henry Wolff
    FMP 10, 11
    MSM GmbH
    Web: Yes
    File Type: None
    Server: Yes
    FileSize: 0 kilobytes
    http://www.msm-gmbh.de

    Description

    recursive script which sets a list of fields and values by name

     


    Code

    Set Variable [ $param; Value:Get ( ScriptParameter ) ]

    Set Variable [ $number; Value:ValueCount ( $param ) ]

    If [ $number > 2 ]

    Perform Script [ „Set List Of Fields ( fieldname¶value¶ [...] )“ ; Parameter: RightValues ( $param ; number - 2 ) ]

    End If

    Set Field By Name [ Trim ( Substitute ( LeftValues ( $param ; 1 ) ; „¶“ ; „“ ) ) ;

    Trim ( Substitute ( RightValues ( LeftValues ( $param ; 2 ) ; 1 ) ; „¶“ ; „“ ) ) ]

    Commit Records/Requests [No dialog]

     

    Sample Input

    Sample Output


    Developer's Notes

    You have to use as parameters always pairs of name and value

     


    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.