@dialogbox

How can I display documents created with the @dialogbox command in a view? My view selection formula is - Select form = “Approval Dialog” does not return the documents created.

Subject: @dialogbox

Documents cannot be created with @Dialogbox; @Dialogbox only permits the editing of the current document (UI document or document selected in the view). If the documents were created using LotusScript and initially edited using the Dialogbox method, then they have no form associated with them unless the Form field has been explicitly set.

Subject: RE: @dialogbox

Actually documents can be created using @dailogbox. Using your own buttons on the form (in LS) and hiding the OK and cancel to force the user to use your buttons then you can create new documents using @dialogubox.

ST

Subject: RE: @dialogbox

They aren’t created WITH @Dialogbox – they’re created with LotusScript in the back-end, and thus have no associated form unless that form value is explicitly set.

Subject: RE: @dialogbox

I did not say ‘with’ i wrote ‘using’. yes, ls backend does the whole job and not the @dialogbox function. but sometimes its useful to present a modal screen to create new docs and @dialogbox or the ls equivalent would be the only solution.

ST

Subject: RE: @dialogbox

There is a action button the users select that contains the following formula -

@Command([EditDocument]; 1);

@DialogBox(“Approval Dialog”; [AutoHorzFit] : [AutoVertFit] : [NoCancel] :[SizeToTable] : [OkCancelAtBottom] ; “Approve?”);

@Command([FileSave]);

@Command([FileCloseWindow])

They created several documents using the action button and now they want to see the documents that were created and I’ve not had any success in displaying the documents in the view.

Subject: RE: @dialogbox

Unless you are creating documents with a LotusScript action on the dialogbox (as Steven described), then there have been no new documents created with the dialog. What has happened is that the fields on the dialog have been added to (or edited on) the original document. Users can be shown the values on the main document or in the view, but there are no additional documents to include in the view.

Subject: RE: @dialogbox

I have been testing this too. I would love to have a small dialogbox to create the response to a Group form. When I save the document it overrights the Form field changing the response to overright the parent. If I compose the document, it works fine. I have even tried [noFieldUpdate] but it doesn’t matter. Below is the diablogbox options complete w/ r6 options and numbered so you don’t lose track of which boolean function is which.

flag = notesUIWorkspace.DialogBox( 1form$ , 2[autoHorzFit] , 3[autoVertFit] , 4[noCancel] , 5[noNewFields] , 6[noFieldUpdate] , 7[readOnly] , 8[title$] , 9[notesDocument] , 10[sizeToTable] , 11[noOkCancel] , 12[okCancelAtBottom] )

Subject: RE: @dialogbox

The technique works, and works well.

Dim newDoc = thisDb.CreateDocument

newDoc.Form = “ResponseFormName”

newDoc.InheritedField = currentDoc.DonorField

success = ws.Dialogbox( “DialogFormName”, True, True, False, False, False, False, “New Response Document”, newDoc, True, True)

If success Then

Call newDoc.MakeRespone(currentDoc)

Call newDoc.Save(True,False)

End If