Scannability in Scripting

What is Scannability?

Scannability is an attribute of any written piece, including FileMaker scripts, that help the reader find pertinent information quickly.

Why is High-Scannability in scripting important?

  • Easier and faster way to understand the purpose and actions of the script
  • Reduced errors in comprehension of the code and recollection of the specifics
  • Reduced strain on developer’s focus

What does High-Scannability look like?

It is a clear naming convention for scripts, which looks like:

You will also find a detailed purpose/notes, clear sections of scripts, business logic details, and effective comments.


What does Low-Scannability look like?

Below is the same script without all of the above elements discussed. Consider the difference in time spent between the Low-Scannability version and the High-Scannability version. Try to imagine these different scenarios considering the difference in the two:

  1. Report to the user what the logic is for deleting time sheets.
  2. Re-enable this schedule on FileMaker Server after installing a new FMS version. Determine which day of the week to set it up for.
  3. As a developer seeing this for the first time, determine the purpose and expected result of this script.
  4. Debug an issue when creating time sheets (especially if they are not properly linked to an appointment).

What practices should developers employ to ensure their code has a High-Scannability level?

It all starts with this: Adopt the perspective of a future developer. Assume this future developer is lacking any knowledge of business logic or any other elements of the code base.

From here, make sure your code meets the following criteria:

  1. The script is easy to find within the workspace; follows clean naming convention.
  2. The purpose of the code is explicitly stated at the top.
  3. Any parameters for the script are explicitly stated.
  4. There are clear “Sections” of the script.
  5. Any calculations that are beyond the “basic” level have commenting, which can detail the expected result(s).
  6. All business logic should be commented throughout the script where applicable. The future developer should not draw questions or have to make assumptions.

FileMaker eSignature add-on: capture a signature and reuse the feature

Free FileMaker add-on

FileMaker eSignature add-on: capture a signature and reuse the feature

A signature-capture example and video tutorial for reusing the feature in FileMaker.

A technician finishes a service visit and needs a signature against the job record. Kyo Logic’s FileMaker eSignature add-on is a starting point for exploring signature capture inside your application. The accompanying video also shows developers how to turn an existing database feature into a reusable add-on.

Key takeaways

  • Kyo’s example application shows how a signature can be captured and saved in FileMaker.
  • The video walks through packaging an existing feature as a FileMaker add-on.
  • Understanding the scripts and record connections will help you adapt the feature to your application.
  • Checking Save and Cancel on your team’s FileMaker clients helps confirm the workflow behaves as expected.

What does the FileMaker eSignature add-on demonstrate?

There are two useful parts to this resource: the signature feature itself and the process for packaging it so it can be reused.

The underlying eSignature Application walkthrough explains the feature. It uses a web viewer, a FileMaker object that displays web content inside a layout, to present a signature pad. The example passes the captured signature back to FileMaker and saves it as an image in a container field, the field type used to store files and images.

This article’s video builds on that application. It demonstrates how to take the existing feature and turn it into an add-on rather than rebuilding the same component in another file.

From a working feature to a reusable add-on

Watch Justin Hesser’s eSignature add-on tutorial.

If you’re following along, we recommend exploring the example application first. Seeing which layout objects, fields, and scripts capture and save the signature makes the packaging steps in the video easier to follow.

When you install the component in your application, it needs to know which record the signature belongs to and where to save the result. Those connections are worth checking before you try the adapted workflow.

Getting familiar with the signature workflow

A test copy of your application gives you room to work through the supplied example before changing it. You can capture a test signature, save it, and check the resulting record. Trying Cancel as well will show you what happens when someone stops before saving.

Following the saved image back to its destination field will help you see how the example connects the signature to a record. When you adapt the component, that destination needs to belong to the correct job, delivery, or other business record.

The original application walkthrough explains the JavaScript connection to FileMaker scripts. JavaScript is the code running inside the web viewer. Changes to that code or the scripts it calls can affect how the signature is passed back, so both sides of the connection need testing after an edit.

What is the person signing to confirm?

It helps to be clear about what the person is acknowledging when they sign. After a service visit, a customer might be confirming that the work is complete. For a delivery, they might be acknowledging receipt of the goods.

