JSON Set Variable Power Tools
Our world of software development is changing rapidly! With AI influencing the way we develop, it becomes increasingly important for developers to become informed about the tools which help them become more efficient.
Fortunately, we still live in a world where people have to coordinate and organize code. Even if AI can create near-flawless code in some cases, it doesn't create the ideas. Humans are the creative force. Whether you're using a simple Find & Replace to refactor some functions, or having AI create your next powerful JavaScript for your killer Web Viewer interactions, you still need to know about your available tools.
In this video, I walk you through a recent revision to an older tool I had been using to ease the amount of typing I have to do when using JSON as the parameter passing method within FileMaker scripts or when interacting with an API or anything else that uses JSON. No joke, the content in this video and the associated technique file can save you literally hundreds of hours when used effectively. I'll show you how.
Comments
Thank you
I am always surprised by how many amazing tools are available. Good to have some guidance on structuring scripts.
(I hope Ed Sheeran is not using Filemaker because he's albums are [+-/*] :D )
Attention with localized FileMaker
In the custom function DevTools_SetVarSteps2JSON, one line must be adapted if FileMaker is not used in English. E.g. if you use FileMaker in German then you have to replace the name of the script step "Set Variable" with "Variable setzen":
English: ~variableNames = If ( ~validFormat ; BE_XPathAll ( ~snippet ; "//Step[@name=\'Set Variable\']/Name/text()" ) );
German: ~variableNames = If ( ~validFormat ; BE_XPathAll ( ~snippet ; "//Step[@name=\'Variable setzen\']/Name/text()" ) );
Cheers from Germany
Udo
Downloading Problem
Matt, I have been trying to download this video for a while and it says (in spanish) "Lo sentimos tenemos un pequeño problema" like Sorry we have a little Issue, I'll appreciate if you have the chance to take a look, thanks