Search the Community
Showing results for tags 'tip'.
Found 3 results
[Content moved by OP from "FileMaker 14 Script Workspace" forum] Man alive, how long have FM developers pined for something like this!!! One thing about the Script Workspace is that it continues to reveal its secrets the more you work with it. Here are a few tips that make scripting faster and more fun to boot: 1. How do you insert a Comment line? The obvious way, of course, is to type a hash (aka "number/pound/octothorp") sign (simultaneous right pinky on the Shift key — left middle finger on the 3, or some equivalent thereof on other keyboard layouts), then type your comment. But try this instead: Hit Space, followed by Return, then comment away. (Space drops down a list of all available steps, with # at the top, pre-selected as the default.) If you're at all dexterously challenged, this might be the easier way, and is my favorite discovery so far! 2. It's not just the obvious initialisms that are supported (GTRR, PSOS, etc.), but every single command can be entered by typing its initials: afb gets you "Allow Formatting Bar," sec gets you "Set Error Capture," and so on down the list. 3. You know that you want to insert some sort of window adjustment step, but can't remember which one (Adjust Window? Move/Resize Window? Make Window Go Away?) or the exact name of the command? Type "window" — even just "w" will do — and you'll get the list of script steps with "window" in them as autocomplete suggestions. You don't have to type from that actual start of the desired step for autocomplete to work; it'll work with any word in the command. 4. It's a bit hidden, but you can edit the syntax-highlighting colors if you don't like the defaults. Find it under "View > Syntax Coloring…" when you're in the Script Workspace. That's right, now you can kill hours each day tweaking the colors to your heart's content. It's an OCD dream come true! 5. While we've always been able to run a script directly from the Manage Scripts window — or was it from the Edit Script window? how fast I forget — it's now possible to simultaneously open the script debugger and run a selected script all via a single button in the Script Workspace window. 6. Scripts remain backward and forward compatible with previous versions. Specifically, blank lines added in the FM14 Script Workspace simply become empty comment lines when opened in 13 or earlier. (And while I'm at it, hooray for blanks lines!) But, perhaps even cooler, all those empty comment lines you've previously added to your scripts to space things out are displayed as blank lines when opened in 14! BTW, I see that Martha Zinc has posted a nice intro video on the new Script Workspace among the "Unboxing FileMaker 14" videos over at the Soliant site. Check it out! Got other tips you've discovered? Post 'em here. Mark
You can also style a single segment button bar as a button that does nothing with a calculation for the label, then style it to match a field or text on the layout and use it for layout level calculations with out the need to add a calculation to the schema.