Self-Starters: A Refinement of a widget

In yesterday’s (6/28) office hours I explored this idea of a self-booting or self-starting widget. You can find the discussion here. In this post, I’ll talk through it.

Stuck in my ways

I’m a fan of scripted processes in FileMaker. We use scripts to do a lot of things: navigation, processing data, etc, but we also use the calc engine. To me it’s a bit confusing. In some cases I validate using a script; in other cases I might validate using the validation on a field.

So I try to rely on scripts to do all the work, even updating fields that show a result of some calculation.

This applies to the web viewer and loading code & data into it.

In all my courses and work I do for clients, I use a script to load the web viewer. (well, not all client work). Usually it’s okay: coming to a layout triggers a script to load the dashboard or data table or what ever.

This works for most of what I need to do.

Remembering what the web viewer is

The web viewer is an object on the layout that renders something or returns a calculated result. I can’t think of another object on a layout that requires a script to make it do its thing. An object on a layout really should render itself.

SO I guess that means that a web viewer should render itself: it should load code into it and fetch data.

Self-booting widgets

I need to evolve what I’m doing to include widgets that boot themselves. And we discussed that in yesterday’s meeting. You can see the result here in this video. As I navigate to records the web viewer automatically loads its code and the fetches the data.

Use as UI.mp4

INdeed, when I navigate to another layout and come back to this one, the WV does its thing to render what’s necessary.

Benefits

IN yesterday’s Office Hours, we talked about its benefits.

You can listen to the recording to find those.

But what benefits do you see or envision? Let us know in the comments below.


Moving on

I think I’ll make the switch to making some widgets self-booting. And I’ll post directions or a course on how to do so so it’s easy to take what you’re already doing and make it work automatically.

Let me know also if you’d like to switch your widgets to self-booting.