Using @DialogBox (with form) to edit locked document

Hi there :slight_smile:

I’m using a @DialogBox(“DialogForm”;etc.etc.etc.) to edit a document to insert a new value into field “prosess”.

Both the DialogForm and the MainForm has the field “Prosess” in it and it seem to inherit the MainForm “Prosess” value to the “DialogForm”, so that part is working…

But… the thing is that i have a QueryModeChange (and. QueryOpen) LS code which protects the document from being edited if status is either “Under arbeid” or “Historisk”.

Basically the code is :

If source.EditMode = TRUE then

Messagebox(something…)

continue = False

Exit Sub

End If

I still want to use this QueryModeChange/QueryOpen code, but is it anyway i can bypass this using a DialogForm (@DialogBox) ?

Thanx in advance.

Best regards

Terje :slight_smile: