SetWindowVar ( keyOrIndexOrPath ; value ; JSONType )
Set a global variable scoped to the current window
Be the first to rate this function Log in to vote
|
Jason Wood - Show more from this author
Define Database https://www.definedatabase.com |
Function definition: (Copy & paste into FileMaker's Edit Custom Function window)
See also: GetWindowVar() and DeleteWindowVar()
Works like JSONSetElement() but only one key, index, or path can be set at one time. You could chain together multiple SetWindowVar like:
Set Variable [ $blah ; SetWindowVar ( "hello" ; "world" ; JSONString ) & SetWindowVar ( "goodbye" ; "moon" ; JSONString ) ]
...just don't use the output directly from this calculation ($blah) as it will be invalid JSON.
Comments
Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.