Card Window Progress Bars

One of the most wonderful things about FileMaker 16's release were Card Windows. While we've been able to create new windows for quite some time, the number of controls afforded those windows was limited. With card windows we can now present those windows within the main window. This provides for any other context than the current context.

You can show related records or completely unrelated records. The great thing about the card window is, like all windows, it can use any of the 3 possible views FileMaker provides. Need a list? Use List View. Need a form? Use Form View.

And, once the window is shown, it can present any number of records. In particular, it can show a related set of data which needs to be processed. The only thing missing is a progress bar to indicate the status of the processing of said records.

No problem, we'll just build the feature directly into our card window. That's what this video is all about. Using a card window in order to process a related set of records.

AttachmentSize
CardWindowProgressBars.zip2.2 MB

Comments

When you want the progress bar to show up when processing less than 100 records the whole progress bar is already full when opening it and processing the first record.
It seems that the int function does this. How to adapt the script and the calculated value for less than 100 records please :-)

Hi Mat,

Nice video!

I set the Pause Resume script step to 1/100th of a second. (0,01)
Still works, But much faster!

Regards,
Andy

Excelent way to implement the card window

Unfortunately card window is not cross plataform and this will not work on web direct,
I opened a topic for Filemaker to bring this option to webdirect if you find or your subscribers interesting.

Since this is an option for UI I think everyone is interested in being cross plattform please vote up.

Here is the link:
https://community.filemaker.com/ideas/2523

Thank you so much

Thanks Matt for another great video

Craig

I loved the idea of using conditional formatting to control the display of the progress bar, but took it a step further in my version (https://github.com/chivalry/fm-progress). It uses two button bars and a text object for the progress and the feedback message and a module folder of scripts (although if one wanted to, one could just use the three private scripts, one for initializing, one for updating and one for closing the progress bar window).

Thanks
Chuck

Thanks once again for a superb tutorial!

Although your downloaded file worked as demonstrated, using a simpler embodiment which did not involve the use of a related table or card window, where all I wanted to show was a progress bar develop as one moved around within the found set, I found use of the Integer function in the repeating field calculation failed to produce the desired result, always progressing to 100% of the bar once the 100th record was selected despite there being many more records in the found set.

Substituting your formula for

If ( Get ( RecordNumber ) > Get ( FoundCount ) / 100 * Get ( CalculationRepetitionNumber )-1 ; True ; False )

where the "Int" function was omitted, did the trick, for reasons I am not totally sure of since, logically, it should not have mattered.

Regards, Paul