> On Aug 6, 2018, at 12:39 PM, Timothy Penner via 4D_Tech <[email protected]
> <mailto:[email protected]>> wrote:
>
> Regarding the menu bars on server -
>
>> Calling SET MENU BAR during On Server Startup
>> - this crash will occur in a test database with only this line of code in
>> the On Server Startup method
>
> This *was* a known issue, it was filed as ACI0097391. It should be fixed in
> the latest v16 and v17 releases, I am not sure about the R release.
>
> However, keep in mind that the command SET MENU BAR is documented to have no
> effect on the server;
> http://doc.4d.com/4Dv17/4D/17/Stored-Procedures.300-3743249.en.html
> <http://doc.4d.com/4Dv17/4D/17/Stored-Procedures.300-3743249.en.html>
> ^ So calling SET MENU BAR on the server is a mistake.
>
> A wrapper for the SET MENU BAR command could look like this:
>
> If(Application type#4D Server)
> SET MENU BAR($1)
> End if
Already done. We knew it was being ignored on server so hasn’t been an issue
until now. It was the first change I made in trying to track this all down.
>
> Regarding the progress window -
>
>> opening a small window for showing progress messages during the startup
>> routine. Especially important while running internal data update routines
>
> The documentation summarizes it like this:
> {
> Generally speaking, stored procedures executed on the server should not deal
> with interface items (such as menus, windows, forms...). Indeed the interface
> is not managed on the server's side.
> Commands displaying dialog boxes on the server machine as well as dialog
> boxes dealing with data entry should be avoided.
> }
Which we do in general, yes.
>
> So I think this should probably be avoided also.
So what’s the recommendation on giving startup progress so they know that the
server hasn’t frozen at some point during the startup method?
We do a simple order like
open window
… do stuff
DISPLAY RECORD <——displays a form with a picture and a text variable that we
update
…do stuff
DISPLAY RECORD
…do stuff
close window
We’ve been doing this for at least 18 years.
Randy
----------------------------------------------------------------------
Randy Jaynes
Senior Programmer and Customer Support
http://printpoint.com <http://printpoint.com/> • 845.687.3741 • PrintPoint, Inc
• 57 Ludlow Lane • Palisades, NY 10964
Please send all email contacts to [email protected]
<mailto:[email protected]>
**********************************************************************
4D Internet Users Group (4D iNUG)
Archive: http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub: mailto:[email protected]
**********************************************************************