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.

The 80/20 rule - which scripts do you use most

Featured Replies

  • Newbies

Hi,

 

In my experience, most people use about 20% of any language 80% of the time. Scanning through the long list of script commands in FileMaker (approx. 155 of them), I'm wondering which 20% (let's call it 30 commands) do people use most?

 

This will give me an idea where to focus my reading. 

 

Many thanks,

MG

Roughly in order of what steps I use the most:

  1. Comment
  2. Set Error Capture [ on ]
  3. Set Field[]
  4. Set Variable[]
  5. Freeze Window
  6. Enter Find Mode
  7. Perform Find[]
  8. If, EndIf, Else, ElseIf
  9. Sort
  10. Commit record/request
  11. Close File
  12. Show Custom Dialog
  13. Exit Script
  14. Loop, Exit Loop If
  15. Refresh Object
  16. Go To Record/Request/Page[], 
  17. Go To Layout[]
  18. New Record/Request
  19. Delete Record/Request
  20. Show All Records
  21. Show Omitted
  22. Omit[]
  23. Allow User Abort [ off ]
  24. Go To Related Record
  25. Revert Record/Request
  26. Go To Portal Row
  27. Import/Export
  28. Refresh Window
  29. Adjust Window [ resize to fit ]
  30. Save Records as PDF/Save Records as Excel

For myself, I'd start with LaRetta's list, lose:

  • Close File
  • Show All Records
  • Go To Related Record
  • Go To Portal Row
  • Adjust Window

 

Add:

  • Set Error Capture [Off]
  • Allow User Abort [On]
  • Perform Script
  • Go To Field
  • Insert From URL

Excellent topic, MoxieGirl, and excellent list, LaRetta!  (And dare I continue with "excellent addendum, Jeremy"?)

 

Like Jeremy, I'd probably lose Close File and Show All Records from LaRetta's list and add Perform Script. I'll bet that LaRetta left that last one off quite inadvertently! Re Show All Records, more and more my thinking is that a FileMaker UI should generally nudge users away from expecting to view all records and toward always working with a tidy, purpose-specific found set. Like Amazon's website, for example, where you start with nothing (other than a few targeted ads) and search for exactly what you want.

 

Jeremy, may I inquire why GTRR does not make your list? To me, it's the beez kneez and an important work-horse script step.

 

Lastly, I scanned LaRetta's list curious as to which "new-to-13" step(s) would make her list and was pleased to see Refresh Object. What a "refreshing" addition that one is to our toolset!

 

Mark

Jeremy was right to leave off Show All Records - that was 'old' thinking.  I was also surprised about his omitting GTRR.  Leaving off Perform Script was an oversight.  I only added Adjust Window (not used as much any more) and Go To Portal Row because I was running out of steps that I would use regularly.  Refresh Object ROCKS.

I find that my relationship graphs don't have as many of the right relationships to support GTRR operations any more as ExecuteSQL makes so much information accessible via other means. GTRR also has unfortunate error behavior; switching layouts and performing a find matches my mental model better.

OK, two questions. First, why is "Close File" an often-used command?

And, why is "show all records" old-school thinking? I do this before I do searches, just to make sure I'm searching against the entire table.

Close File isn't.  It was my mistake.

 

Show All Records is only used by Developer when working.  You do not need to issue a Show All Records before a find ... FM always searches all records in the table (unless you are Constraining). :-)


The reason it isn't used often is because we rarely want to show all records but rather a sub-set.  

Interesting! I'm not sure why I thought that was necessary.

I use show custom dialog really just for testing purposes. For production, I find Troi's dialog plug-in a lot more powerful -- although yesterday I discovered FM's dialog plug-in, which seems to be even more powerful, although sadly they say they're no longer updating it.

  • Author
  • Newbies

Thank you everyone for your input, and especially LaRetta and jabante for the core list.

 

I have a nearly 300 page PDF detailing every Script, didn't really fancy reading the whole thing. Now I can focus on the top 30 (ish) and do a quick scan of the others so I know they exist. 

 

MG

Create an account or sign in to comment

Important Information

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

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.