Jump to content
  • entries
    326
  • comment
    1
  • views
    66,307

Entries in this blog

Ordering Elements within JSON Objects

Introduction If you’ve generated JSON objects via FileMaker, you’re likely aware of the disparity between the order in which you specify the elements, and the order in which they subsequently appear (i.e., alphabetized by key name). As I wrote two years ago (in Thinking About JSON, Part 2)… Both JSONSetElement and JSONFormatElements will automatically alphabetize… Continue reading Ordering Elements within JSON Objects View the full article

Kevin Frank

Kevin Frank

GetFieldName Revisited

Long time readers of this blog will be familiar with the following scenario — An ExecuteSQL code example is given, e.g., ExecuteSQL ( " SELECT SUM ( net_amount ) FROM cc_transactions WHERE batch_date = ? AND batch_region = ? AND card_type = ? " ; "" ; "" ; $theDate ; $theRegion ; $theCard )… Continue reading GetFieldName Revisited View the full article

Kevin Frank

Kevin Frank

GetFieldName Revisited

Long time readers of this blog will be familiar with the following scenario — An ExecuteSQL expression is given, e.g., ExecuteSQL ( " SELECT SUM ( net_amount ) FROM cc_transactions WHERE batch_date = ? AND batch_region = ? AND card_type = ? " ; "" ; "" ; $theDate ; $theRegion ; $theCard ) …followed… Continue reading GetFieldName Revisited View the full article

Kevin Frank

Kevin Frank

Virtual Portal, part 2

Demo file: virtual-portal-v2.zip (requires FM 18 or later) This is a quick follow up to the Virtual Portal article I posted the other day. As you may recall, the objective was to use virtual list to display disparate entities in a portal… …via an array like this… …which was auto-generated via a Hide Object calculation… Continue reading Virtual Portal, part 2 View the full article

Kevin Frank

Kevin Frank

Virtual Portal, part 2

[Note: several hours after posting this article I realized the “Hide Object” calc could be streamlined. Screen shot and demo have been updated to reflect this.] Demo file: virtual-portal-v2b.zip (requires FM 18 or later) This is a quick follow up to the Virtual Portal article I posted the other day. As you may recall, the… Continue reading Virtual Portal, part 2 View the full article

Kevin Frank

Kevin Frank

Virtual Portal

Demo file: virtual-portal.zip This is a follow-up to last month’s article on virtual list, and this time we’re going to explore a way to use virtual list in a portal. Imagine you have built a system where a Company can be a parent of a Mill, Refinery, Estate, or another Company. Each of these entities… Continue reading Virtual Portal View the full article

Kevin Frank

Kevin Frank

Virtual Portal

Demo file: virtual-portal-v1b.zip This is a follow-up to last month’s article on virtual list, and this time we’re going to explore a way to use virtual list in a portal. Imagine you have built a system where a Company can be a parent of a Mill, Refinery, Estate, or another Company. Each of these entities… Continue reading Virtual Portal View the full article

Kevin Frank

Kevin Frank

Virtual List Simplified

Demo file: virtual-list-simplified.zip Note 1: The example in today’s article and demo file is intentionally very basic. Note 2: The demo is self-populating to keep the data current, so the values you see in the screen shots will not exactly match those you encounter in the demo. Recently I had the pleasure of discussing virtual… Continue reading Virtual List Simplified View the full article

Kevin Frank

Kevin Frank

Virtual List Simplified

Demo file: virtual-list-simplified.zip Note 1: The example in today’s article/demo is intentionally very basic. Note 2: The demo is self-populating to keep the data current, so the values you see in the screen shots will not exactly match those you encounter in the demo. Recently I had the pleasure of discussing virtual list with Paul… Continue reading Virtual List Simplified View the full article

Kevin Frank

Kevin Frank

Table Of Contents for FileMaker Hacks

As 2019 draws to a close, I am mildly astonished to note that FileMaker Hacks is now nine years old. As promised in my recent conversation with Jeremy Brown, and in response to a number of  reader requests, here, for the first time, is a comprehensive table of contents (as of December 2019). While some… Continue reading Table Of Contents for FileMaker Hacks View the full article

Kevin Frank

Kevin Frank

Table Of Contents for FileMaker Hacks

As 2019 draws to a close, I am mildly astonished to note that FileMaker Hacks is now nine years old. As promised in my recent conversation with Jeremy Brown, and in response to a number of  reader requests, here, for the first time, is a comprehensive table of contents. While some of these articles have… Continue reading Table Of Contents for FileMaker Hacks View the full article

Kevin Frank

Kevin Frank

2-Column Magic Value Lists, part 2

Disclaimer: the techniques shown in this article are provided on an as-is basis. Use with appropriate caution and at your own risk. Introduction This is a quick follow-up to last month’s article on 2-Column Magic Value Lists, and, to avoid repetition, will assume the reader is familiar with that material. A colleague pointed out that… Continue reading 2-Column Magic Value Lists, part 2 View the full article

Kevin Frank

Kevin Frank

2-Column Magic Value Lists, part 2

