smart client vs. web client

ok, I understand. In webclient it is difficult to manage the print out of (for ex.) invoices, because I have no application.isLastPrintPreviewPrinted() function.

To create a new form instance when displaying the form in dialog seems to be easy, but in my solution it works only one times. When I close the form in dialog it will not reopen again, because the function application.createNewFormInstance(‘orders_dialog’,‘dialog_view’) return false. I think that will say that the instance already exists or? I took and modified the sample code. How can I fix that?

Thomas

if you create a new instance once you can reuse that one.
It stays there.

You can remove it by saying to the history: history.removeForm(name)
(you have to call this in the dialog method so when the dialog runs (onhide or someting))