We would recommend making that acknowledgement clear on the screen so the person knows what they’re confirming. Depending on the workflow, they may also need to see a document or job summary first. How your team retrieves the signed record later is another useful part of planning the feature.

Making the signing process work for your team

The devices and FileMaker clients your team uses are the best place to check the adapted workflow. People need enough room to sign, working Save and Cancel actions, and a signature image that stays attached to the intended record when they navigate away and return.

Everyday interruptions matter, too. Someone might leave the signature empty, try again, or move to another layout before saving. Working through those cases in testing helps you decide how the application should respond.

Frequently asked questions

Do I need to understand the original eSignature Application first?

We recommend starting with that walkthrough if you’d like to understand how the signature is captured and passed back to FileMaker. That background makes this video’s focus, packaging the feature as an add-on, easier to follow.

Is this a complete document-signing service?

No. This resource demonstrates signature capture and add-on packaging. If your workflow also needs document routing, signer verification, or an approval history, those requirements would need a separate assessment for your application.

Can I use the tutorial for a different feature?

Yes! The tutorial shows how an existing database feature can become an add-on, so the approach can help with other features too. The parts each feature depends on will vary, which is why it helps to review its fields, scripts, and connections before packaging it.

Could signature capture help your team?

You can explore the free eSignature add-on alongside the video in a test file. If you’d like help connecting signature capture to a job or approval workflow, contact Kyo Logic. We develop custom Claris FileMaker applications for teams in New England and beyond.

Get the eSignature add-on

Tell us where to send your free eSignature add-on download link.

Kyo Logic eSignature Application – Using the Power of CLARIS FileMaker 19 to Enhance your Application

With the recent release of Claris’ FileMaker 19, developers around the world are reveling in all of its new capabilities. Today we will be taking a deeper dive into two new capabilities WebDirect Card Windows and JavaScript in Web Viewers. We will show you how they can be utilized to greatly enhance your FileMaker database.

WebDirect Card Windows

            Since the release of FileMaker 16, Card Windows have taken the FileMaker world by storm. They have allowed databases in FileMaker Pro and FileMaker Go to layer a window on top of another window as shown below.

Starting with FileMaker 19, this functionality has now been brought to WebDirect!

JavaScript in Web Viewers

FileMaker has added a new function to Web Viewers called “Allow JavaScript to perform FileMaker scripts.” You can see below where to navigate to turn this on in the Web Viewer Setup.

What this allows you to do is enter the below JavaScript function into the JavaScript code in your Web Viewer. This will trigger a FileMaker script to be run as a result of an action taken within the Web Viewer.

