[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$feMZEijTgsP7z7E5IZ-oPgvAnT1ETTZPoXSyHeyv8NZE":3},{"item":4},{"id":5,"idKnowledge":6,"slug":7,"title":8,"description":9,"bodyMarkdown":10,"bodyHtml":11,"author":12,"date":13,"createdAt":14,"topics":15,"image":18,"hasDownload":19,"fileName":20},"77","21899F37-36B1-7F48-89FC-477C638C6074","import-filemaker-scripts-written-by-chatgpt","Import FileMaker scripts written by ChatGPT","Can ChatGPT help me write FileMaker scripts? Probably not new to you is that we can utilise ChatGPT to assist in writing complex FileMaker scripts. […]","###### Can ChatGPT help me write FileMaker scripts?\n\nProbably not new to you is that we can utilise ChatGPT to assist in writing complex FileMaker scripts. The tool allows you to describe your needs in natural language, and it will generate precise script code that can be used into FileMaker databases. This innovation significantly reduces the learning curve for new developers and boosts productivity for experienced users by (almost) automating the script-writing process.\n\n###### Script steps in FileMaker are XML based\n\nThere is no simple cut-paste step to get ‘visible filemaker script code’ back into filemaker. This because FileMaker uses specific XML based language in the script engine.  Give it a try, copy some script steps from one script to another, that will work, but copying these same steps to a simple text editor will not work. Nor the other way around. So let us first find a solution for this.\n\n###### Free BaseElements plugin\n\nTo get Script data from or to you FileMaker Script there is luckily a free live saving FM Plugin call [BaseElements](https:\u002F\u002Fdocs.baseelementsplugin.com\u002Farticle\u002F522-downloads). Download and install this plug in and now you can use below steps to exchange whole or partial scripts to and from the clipboard.\n\n\\[gdlr\\_widget\\_box title=\"\" title-color=\"#ffffff\" background=\"#252525\" color=\"#ffffff\" \\]\n\nBE\\_ClipboardGetText ( format )\n\nBE\\_ClipboardSetText ( text ; format )\n\n\\[\u002Fgdlr\\_widget\\_box\\]\n\nThe “format” parameter above takes a specific FileMaker code to recognise the clipboard content. The following code should be used:\n\n\\[gdlr\\_widget\\_box title=\"\" title-color=\"#ffffff\" background=\"#252525\" color=\"#ffffff\" \\] dyn.ah62d4rv4gk8zuxnxnq\n\\[\u002Fgdlr\\_widget\\_box\\]\n\nNow why is it important to also be able to Export XML?\n\n###### Let us teach ChatGPT Filemaker’s XML\n\nThe first thing to understand is that ChatGPT can reply her results in any format you like. You can ask it to reply in JSON, HTML, in a Excelsheet or as XML… it is all up to you. So, we can ask for a reply in XML format. But a format is only a structure. Filemaker uses a **library** of XML nodes that is unique to FileMaker. Thus how do we go from here?  \n\n###### ChatGPT Assistants to the rescue\n\nChatGPT Assistants can handle files as **source** to base their response upon. Thus by uploading a large Filemaker XML syntax example set, we can teach ChatGPT how to respond in proper Filemaker XML syntax!  A source file is quite simply made by exporting a (couple of) large example scripts from a Filemaker solution to a text (xml) file. The more different steps in this example script, the more library knowledge ChatGPT can take in.\n\nNow we are almost there.\n\n###### Upload you example library file and start asking questions\n\nIn a video blow I will show the result if we bind the above steps together.\n\n[https:\u002F\u002Floggix.com\u002Fwp-content\u002Fuploads\u002F2024\u002F08\u002Ffmscripts.mp4](https:\u002F\u002Floggix.com\u002Fwp-content\u002Fuploads\u002F2024\u002F08\u002Ffmscripts.mp4)\n\n###### Interested? Contact us.\n\nThe above is a hopefully a nice insight for fellow FileMaker developers. Loggix is ​​continuously exploring the limits and possibilities of software that we can use to improve our knowledge and your business processes.","\u003Ch6>Can ChatGPT help me write FileMaker scripts?\u003C\u002Fh6>\n\u003Cp>Probably not new to you is that we can utilise ChatGPT to assist in writing complex FileMaker scripts. The tool allows you to describe your needs in natural language, and it will generate precise script code that can be used into FileMaker databases. This innovation significantly reduces the learning curve for new developers and boosts productivity for experienced users by (almost) automating the script-writing process.\u003C\u002Fp>\n\u003Ch6>Script steps in FileMaker are XML based\u003C\u002Fh6>\n\u003Cp>There is no simple cut-paste step to get ‘visible filemaker script code’ back into filemaker. This because FileMaker uses specific XML based language in the script engine.  Give it a try, copy some script steps from one script to another, that will work, but copying these same steps to a simple text editor will not work. Nor the other way around. So let us first find a solution for this.\u003C\u002Fp>\n\u003Ch6>Free BaseElements plugin\u003C\u002Fh6>\n\u003Cp>To get Script data from or to you FileMaker Script there is luckily a free live saving FM Plugin call \u003Ca href=\"https:\u002F\u002Fdocs.baseelementsplugin.com\u002Farticle\u002F522-downloads\">BaseElements\u003C\u002Fa>. Download and install this plug in and now you can use below steps to exchange whole or partial scripts to and from the clipboard.\u003C\u002Fp>\n\u003Cp>[gdlr_widget_box title=&quot;&quot; title-color=&quot;#ffffff&quot; background=&quot;#252525&quot; color=&quot;#ffffff&quot; ]\u003C\u002Fp>\n\u003Cp>BE_ClipboardGetText ( format )\u003C\u002Fp>\n\u003Cp>BE_ClipboardSetText ( text ; format )\u003C\u002Fp>\n\u003Cp>[\u002Fgdlr_widget_box]\u003C\u002Fp>\n\u003Cp>The “format” parameter above takes a specific FileMaker code to recognise the clipboard content. The following code should be used:\u003C\u002Fp>\n\u003Cp>[gdlr_widget_box title=&quot;&quot; title-color=&quot;#ffffff&quot; background=&quot;#252525&quot; color=&quot;#ffffff&quot; ] dyn.ah62d4rv4gk8zuxnxnq\n[\u002Fgdlr_widget_box]\u003C\u002Fp>\n\u003Cp>Now why is it important to also be able to Export XML?\u003C\u002Fp>\n\u003Ch6>Let us teach ChatGPT Filemaker’s XML\u003C\u002Fh6>\n\u003Cp>The first thing to understand is that ChatGPT can reply her results in any format you like. You can ask it to reply in JSON, HTML, in a Excelsheet or as XML… it is all up to you. So, we can ask for a reply in XML format. But a format is only a structure. Filemaker uses a \u003Cstrong>library\u003C\u002Fstrong> of XML nodes that is unique to FileMaker. Thus how do we go from here?  \u003C\u002Fp>\n\u003Ch6>ChatGPT Assistants to the rescue\u003C\u002Fh6>\n\u003Cp>ChatGPT Assistants can handle files as \u003Cstrong>source\u003C\u002Fstrong> to base their response upon. Thus by uploading a large Filemaker XML syntax example set, we can teach ChatGPT how to respond in proper Filemaker XML syntax!  A source file is quite simply made by exporting a (couple of) large example scripts from a Filemaker solution to a text (xml) file. The more different steps in this example script, the more library knowledge ChatGPT can take in.\u003C\u002Fp>\n\u003Cp>Now we are almost there.\u003C\u002Fp>\n\u003Ch6>Upload you example library file and start asking questions\u003C\u002Fh6>\n\u003Cp>In a video blow I will show the result if we bind the above steps together.\u003C\u002Fp>\n\u003Cp>\u003Ca href=\"https:\u002F\u002Floggix.com\u002Fwp-content\u002Fuploads\u002F2024\u002F08\u002Ffmscripts.mp4\">https:\u002F\u002Floggix.com\u002Fwp-content\u002Fuploads\u002F2024\u002F08\u002Ffmscripts.mp4\u003C\u002Fa>\u003C\u002Fp>\n\u003Ch6>Interested? Contact us.\u003C\u002Fh6>\n\u003Cp>The above is a hopefully a nice insight for fellow FileMaker developers. Loggix is ​​continuously exploring the limits and possibilities of software that we can use to improve our knowledge and your business processes.\u003C\u002Fp>\n","jeroen","2024-08-15",1781520669000,[16,17],"Ai","FileMaker","\u002Fapi\u002Fknowledge\u002Fimage\u002F77\u002F?v=c88a2aed09c2",false,""]