January 5, 201511 yr 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
January 5, 201511 yr Roughly in order of what steps I use the most: Comment Set Error Capture [ on ] Set Field[] Set Variable[] Freeze Window Enter Find Mode Perform Find[] If, EndIf, Else, ElseIf Sort Commit record/request Close File Show Custom Dialog Exit Script Loop, Exit Loop If Refresh Object Go To Record/Request/Page[], Go To Layout[] New Record/Request Delete Record/Request Show All Records Show Omitted Omit[] Allow User Abort [ off ] Go To Related Record Revert Record/Request Go To Portal Row Import/Export Refresh Window Adjust Window [ resize to fit ] Save Records as PDF/Save Records as Excel
January 5, 201511 yr 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
January 5, 201511 yr 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
January 5, 201511 yr 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.
January 5, 201511 yr 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.
January 6, 201511 yr 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.
January 6, 201511 yr 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.
January 6, 201511 yr 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.
January 6, 201511 yr 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