[arve url=”https://kyologic.com/wp-content/uploads/2020/05/Signature.mp4″ /]

In the eSignature Application tool we utilize the open source signature pad code provided here https://github.com/szimek/signature_pad  (Thank you Szymon Nowak!) as the base for the web viewer code.

We have set up each element of the code in its own field in the HTM_Html table and combine the individual elements into the HTML_Calc field, which is what the Web Viewer reads and displays.

The elements in our code, which have been added to our FileMaker functions, are JSFM1 and JSFM2.

JSFM1 Is the Function that will be called upon selecting Save and JSFM2 upon selecting Cancel from within the Web Viewer.

Here is a look at what the field JSFM1 contains:

As you can see here, when the Save button is clicked the function will run and, assuming that it is not empty, will first save the image as base 64 encoded text and then run the script SaveSignature in FileMaker.

SaveSignature simply pulls in the dataURL as the parameter, decodes and formats it to be a png. Than sets it to the container field and closes the card window. It’s as easy as that. No more unnecessary data api work arounds!

It is important to note that with FileMaker 19, it is no longer necessary to base64 encode your web viewer code on WebDirect. In order for the FileMaker.PerformScript function to work from within a web viewer in WebDirect, the webviewer code cannot be base64 encoded and must start with datatext/html,

Download eSignature Application

Please complete this form to download the FREE file.

This field is for validation purposes and should be left unchanged.
Name(Required)

One-time Setup Navigation Bar

Why implement a standard navigation bar across the system?

For most systems, it is imperative that the user can get to many areas of the system in only a few clicks. Implementing this method of system navigation not only solves this problem, but also has some other benefits. It brings clarity to which area of the system the user is in, promotes standard navigation behavior which helps the user experience, and is very easy to manage and update once implemented

What does it look like?

Without using a standard navigation bar, keeping things updated over time can be very time consuming and sloppy to manage.

By using this system, you only need to do a major setup one time. From there, any new layouts or modules will adopt and fit into the existing system without issue. You avoid having to go back to all other layouts and update their individual button bars.

Example: Adding a new module

In this case, I added the “ContactInfo” table and created a Form and List view to display this data. To update the navigation bar, all I needed to do was update one script and my navigation was already completely set up!

The video below demonstrates this update and also showcases how the nav-bar is automatically updated on all layouts.

There are a few key components to setting up this system navigation.

  1. Startup script
  2. Navigation script
  3. Layout naming convention
  4. Layout objects

1. Startup Script

2. Navigation Script

3. Layout naming convention

4. Layout objects

Layout in Browse mode

Layout in Layout mode

Naming convention for each individual button. Used in the “Active” calculation

Hide the condition for each individual button.

Setup for each individual button

Setup for Active Calc

In Conclusion: Adding a new module

Utilizing this Navigation Bar can save many hours in the long run, especially if you make frequent updates or additions to your system(s).

If you’re struggling with implementing any of these concepts, or have any questions, please feel free to email support@kyologic.com where we can help you further!

The Session Table

What is it? Why should every file have it? How do you add it to your file?

What is it?

The Session Table is a utility table created for each individual instance of a user’s access to a file. It is created upon entry of the file (OnFirstsWindowOpen script trigger) and closed out upon shut down (OnLastWindowClose script trigger) of the file.

This is a sample of what a Session Table would look like in the Database Manager:

Why Should Every File Have it?

  • Helps to track Users Entry and Exit from File – It is critical that administrators know who is entering and how often and how long they are staying in the file. This can be useful for analytical purposes as well as for security. If you know that something malicious happened in a file during a specific period of time, you can go to the Session table to find the users who were in at that exact time.
  • Collects User metadata – Using FileMaker’s built-in calculation functions, you can acquire metadata about the user such as the type of device they are using, how they are accessing FileMaker (FileMaker Pro Advanced, FileMaker Go, WebDirect, etc.), the user’s IP address and many more pieces of information. Being aware of all of this can help the file administrators analyze what kind of user is spending time in their file in order to help make decisions.
  • Can be utilized to track user actions – If it is imperative that all user actions are tracked (an example being for HIPAA compliance) then the session table is where this can take place. You can create a login in the Session Table by using script triggers on fields and layouts.
  • Can be utilized for Creating Session-Based Tables – There may come a situation where you have to build a report or list that combines multiple data into one table multiple users can access this at the same time. As a result, there needs to be a way to distinguish which records are for which user session to make sure that one user does not see other users’ data. The Session table comes in use here. By utilizing the user’s specific session ID, you can determine which records are for that user’s list/report simply by including their session ID. This can be quite complicated, so we will have a blog in the future based solely on this topic.

How can you add it to your file?

After creating the Session table, you must make sure it is connected to your files GLOBAL, SYSTEM, or UTILITY table (this table should be the table in the file that contains all global fields).

At Kyo Logic, we like to name our global table the SYSTEM Table. (We also like to use three-letter codes as part of the names of our tables to make the table occurrences in the relationship graph easier to understand). And we connect SYSTEM (SYS__Sys) to SESSION (SYS_SES__AC) through this simple relationship:

Now that we have the infrastructure in place, we need to build the script to create the Session record.

The script that we have built, “Startup,” we have running OnFirstWindowOpen.

This script first creates the user’s unique SYSTEM record and then creates their unique Session record. It then sets all of the metadata fields that you would want to acquire. Finally, it sets the user’s Session ID to a SYSTEM global field so that the file can obtain the user’s session ID at any time.

We also include the “shutDown” script OnLastWindowClose to set the logout metadata field.

And, there you go. You now have a session table that you can use to track your user access into the file and so much more!

Welcome FileMaker 17!

FileMaker 17 Overview!

FileMaker 17 is finally here, and we are excited to review all the new features included! FileMaker releases new versions of the powerful database annually and this year may be the best release yet. In this post, we will review all the new features that have been released in FileMaker Pro Advanced, FileMaker Go, FileMaker Server, FileMaker Cloud, and FileMaker WebDirect. In separate articles, we will provide a more in-depth look at some of our favorite new features and a breakdown of the new licensing programs!

What’s New in FileMaker 17!

  • Layout Mode was redesigned for streamlined development
  • FileMaker now allows users to add default fields when you create new tables
  • FileMaker will now be able to handle multiple email attachments
  • FileMaker Data API is no longer a trail feature and supports scripts and uploading files to container fields
  • FileMaker Go will now support local notifications
  • Users can now drag and drop text, photos, and files between apps while using FileMaker Go!

Development

Group Object Selection

While developing in FileMaker you have had the ability to group together objects but when you needed to modify, reposition, or resize an individual object inside the group you would have to undo the groupings. With the Group Object Selection, you are able to select individual objects within a group and modify as needed.

Redesigned Layout Mode

FileMaker has redesigned layout mode for a more streamlined design environment. The Inspector, Fields tab and Objects tab will now be pinned inside the document window, so you will no longer lose them on other screens while working!

Default Fields

Most developers include a group of standard default fields in every application that is created, FileMaker has now added default fields to help streamline the process of creating new fields such as primary key, creation date, modification date, and who the record was created or modified by. Just add a new table within FileMaker and these fields will automatically be created. These fields can be customized or removed via an XML file.

Scripting Enhancements

FileMaker has added two new scripting enhancements to FileMaker 17. First, they have enhanced the Perform Script and Perform Script on Server script steps by adding the ability to specify which script should run by name. Second, They have added support for using variables in the input field to populate and retrieve text within a Show Custom Dialog script step.

Multiple Email Attachments

FileMaker has had the ability to send emails directly from your application for some time but up until now, users have been limited to only one attachment. In FileMaker 17 users will now have the ability to add multiple attachments when sending emails.

Copy and Paste Custom Menus

Save time while developing but reusing custom menus that you have created in other FileMaker apps. All you have to do is copy menu sets, menus, and menu items and paste them into your file!

FileMaker Data Migration Tool

Using the FileMaker Data Migration Tool developers will be able to cut the time it takes while importing large data sets in half. The new command-line tool will help when you update your deployed custom apps.

Deployment

FileMaker Server Admin Console

For easier administration of FileMaker applications, the FileMaker Server Admin Console was redesigned to provide a streamlined user interface. The Admin Console will feature a Dashboard page to easily monitor hosted apps, connected clients, and system statistics. Administrators will also receive notifications that will provide more detail on how to handle errors if they occur.

Work While Reconnecting

If a network connection to FileMaker Server is lost while you are working you will be able to continue working on files that do not depend on the host until the connection is restored.

Cloud

FileMaker Cloud will support all new features for FileMaker 17. Users will also have the ability to use the Comodo SSL certificate for 60-day free trails.

Mobility

Configure Local Notification

FileMaker Go will increase iBeacon technologies to include local notifications. Any iPad or iPhone that is using FileMaker Go that is running in the background will display local notifications such a meeting reminds, or when an iBeacon is near. Just set up scripts that will send local alerts based on info from your device!

Auto-Complete

Auto-Complete has been a great tool on the Desktop in FileMaker Pro but now this feature will be coming to FileMaker Go! Start typing a letter or two into a text field and a list of items that match what you are typing will appear!

Drag and Drop

FileMaker users will not have the ability to drag and drop text, photos, and files between apps on the iPad while running a minimum of iOS 11.

Integration

FileMaker Data API

FileMaker first introduced the FileMaker Data API as a trail in FileMaker Server 16 as an easy way to integrate your FileMaker data to other popular apps and we services using the industry standard REST API. In FileMaker 17 this will no longer be a trail and will include powerful new features including support for FileMaker Server scripts and the ability to upload files to container fields. FileMaker has also added more standardized API formats to make the FileMaker Data API easier to work with.

Security

Account Lockout

Security has been the main focus for FileMaker in the most recent releases. To continue strengthening security throughout the FileMaker Platform, users will now be temporarily locked out of accounts after failed login attempts. Users must wait 5 minutes before they can attempt to log back in.

To learn more about FileMaker 17 or incorporate these awesome new features in your FileMaker database today give Kyo Logic a call!

Introduction to FileMaker and SQL

Introduction to FileMaker and SQL

Are you looking for a way to take your FileMaker Database to the next level? Harnessing the power of SQL in FileMaker can help you streamline and easily access more of your data.

What is SQL and what are the benefits?

SQL is an abbreviation for structured query language and is a standardized programming language best used for managing a relational database. SQL also allows you to perform various operations on data and is used by developers to write data integration scripts and setting up and running analytical queries.

When using SQL in FileMaker you can there are many different benefits such as:

    • Quickly obtaining data for use in scripts
    • Versatility: Summarize, Join, Union, Find Within
    • Requires no persistent structures
    • Potentially very fast
    • Completely programmable

Well, this all sounds great but how do you get SQL to run in FileMaker?

With the latest versions of FileMaker, you can utilize the ExecuteSQL() function right within FileMaker which will allow you to perform select queries. SQL works well with Let functions and is often used to store data in global variables. Both simple or complex arguments can be entered into an SQL statement.

Additional FileMaker and SQL Recourses:
Conclusion

SQL is a great way to utilize your data in FileMaker. Whether writing simple or complex arguments you will be able to quickly use the ExecuteSQL() function in FileMaker to perform queries.

If you would like to harness the power of your data in FileMaker but do not want to do the heavy lifting contact us today.

Creating dashboards in FileMaker: a practical guide and free demo

Free FileMaker demo

Creating dashboards in FileMaker: a practical guide and free demo

Example files from Kyo Logic's dashboard webinar to help you plan your own FileMaker views.

You open FileMaker to find out which work needs attention today, then move between several screens to piece together the answer. A dashboard can bring the relevant measures into one view. Kyo Logic’s free FileMaker dashboard demo accompanies John Mathewson’s original dashboard webinar and gives you a resource to explore as you plan your own approach.

Key takeaways

  • A useful dashboard brings together the information your team needs to see.
  • Shared definitions help everyone understand what each key performance indicator means.
  • Charts, totals, and lists each offer a different way to understand your data.
  • The download includes example files you can explore for ideas for your own application.

About the FileMaker dashboard demo

This resource originated with Kyo Logic’s 2018 webinar on creating dashboards in FileMaker. The session covered approaches to dashboard design, implementation considerations, pivot tables and graphs, and establishing key performance indicators, or KPIs: measures used to track a specific business objective.

The demo gives you a way to explore those topics as you think about your own reporting needs. What belongs on your dashboard will depend on your data and what your team needs to see.

What would you like your dashboard to show?

Before building, we recommend thinking about what you want to measure or make visible. That might be the jobs due this week, orders that need follow-up, or work waiting for the next step.

A good starting point is something your team already looks up during the day. What information would make that easier to see in one place?

For a production manager, an overall count may be less useful than a list of the jobs that need intervention. An account manager may need the customer and promised follow-up date beside the total. Those day-to-day needs can help you decide what belongs in each view.

Helping everyone read the numbers the same way

It helps to agree on what a measure means before building the calculation. If your dashboard says a job is late, which date is it comparing? Does a completed job still count? What happens when someone changes the promised date?

Writing down the definition in plain language, including the period you’re measuring and which records belong in it, gives your team a chance to work through different interpretations before they become confusing numbers on a screen.

How often the information updates matters, too. A screen checked at the start of a shift may have different requirements from one used throughout the day. When your team knows how current the figures are, they can judge whether those figures are useful for the decision at hand.

Different ways to make your data easier to understand

A total can answer how many. A chart can help compare periods or categories. A list can show which records need action.

Pivot tables, which group data across categories so you can compare totals, were one of the topics in the original webinar. That kind of view can be useful when you want to see how a measure varies across teams or periods.

For a first version, we would recommend a few measures that are useful to the person reading them. Other information can have its own view if it serves a different role. That helps the dashboard stay easy to scan.

Ideas for your own FileMaker application

The ZIP includes two FileMaker example files, PivotTablesAndDrillingData18.fmp12 and TrendLines18.fmp12, plus AccessInformation.txt with the access details. An untouched copy of the examples will give you something to refer back to as you explore them in a test environment.

As you explore, you may spot ideas that would work in your own application. It helps to think about which of your records would supply the data and what you would want the calculation to show. That connects what you see in the demo with something useful for your team.

Once you have a first version, comparing its figures with records your team can check directly will help you spot calculation problems. That includes a case where there are no matching records. Feedback from someone who will use the dashboard can help, too: what do they understand from the screen, and what would they do next? Their answers can show you where a label, calculation, or layout needs a little more work.

Frequently asked questions

Is this an add-on I can drag onto a layout?

Not quite. This download contains example FileMaker files from the dashboard webinar. You can open them separately to explore the techniques before working out how they might fit your own application.

Can the demo give me ideas for my own dashboard?

Yes! You can explore the examples and think about where similar views would help your team. We recommend starting with what you want to measure or make visible, then looking at how those ideas could work with your data.

Should every department use the same dashboard?

Not necessarily. A production manager may need to see jobs waiting for attention, while an account manager needs upcoming customer follow-ups. We would recommend views that suit each team, with shared definitions for any measures they have in common.

What should I do if the dashboard total disagrees with a report?

We recommend checking whether both views include the same records, date range, and status rules first. A dashboard counting all open jobs will differ from a report showing only jobs due this week. Once those definitions line up, it is easier to see whether a calculation needs adjusting.

Want a hand with your dashboard?

The free FileMaker dashboard demo gives you examples to explore as you work out what would be useful in your own application. If you would like help defining the measures or building a view for your team, talk with Kyo Logic about data visualization. We build custom Claris FileMaker and manufacturing software for teams in New England and beyond.

Get the FileMaker dashboard demo

Tell us where to send your free dashboard demo download link.

Welcome to the family FileMaker 16!

Welcome FileMaker 16, the newest version of FileMaker is here!  The new release will help make creating custom apps with FileMaker even easier! Let’s walk through all the new features of FileMaker Pro 16, FileMaker Go 16, and FileMaker Server 16. Also, join us May 22nd for a live FileMaker 16 Demo!

New features in the FileMaker 16 Platform:

Mobility:

Animations & Transitions, enhanced signature capture, region-monitoring script, custom paper sizes

Development:

Layout Objects windows, Cards, pdf support in FileMaker Server and FileMaker Webdirect, new Windows OS interface, copy/paste value list, variables in FileMaker data source references, enhanced Data Viewer

 Integration:

Enhanced cURL options, JSON functions, FileMaker Data API, Tableau Web Data Connector for FileMaker, external script steps

 Security:

OAuth 2.0 support for accounts, clickable security lock icons, field-level text encryption 

Scalability:

FileMaker WebDirect scalability

FileMaker 16 Live Demo:

Join us for an exclusive event showcasing the new FileMaker 16 Platform. Discover how the new FileMaker Platform lets you create custom apps that work for your team on iPad, iPhone, Windows, Mac, and the web. See how the new features improve the mobility, development, integration, security, and scalability of your custom apps. Join us for this exciting live event and bring a laptop to try FileMaker 16 for yourself!

Date: May 22nd, 2017
Time: 12 pm to 2 pm
Location: Kyo Logic office, 37 North Ave, Suite 105 Norwalk, CT 06851
Register Here

Need to upgrade to FileMaker 16? Kyo Logic is a certified reseller and can help you upgrade or purchase FileMaker licenses! Call us at 203.221.3033!

Learn More About FileMaker Cloud Hosting!

FileMaker Cloud

Are you looking for a better way to host your FileMaker solution? Do you spend hours trying to manage your current hosting software? Would you like an easy way to host and manage your FileMaker database so you can share all data with all users? Have you heard of FileMaker Cloud but not sure what it is?

If that’s a yes, then join Kyo Logic and Ronnie Rios at this months CT FileMaker Developers Group! Ronnie is the Senior Consulting Engineer at FileMaker and all around FileMaker Guru! On February 15th at 10 am Ronnie will show us the ins and outs of FileMakers newest product, FileMaker Cloud. FileMaker Cloud provides secure and reliable access to all your FileMaker custom apps without the knowledge and admin hassle of traditional hosting!

If you would like to learn more about FileMaker cloud hosting join us February 15th at 10 am! For more information or to register join our meetup, http://meetu.ps/35D9wN or call 203-221-3033!