Testing whether in a dialog box?

Does anyone know how to test whether a form is currently being displayed via @Dialogbox or uiws.Dialogbox?

My form can only be created via a dialog box and I’d like to hide certain action buttons when it’s a new form, but not when it’s displayed after saving. @IsNewDoc doesn’t seem to work. Any other ideas?

Subject: why dialogbox when using the original form?

hi, you are mixing a bit document/form - I think you are talking about a document…

Usually the sense of a dialog box is showing a document in a DIFFERENT form. And there you do not have any form actions, didn’t you? So why not creating a form for the dialog box and one for “normal”?

@isnewdoc should work in hideWhens of form actions.

HTH - Uwe