Disclaimer: the techniques shown in this article are provided on an as-is basis. Use with appropriate caution and at your own risk. Introduction This is a quick follow-up to last month’s article on 2-Column Magic Value Lists, and, to avoid repetition, will assume the reader is familiar with that material. A colleague pointed out that… Continue reading 2-Column Magic Value Lists, part 2 View the full article

Kevin Frank

Kevin Frank

2-Column Magic Value Lists

Disclaimer: the techniques shown in this article are provided on an as-is basis. Use with appropriate caution and at your own risk. Acknowledgements: today’s article would not have been written without the inspiration provided by Bruce Robertson, John Ahn (FM 12 ExecuteSQL Unconference Session), Andries Heylen (Magic Value Lists), Marcelo Piñeyro (How to Extend FileMaker… Continue reading 2-Column Magic Value Lists View the full article

Kevin Frank

Kevin Frank

2-Column Magic Value Lists

Disclaimer: the techniques shown in this article are provided on an as-is basis. Use with appropriate caution and at your own risk. Acknowledgements: today’s article would not have been written without the inspiration provided by Bruce Robertson, John Ahn (FM 12 ExecuteSQL Unconference Session), Andries Heylen (Magic Value Lists), Marcel Pinyero (How to Extend FileMaker… Continue reading 2-Column Magic Value Lists View the full article

Kevin Frank

Kevin Frank

FM18: JSON.InsertArrayElement

Disclaimer: the technique shown in this article is provided on an as-is basis. Use with appropriate caution and at your own risk. Demo file: JSON-Array-Custom-Functions.zip (requires FM 18 or later) Have you ever noticed that FileMaker does not provide a JSON function to insert a new element into an existing array? For example, given this… Continue reading FM18: JSON.InsertArrayElement View the full article

Kevin Frank

Kevin Frank

FM18: JSON.UpdateArrayElement

Disclaimer: the technique shown in this article is an attempt to work around an annoyance that can crop up when using FileMaker’s native JSONSetElement function. Use with appropriate caution and at your own risk. Acknowledgement: I owe a debt of gratitude to Paul Jansen for many illuminating JSON-related discussions over the last year or so.… Continue reading FM18: JSON.UpdateArrayElement View the full article

Kevin Frank

Kevin Frank

Fixed in 18: List + GetNthRecord Bug

Recently I was working in FM 17 and ran into an unexpected bug. My use case was more complex than this, but the following bare bones demo illustrates the problem. Demo file: List+GetNthRecordBug.zip Given two tables joined via a standard primary-key-to-foreign-key equijoin relationship… This works as expected. You might think you could get rid of… Continue reading Fixed in 18: List + GetNthRecord Bug View the full article

Kevin Frank

Kevin Frank

New in FM 18: While, part 2

Today we’re going to dig a little deeper into the new-in-18 While function, and to avoid repetition, will assume readers are familiar with last month’s article on SetRecursion and While. We’ll examine some new examples ranging from basic to advanced, talk about the circumstances under which While can use variables previously declared via Let, and […] View the full article

Kevin Frank

Kevin Frank

New in FM 18: SetRecursion and While

Author’s note: Inevitable comparisons will be drawn between the new While function and the venerable CustomList custom function, which I wrote about at length several years ago. Preliminary testing indicates that CustomList is faster under certain circumstances and While is faster under others. In my opinion, both of them belong in your developer tool kit. […] View the full article

Kevin Frank

Kevin Frank

Magic Portals

Today we’re going to look at a design pattern I’ve recently been using to accommodate a client requirement: to be able to view and edit a parent, all related children, and all related grandchildren via a single “flattened” interface. Demo file: magic-portals.zip (requires FM 16 or later) Some Background Information Invoices received from vendors are […] View the full article

Kevin Frank

Kevin Frank

Bill of Materials

Editor’s note: Geoff Gerhard of Creative Solutions is one of those “quiet” developers who has been helpfully sharing his knowledge in online FileMaker forums for more than 20 years. I personally have benefited enormously from his expertise, and am pleased to feature his first appearance as a guest author here on FileMaker Hacks. Demo file: […] View the full article

Kevin Frank

Kevin Frank

Disabling New Window

Today I want to talk about a potential problem lurking in a small percentage of FileMaker solutions, and discuss various options for mitigating it. As you may know, there are three ways to display a new window… Via the New Window script step Via the Go To Related Record script step Manually via Window > […] View the full article

Kevin Frank

Kevin Frank

Creating and Using Invisible Window IDs

Editor’s note: I first became aware of Paul Jansen when I licensed his FMTools in the late 1990s, and I finally had the pleasure of meeting him last June at dotFMP after 20 years of online and voice communication. It’s an honor and a privilege to welcome him to FileMaker Hacks as a guest author. […] View the full article

Kevin Frank

Kevin Frank

Tips ’n’ Tricks, part 3

It’s been a few years since we last had a tips ‘n’ tricks article here at FileMaker Hacks… long enough for some new items to accumulate in the old developer bag of tricks. (If you like this sort of thing, you may also want to check out part 1 and part 2.) Some of these […] View the full article

Kevin Frank

Kevin Frank

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.