Learning Claris FileMaker
317.3K views | +9 today
Follow
Learning Claris FileMaker
Give life to your data with an easy to use database ... I'll share cool FileMaker stuff for you, avoiding the programming part of it as much as I can.                        #WorkplaceInnovationPlatform #Claris
Your new post is loading...
Your new post is loading...
Scooped by Didier Daglinckx
Scoop.it!

Search as You Type Using ExecuteSQL | FileMaker Development Strategy

Search as You Type Using ExecuteSQL | FileMaker Development Strategy | Learning Claris FileMaker | Scoop.it
FileMaker introduced a very different kind of capability with the ExecuteSQL function.

 

First introduced in FileMaker 12, it allows you to perform “select” queries against your FileMaker data, as opposed to the more familiar “Find” functionality available in FileMaker.

SQL (Structured Query Language) is a standard used with other, more traditional, database servers. Using SQL, SELECTS on indexed data is blazing fast and efficient.

It allows you to construct relationships in SQL that do not necessarily exist in your application otherwise.

There have been many useful techniques that have been demonstrated since its introduction.

 

This post will detail and explain yet another technique of the ExecuteSQL function - Search as You Type.

No comment yet.
Scooped by Didier Daglinckx
Scoop.it!

How to Use the ExecuteSQL Script Step in FileMaker

How to Use the ExecuteSQL Script Step in FileMaker | Learning Claris FileMaker | Scoop.it
When scripting in FileMaker I pay particular attention to the following:

Code clarity: make sure your code is humanly readable; clean and documented;
Reuse elements: declare a variable once, use it whenever you need it;
Keep your code compact: if you don't need it, don't put it in or leave it in;
Generate a sub-script if you have to use the same set of lines in multiple places;
Speed: make it as fast as possible; and
Error handling: make sure errors are caught and appropriately handled.
You don't have to adhere to all of the above requirements, but your process will work better if you do. Recently I had a situation where speed was not sufficient for the process I was working on so I had to rethink the approach.
No comment yet.
Scooped by Didier Daglinckx
Scoop.it!

Query Builder - Modular FileMaker

Query Builder - Modular FileMaker | Learning Claris FileMaker | Scoop.it
This module provides a simple utility for writing and troubleshooting SQL queries, including abstracting field and table names, for use with FileMaker’s ExecuteSQL function.


Use this module if you prefer typing out your query manually instead of using a wizard (like the excellent SeedCode SQL Explorer) but would like to make the troubleshooting and field/table name abstraction process faster.

There’s also a simple query formatter to help you keep your queries readable.

No comment yet.
Scooped by Didier Daglinckx
Scoop.it!

SQL Picker Window Module For FileMaker | CoreSolutions Software Inc.

SQL Picker Window Module For FileMaker | CoreSolutions Software Inc. | Learning Claris FileMaker | Scoop.it
This module provides a FileMaker Pro developer with the layout structure, schema and scripts needed to make a generic but portable picker window.  

 

I use this module as a way to assign a value to foreign key fields in my systems.  

This module makes use of a virtual list table with calculated repeating fields, Execute SQL, and a popup modal window.  

The popup window will be sortable and searchable, and as long as you’re comfortable with FileMaker’s ExecuteSQL function, then you’ll find this a breeze to set up and use.

 

Read the details on CoreSolutions blog

No comment yet.
Scooped by Didier Daglinckx
Scoop.it!

FileMaker/SQL Portal Filter + Dynamic Sort

FileMaker/SQL Portal Filter + Dynamic Sort | Learning Claris FileMaker | Scoop.it

Editor’s note:  (FileMakerhacks blog)

 

Today I’m pleased to present a guest article and accompanying demo file written by Joel Englander on using ExecuteSQL + a global multi-line key as an alternative to FileMaker’s built-in portal filtering mechanism, with dynamic portal sorting included as an added bonus.

No comment yet.
Scooped by Didier Daglinckx
Scoop.it!

Building a Dynamic and Robust FileMaker System | YouTube (4:46)

Building A Dynamic And Robust FileMaker System

Have you ever inherited a system built by someone else, changed a field’s name and everything stopped working?

 

The issue, hardcoded names used in indirection, makes the system fragile. FileMaker provides developers many methods to add flexibility using indirection.

However when these instances of indirection are not treated properly they will raise all sorts of problems.

In this article we will discuss good practices regarding indirection that will help you build a dynamic and robust FileMaker system.

 

 

In this video we will discuss good practice regarding indirection that will help you build a dynamic yet robust FileMaker system by looking at a particular common scenario: using ExecuteSQL to grab data from a FileMaker system.

Didier Daglinckx's insight:

Do not forget to read the related blog post : https://dbservices.com/articles/building-a-dynamic-robust-filemaker-system/

No comment yet.
Scooped by Didier Daglinckx
Scoop.it!

FMPug Without Borders | Execute SQL with Todd Dignan | FileMaker - YouTube (39'29")

Learn the basics – and some great tips – of ExecuteSQL :

- Using Let statements 

 

- Basic syntax 

 

- Which is faster:  ExecuteSQL or FileMaker search? 

 

- What makes ExecuteSQL massively slower? 

 

- Debugging the question mark you get with an error 

 

- Which custom functions to use to improve coding time with ExecuteSQL

 

 - Sorting, complex finds, and more 

Didier Daglinckx's insight:

Thanks to Don Clark from FileMaker Pro gurus

No comment yet.