Tech Tip: Preventing startup conflicts with the 4D Ajax Framework
PRODUCT: 4D Web 2.0 Pack | VERSION: 1.1 | PLATFORM: Mac & Win
Published On: June 6, 2007
PLEASE NOTE: This Tech Tip applies to 4D Web 2.0 Pack version 1.0 and 1.1
The 4D Ajax Framework (4DAF) startup dialog is modal. Some applications may be using a modal dialog box during the startup methods that can conflict with the 4DAF initialization. The installation documentation for 4DAF says to add the command:
DAX_Dev_Initialize |
to the On Startup method. If you have a modal dialog box or other form that conflicts (i.e. processes get hung up), you can use the following code to stall (it does not truly delay the process) the On Startup code until the 4DAF initialization is complete. To do so add the following to the On Startup method:
DAX_Dev_Initialize While (Process state(Process number("DAX_Initialize"))>=0) DELAY PROCESS(Current process;60) End while |
Note: you are not really delaying the process and you can put any time wasting code in this while loop or nothing at all. For more information see this Tech Tip:
Limitations for delaying or pausing a process
For the latest information the 4D Ajax Framework please see the Daxipedia:
http://daxipedia.4d.com