Under this situation if I want to 'edit' the Report window I have to;
- Go to the Main window
- Turn on Reports Menu (custom)
- Turn on Debugger
- Run the script that creates the report
- Open the Script window
- Make the changes
- Save the changes
- Close debug
- Go back to Main window
- Click the report
.... just to see the affect of what I have changed.
If I need to make more changes, I MUST go back to the step #1 and repeat.
Sure, it works. But, it is hard to believe that FM wants me to go through all this just to edit a layout??
I looked for a 'work around' keyboard shortcut but don't see any.
I'm not sure what workflow your second post describes, because first you're talking of editing the Report window, then about editing a script ...
But be aware that you can leave the Script Workspace open and have a given script remain in focus, and that you can open an additional database window and have it show the report layout, both of which will let you make changes on the script and the layout, respectively, save them, then run the script again to see what *effect* those changes have.
Also, while you are debugging, why not add a button to the layout that can trigger the script (which button could even be hidden if the current privilege set isn't "[Full Access]"), so you can save the step of switching menu sets.
As to your original problem: try first selecting the window you want the following script steps to work on.
This is result of changing to SDI, now each window have its menu bar.
The point is "From the Report window I am unable to access any menus or scripts.
Consequently, I can not easily modify the layout without imposing the report layout in the MAIN window and then editing it and then running the script that creates the report to see any changes made to the layout or the script.
Like I said, FM 15 doesn't do this. Neither does FM 16 for Mac.
Does anyone else find this 'multi step' to something that formerly was simple and straight forward weird?
Like I show in the original post, the Active Members Report window does not have a menu.
The problem with adding the Main window menu to Report is that it allows for complications and errors to develop when the originating window is NOT the Main window.
Doesn't the Mac have an SDI? It works as expected.
I don't know whether Apple use the MS term "SDI", anyway there is difference on OSs. Windows doesn't have menu bar on desktop, so each SDI window have its own menu bar. Then the step "Show/Hide menu bar" changed behavior.
Your problem could be one of reasons why FMI didn't use SDI
Hmm, after writing this, I realized that "This script step is not supported in macOS". So should the script step show/hide "all" menu bars on Windows on FM16, at least have new option for it?
Understood that you only want to install the standard menu for admin special case instance.
To address the loss of the bottom toolbar during development, I have created a small toolbar which I am putting on every layout with a hide condition if [ not "Full Access" ]
You could add another button/segment with "Show/Hide menu bar[toggle]"
I am probably going to give users an "adjust window to fit" button to ease the transition to SDI
Yes, that would work except for the problem of I have about 25 reports with corresponding scripts.
Here is my 'work around'
In the absence of a menu bar Filemaker also removes the TOOLS menu. (I use this to select Standard FM Menus; which allows me to run the aforementioned STATUS ON script above.
So, I created a toolbar with a "" item. Then when it shows in develop mode, I have TOOLS.
Which got me to thinking I could remove some print icons etc by building a 'real' menu structure for the reports.
This turned out to be the best solution.
One 'new' thing I noticed is that if I turn 'off' a menu bar before I get into the report window, it affects the Main window by removing it's menus. (Putting that command AFTER the report window code prevents that situation.
Hope this helps someone....
25 reports. OK. And you have to constantly modify layouts? I do not understand this.