Learning Claris FileMaker
317.3K views | +9 today
Follow
Learning Claris FileMaker
Give life to your data with an easy to use database ... I'll share cool FileMaker stuff for you, avoiding the programming part of it as much as I can.                        #WorkplaceInnovationPlatform #Claris
Your new post is loading...
Your new post is loading...
Scooped by Didier Daglinckx
Scoop.it!

FileMaker Pro: Extracting Multiple JSON Formatted Script Parameters In One Step | Sounds Essential LLC

FileMaker Pro: Extracting Multiple JSON Formatted Script Parameters In One Step | Sounds Essential LLC | Learning Claris FileMaker | Scoop.it
FileMaker Pro: Extracting Multiple JSON Formatted Script Parameters In One Step
It Might Take A "While" For Us To Achieve This

The JSON functions were introduced in FileMaker 16 and since then, as it's native functionality, we've used these functions for passing around data in script parameters and more.

 

Often times, we'll be, say, clicking a button on a layout and passing multiple JSON formatted script parameters to the script being executed.

But we began wondering if there was a quicker way of extracting the parameters into variables in the script, and it turns out there is…

No comment yet.
Scooped by Didier Daglinckx
Scoop.it!

Passing Script Parameters in FileMaker - A Developer's Guide

Passing Script Parameters in FileMaker - A Developer's Guide | Learning Claris FileMaker | Scoop.it

What Are Script Parameters?

Script parameters are one of many tools that all FileMaker developers should learn to utilize when developing custom FileMaker applications.

Numerous benefits include writing fewer scripts, increased code reusability, and improved coding organization.


By designing your scripts to pass parameters, you can use a single script with logic branching (i.e., IF, ELSE IF, ELSE) to perform multiple actions within your FileMaker solution.

For example, you can create a Sales Order record in your FileMaker solution.

You can create a Sales Order from a few different contexts in your solution, such as from a Customer record, from a previous Sales Order, or from a cancelled Order.

Often there are similar requirements when creating a Sales Order from each of these contexts.

Maybe you need to know the corresponding customer for this order, or maybe you need to know shipping address.

By passing script parameters you can use a single script to create a Sales Order from various contexts without having to write and maintain a separate script.

There are many ways to format and pass scripts parameters in FileMaker and in this blog post we are going to start from the beginning and work our way up to the various ways we can pass multiple script parameters.

 

This blog post borrows heavily from Makah Encarnacao's FileMaker DevCon 2018 presentation, so be sure to check out her video, slides and example file for more details.

No comment yet.