08-07-2019, 05:18 AM
Soren, as Chad said no code executes a modal form inline. That's not just an IW behavior, it's a web behavior.
Servers respond to messages, execute some code to decide what to do, then return a message to the client browser when the code finishes. Then the server waits for the next message. In that regard it is different than VCL. Again, the server only updates the browser when the code (all of it in that round) finishes.
In the case of returning to your main form, the browser does not remember that form. Therefore the server must recreate the form and send it to the browser again.
It does take a little change of mindset on a couple of things, even though the behavior is VERY much like VCL in most regards. The web world just does not support all the things that Windows (or other rich clients) do.
Sorry if I'm not answering the question you have. Feel free to ask for more specific information.
Dan
Servers respond to messages, execute some code to decide what to do, then return a message to the client browser when the code finishes. Then the server waits for the next message. In that regard it is different than VCL. Again, the server only updates the browser when the code (all of it in that round) finishes.
In the case of returning to your main form, the browser does not remember that form. Therefore the server must recreate the form and send it to the browser again.
It does take a little change of mindset on a couple of things, even though the behavior is VERY much like VCL in most regards. The web world just does not support all the things that Windows (or other rich clients) do.
Sorry if I'm not answering the question you have. Feel free to ask for more specific information.
Dan

