Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

FMSDIFM: take your FileMaker solutions to a new level with WAN connections

Featured Replies

Hi,

I just posted a new entry on 1-more-thing blog, presenting a 'revolutionary' technique allowed by FileMaker 12.

It completely changes my life as a developer, and makes it possible to create very efficient online solutions using FileMaker Pro/Go.

It's all explained in this video.

Great stuff Fabrice! Currently running a cue service on the server but not for instant things as such. Definitely has me rethinking some stuff.

Thanks for sharing!

  • Author

My pleasure. (was sure you'd like it ;))

That's a great technique. I'm working on a solution now that requires reports to be generated by scripts, and this could be an ideal way to reduce the processing time of the reports.

The same thing could be done pre-FM12 using a web viewer. There is a working sample file here: http://fmforums.com/forum/topic/82704-server-side-schedules-globals/#entry383783

  • Author

It could, and a long time before that with URL plugins, but it required a refresh window on FileMaker Go.

But what's more, FileMaker Server was not as powerful as it is now: 64bits (and consequently support of a lot of RAM) and 200 web connections are key factors to this technique viability.

For your report issue, it can help to create records containing only the required information so they are faster to sort and so on, but it's more the kind of things that need to run on the client side, because it has to do with display, printing, pdf stuff...

In combination with a plug-in like ScriptMaster, if can indeed produce a pdf report for you.

Liking the sound of this a lot as it sits well with some of the ScriptMaster stuff I do with PDF, looking forward to getting the two things together.

Well done Fabrice.

I haven't implemented this method yet, but here are my notes on how I plan to do it...

  • each script that want's to use this setup needs to have two parts to it: client side and server side. The client side section is run by default. The server side section is run with a param: "is_ServerSide".
  • client-side control script

    • this script would open a new window, go to a ServerScripts layout, create a record, set script name, parameter, date/time field values, then commit the record record
    • modify window name to include the new recordID (so the window name is unique)
    • then it would call the server-side control script with a param of the current records ID.

      • in FM12 this can be done with insertURL
      • could always be done with a plug-in, but I don't like that requirement
      • setting a web-viewer is also always an option, and is nice because it doesn't require waiting for the server-side script to finish running

      [*]alternativly, it could run the server-side script on the client, under certain situations

      • conditions to do this:

        [*]would need a plug-in that can call a script by name

      [*]optionally wait for server-side script to complete? (by testing if timeFinished field contains a value)

    • file is not hosted
    • debugging mode is on

  • should test this via an onTimerScript on the unique window opened by this script - this allows the script to run in the background

    • the first test should be done without using the onTimerScript

      • and with a pre-defined wait period?

    [*]what should it do when it's complete?

  • this script is run client-side, so it can only call a user-defined script if a plug-in is used - which I don't want to have to be a requirement
  • show message to the user? This could be user-defined (by parameters to this script)

  • params:

    • ServerScriptId: id of record that was created with script name to run, script parameter, etc.

    [*]go to ServerScripts layout, find specified record id

    [*]call script with param, as specified by record contents

    [*]set script return result to field in that same record, set timeFinished field

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.