Accessing fields from underlying form in a dialog box

Hi All,

I was wondering if anyone new how to access the field from an underlying form in a dialog box. In other words, on a form I have a field (say called “fieldName”) and from this form, I open a dialog box…

@DialogBox( “newDialobBoxName” ; [AutoHorzFit] : [AutoVertFit] : [NoNewFields]; “New Dialog Box” );

@Command([ViewRefreshFields])

… I would like to do something like this…

Sub Click(Source As Button)

Dim workspace As New NotesUIWorkspace

Messagebox(workspace.CurrentDocument.FieldGetText(“fieldName”))

End Sub

Any ideas out there?

Thanks,

Ryan

Subject: accessing fields from underlying form in a dialog box

Hi All,

Looks like I found my own answer, so I thought I’d post it in case someone else has the same problem.

if I add a field with the same name on the dialog box (i.e. “fieldName” in this case). and add [RefreshParentNote] to the @Command

@Command([ViewRefreshFields] : [RefreshParentNote])

The new field (on the dialog box) has the same value as the parent form.

Maybe there’s a more elegant solution, but hopefully this will help someone.

Ciao,

Ryan