JS Dev Kit courtesy of Jeremy Brown's js-dev-environment
This environment uses the same js-dev-environment as the original kit. For this environment we provided the basic template needed to produce a DataTables integration. You can use this as a starter to customize your DataTable implementation building upon the existing code base.
- A repository template on Github
- A basic html / JS set up.
- package.json file for install
- A FileMaker file to show the widget rendered
- Scripts to build and upload the inlined code to FileMaker
This widget requires the associated FMP.12 Demo file to function correctly.
npm install
npm start
- Open the DataTables-Demo_PBS.fmp12 file.
- JSDev Example - Last Layout in Demo File
- Allow it to work in Dev mode.
WebViewer should be populated with the PBS custom DataTable.
Ready for modifications
- VSCode - (recommended)
- Git - (recommended)
- nodejs - this workflow uses npm (required)
- jsinFM - Original Kit Documentation
Support for DataTables
- JSON object is sent during Load Web Viewer Event, data retrieved using the FileMaker Execute DataAPI script step.
window.loadData = function (json) {
const obj = JSON.parse(json);
// console.log(obj);
const dataSet = obj.data;
// console.log(dataSet);