{"id":11580,"date":"2019-10-14T17:14:29","date_gmt":"2019-10-14T17:14:29","guid":{"rendered":"https:\/\/www.directimpactsolutions.com\/?p=11580"},"modified":"2024-06-01T01:12:29","modified_gmt":"2024-06-01T01:12:29","slug":"how-to-display-filemaker-data-on-the-web","status":"publish","type":"post","link":"https:\/\/www.directimpactsolutions.com\/en\/how-to-display-filemaker-data-on-the-web\/","title":{"rendered":"How to Display FileMaker Data on the Web"},"content":{"rendered":"<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"451\" src=\"https:\/\/www.directimpactsolutions.com\/wp-content\/uploads\/2023\/05\/Data-on-the-Web-1024x451.jpg\" alt=\"displaying data on the web\" class=\"wp-image-11780\" style=\"width:661px;height:291px\" srcset=\"https:\/\/www.directimpactsolutions.com\/wp-content\/uploads\/2023\/05\/Data-on-the-Web-1024x451.jpg 1024w, https:\/\/www.directimpactsolutions.com\/wp-content\/uploads\/2023\/05\/Data-on-the-Web-300x132.jpg 300w, https:\/\/www.directimpactsolutions.com\/wp-content\/uploads\/2023\/05\/Data-on-the-Web-768x338.jpg 768w, https:\/\/www.directimpactsolutions.com\/wp-content\/uploads\/2023\/05\/Data-on-the-Web-1536x676.jpg 1536w, https:\/\/www.directimpactsolutions.com\/wp-content\/uploads\/2023\/05\/Data-on-the-Web-2048x901.jpg 2048w, https:\/\/www.directimpactsolutions.com\/wp-content\/uploads\/2023\/05\/Data-on-the-Web-600x264.jpg 600w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><p>Here\u2019s a quick way to display data from your FileMaker app on the web. This method is especially useful if you don\u2019t have a FileMaker Server.<\/p><p>The example below is using&nbsp;<strong>DataTables<\/strong>&nbsp;(<a href=\"https:\/\/datatables.net\/\" target=\"_blank\" rel=\"noreferrer noopener\">datatables.net<\/a>).<\/p><figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"602\" src=\"https:\/\/www.directimpactsolutions.com\/wp-content\/uploads\/2023\/05\/fm_datatables_table-1-1024x602-1.png\" alt=\"example data table\" class=\"wp-image-11581\" style=\"width:612px;height:360px\" srcset=\"https:\/\/www.directimpactsolutions.com\/wp-content\/uploads\/2023\/05\/fm_datatables_table-1-1024x602-1.png 1024w, https:\/\/www.directimpactsolutions.com\/wp-content\/uploads\/2023\/05\/fm_datatables_table-1-1024x602-1-300x176.png 300w, https:\/\/www.directimpactsolutions.com\/wp-content\/uploads\/2023\/05\/fm_datatables_table-1-1024x602-1-768x452.png 768w, https:\/\/www.directimpactsolutions.com\/wp-content\/uploads\/2023\/05\/fm_datatables_table-1-1024x602-1-600x353.png 600w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><h3 class=\"wp-block-heading\">Before we begin<\/h3><p>There are multiple ways to\u00a0<a href=\"https:\/\/www.directimpactsolutions.com\/en\/display-executesql-results-in-a-web-viewer\/\">display data on the web<\/a>\u00a0from FileMaker Server (WebDirect, Data API, CWP\u2026). The options are more limited when you\u2019re using FileMaker client only.<\/p><p>This method consists of 3 steps:<\/p><ol class=\"wp-block-list\"><li>Setup your data table (we used one from&nbsp;<a href=\"https:\/\/datatables.net\/\" target=\"_blank\" rel=\"noreferrer noopener\">datatables.net<\/a>)<\/li>\n\n<li>Export the data as\u00a0<a href=\"https:\/\/www.directimpactsolutions.com\/en\/guide-to-building-a-json-object\/\">JSON in FileMaker<\/a><\/li>\n\n<li>Upload the data to your web server<\/li>\n\n<li>Done!<\/li><\/ol><h3 class=\"wp-block-heading\">1. Setup your data table<\/h3><p>Throughout this guide, I\u2019ll be using data with 4 fields\/columns: Name, StockCode, Quantity and UnitPrice.<\/p><p>Copy the code below and save it as&nbsp;<em>datatable.html<\/em>&nbsp;(you can embed the code below into your existing page, just be sure that you load the same JS and CSS files from the code below). Make sure you customize the column names between the CUSTOMIZE comments, according to your data. This table is set to pull JSON data from a file called&nbsp;<em>data.json<\/em>. This file will be created and uploaded by FileMaker in steps 2 and 3 below.<\/p><pre class=\"wp-block-code\"><code>&lt;html&gt;\n\t&lt;head&gt;\n\t\t&lt;title&gt;FM Datatables Demo&lt;\/title&gt;\n\t\t&lt;link rel=\"stylesheet\" type=\"text\/css\" href=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/twitter-bootstrap\/4.1.3\/css\/bootstrap.css\"\/&gt;\n\t\t&lt;link rel=\"stylesheet\" type=\"text\/css\" href=\"https:\/\/cdn.datatables.net\/1.10.20\/css\/dataTables.bootstrap4.min.css\"\/&gt;\n\t\t&lt;script\n  src=\"https:\/\/code.jquery.com\/jquery-3.4.1.min.js\"\n  integrity=\"sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=\"\n  crossorigin=\"anonymous\"&gt;&lt;\/script&gt;\n\t\t&lt;script type=\"text\/javascript\" src=\"https:\/\/cdn.datatables.net\/1.10.20\/js\/jquery.dataTables.min.js\"&gt;&lt;\/script&gt;\n\t\t&lt;script type=\"text\/javascript\" src=\"https:\/\/cdn.datatables.net\/1.10.20\/js\/dataTables.bootstrap4.min.js\"&gt;&lt;\/script&gt;\n\t&lt;\/head&gt;\n\t&lt;body&gt;\n\t\t&lt;table id=\"example\" class=\"table table-striped table-bordered\" style=\"width:100%\"&gt;\n\t\t\t&lt;thead&gt;\n\t\t\t    \n\t\t\t    &lt;!-- CUSTOMIZE - START --&gt;\n\t\t\t\t&lt;tr&gt;\n\t\t\t\t\t&lt;th&gt;Name&lt;\/th&gt;\n\t\t\t\t\t&lt;th&gt;StockCode&lt;\/th&gt;\n\t\t\t\t\t&lt;th&gt;UnitPrice&lt;\/th&gt;\n\t\t\t\t\t&lt;th&gt;Quantity&lt;\/th&gt;\n\t\t\t\t&lt;\/tr&gt;\n\t\t\t\t&lt;!-- CUSTOMIZE - END --&gt;\n\t\t\t&lt;\/thead&gt;\n\t\t&lt;\/table&gt;\n\t\t&lt;script&gt;\n$(document).ready(function() {\n    $(\"#example\").DataTable({\n      ajax: {\n            url: \"data.json\",\n            dataSrc: \"\"\n      },\n      \n      \/\/ CUSTOMIZE - START\n      \/\/ Column names are case-sensitive\n     columns: &#91;\n          { \"data\": \"name\" },\n          { \"data\": \"stockcode\" },\n          { \"data\": \"unitprice\" },\n          { \"data\": \"quantity\" }\n     ],\n     \"pageLength\": 15\n     \/\/ CUSTOMIZE - END\n    });\n} );\n\n&lt;\/script&gt;\n\t&lt;\/body&gt;\n&lt;\/html&gt;<\/code><\/pre><h3 class=\"wp-block-heading\" style=\"padding-top:var(--wp--preset--spacing--30);padding-right:var(--wp--preset--spacing--40);padding-bottom:var(--wp--preset--spacing--40);padding-left:var(--wp--preset--spacing--40)\">2. Export the data as JSON in FileMaker<\/h3><p>Here\u2018s an example of how to convert your records into JSON.<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"607\" height=\"916\" src=\"https:\/\/www.directimpactsolutions.com\/wp-content\/uploads\/2023\/05\/ExportJSON_c.png\" alt=\"Export data as JSON in FileMaker\" class=\"wp-image-11583\" srcset=\"https:\/\/www.directimpactsolutions.com\/wp-content\/uploads\/2023\/05\/ExportJSON_c.png 607w, https:\/\/www.directimpactsolutions.com\/wp-content\/uploads\/2023\/05\/ExportJSON_c-199x300.png 199w, https:\/\/www.directimpactsolutions.com\/wp-content\/uploads\/2023\/05\/ExportJSON_c-600x905.png 600w\" sizes=\"auto, (max-width: 607px) 100vw, 607px\" \/><\/figure><h3 class=\"wp-block-heading\" style=\"padding-top:var(--wp--preset--spacing--40)\">3. Upload the data to your web server<\/h3><p>We\u2019re using FTP in this example to upload data.<\/p><figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"516\" src=\"https:\/\/www.directimpactsolutions.com\/wp-content\/uploads\/2023\/05\/image-2-1024x516-1.png\" alt=\"Upload the data to your web server\" class=\"wp-image-11585\" style=\"width:571px;height:288px\" srcset=\"https:\/\/www.directimpactsolutions.com\/wp-content\/uploads\/2023\/05\/image-2-1024x516-1.png 1024w, https:\/\/www.directimpactsolutions.com\/wp-content\/uploads\/2023\/05\/image-2-1024x516-1-300x151.png 300w, https:\/\/www.directimpactsolutions.com\/wp-content\/uploads\/2023\/05\/image-2-1024x516-1-768x387.png 768w, https:\/\/www.directimpactsolutions.com\/wp-content\/uploads\/2023\/05\/image-2-1024x516-1-600x302.png 600w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><h3 class=\"wp-block-heading\" style=\"padding-top:var(--wp--preset--spacing--40)\">4. That\u2019s it!<\/h3><p>Open the URL leading to where you saved&nbsp;<em>datatable.html<\/em>&nbsp;in step 1. You can now see the data that you put in that JSON file in your table. From now on you can just run the \u201cExport to JSON and Upload\u201d script, and your data will be uploaded within a few seconds. You don\u2019t have to modify any code.<\/p><h3 class=\"wp-block-heading\">Going further:<\/h3><ul class=\"wp-block-list\"><li>Export your data as CSV using the native script steps in FileMaker, then upload the CSV file (instead of JSON) to your web server. DataTables can load data from CSV files. You can read the documentation from DataTable&nbsp;<a href=\"https:\/\/datatables.net\/manual\/\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a>.<\/li>\n\n<li>Check the extensions listed&nbsp;<a href=\"https:\/\/datatables.net\/download\/\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a>. You can allow site visitors to&nbsp;<a href=\"https:\/\/directimpactsolutions.com\/en\/exporting-to-excel-basics\">export data in either Excel<\/a>&nbsp;or PDF format. You can also turn the table into an editor for your data, then sync that back into your local FileMaker app.<\/li><\/ul><hr class=\"wp-block-separator has-alpha-channel-opacity\" style=\"margin-top:var(--wp--preset--spacing--70);margin-bottom:var(--wp--preset--spacing--70)\"\/><p class=\"has-small-font-size\"><em>*This article was originally written for AppWorks, which has since joined Direct Impact Solutions. This article is intended for informative purposes only. To the best of our knowledge, this information is accurate as of the date of publication.<\/em><\/p>","protected":false},"excerpt":{"rendered":"<p>Here\u2019s a quick way to display data from your FileMaker app on the web. This method is especially useful if you don\u2019t have a FileMaker Server. The example below is using&nbsp;DataTables&nbsp;(datatables.net). Before we begin There are multiple ways to\u00a0display data on the web\u00a0from FileMaker Server (WebDirect, Data API, CWP\u2026). The options are more limited when &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/www.directimpactsolutions.com\/en\/how-to-display-filemaker-data-on-the-web\/\"> <span class=\"screen-reader-text\">How to Display FileMaker Data on the Web<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":6,"featured_media":11780,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","footnotes":""},"categories":[29],"tags":[39,217],"class_list":["post-11580","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-low-code","tag-filemaker","tag-web"],"uagb_featured_image_src":{"full":["https:\/\/www.directimpactsolutions.com\/wp-content\/uploads\/2023\/05\/Data-on-the-Web-scaled.jpg",2560,1126,false],"thumbnail":["https:\/\/www.directimpactsolutions.com\/wp-content\/uploads\/2023\/05\/Data-on-the-Web-150x150.jpg",150,150,true],"medium":["https:\/\/www.directimpactsolutions.com\/wp-content\/uploads\/2023\/05\/Data-on-the-Web-300x132.jpg",300,132,true],"medium_large":["https:\/\/www.directimpactsolutions.com\/wp-content\/uploads\/2023\/05\/Data-on-the-Web-768x338.jpg",768,338,true],"large":["https:\/\/www.directimpactsolutions.com\/wp-content\/uploads\/2023\/05\/Data-on-the-Web-1024x451.jpg",1024,451,true],"1536x1536":["https:\/\/www.directimpactsolutions.com\/wp-content\/uploads\/2023\/05\/Data-on-the-Web-1536x676.jpg",1536,676,true],"2048x2048":["https:\/\/www.directimpactsolutions.com\/wp-content\/uploads\/2023\/05\/Data-on-the-Web-2048x901.jpg",2048,901,true],"woocommerce_thumbnail":["https:\/\/www.directimpactsolutions.com\/wp-content\/uploads\/2023\/05\/Data-on-the-Web-300x300.jpg",300,300,true],"woocommerce_single":["https:\/\/www.directimpactsolutions.com\/wp-content\/uploads\/2023\/05\/Data-on-the-Web-600x264.jpg",600,264,true],"woocommerce_gallery_thumbnail":["https:\/\/www.directimpactsolutions.com\/wp-content\/uploads\/2023\/05\/Data-on-the-Web-100x100.jpg",100,100,true]},"uagb_author_info":{"display_name":"Direct Impact Solutions","author_link":"https:\/\/www.directimpactsolutions.com\/en\/author\/direct-impact-solutions\/"},"uagb_comment_info":0,"uagb_excerpt":"Here\u2019s a quick way to display data from your FileMaker app on the web. This method is especially useful if you don\u2019t have a FileMaker Server. The example below is using&nbsp;DataTables&nbsp;(datatables.net). Before we begin There are multiple ways to\u00a0display data on the web\u00a0from FileMaker Server (WebDirect, Data API, CWP\u2026). The options are more limited when&hellip;","_links":{"self":[{"href":"https:\/\/www.directimpactsolutions.com\/en\/wp-json\/wp\/v2\/posts\/11580","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.directimpactsolutions.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.directimpactsolutions.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.directimpactsolutions.com\/en\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.directimpactsolutions.com\/en\/wp-json\/wp\/v2\/comments?post=11580"}],"version-history":[{"count":5,"href":"https:\/\/www.directimpactsolutions.com\/en\/wp-json\/wp\/v2\/posts\/11580\/revisions"}],"predecessor-version":[{"id":17280,"href":"https:\/\/www.directimpactsolutions.com\/en\/wp-json\/wp\/v2\/posts\/11580\/revisions\/17280"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.directimpactsolutions.com\/en\/wp-json\/wp\/v2\/media\/11780"}],"wp:attachment":[{"href":"https:\/\/www.directimpactsolutions.com\/en\/wp-json\/wp\/v2\/media?parent=11580"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.directimpactsolutions.com\/en\/wp-json\/wp\/v2\/categories?post=11580"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.directimpactsolutions.com\/en\/wp-json\/wp\/v2\/tags?post=11580"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}