Passing values using dialogbox to document

Hi,

I have to set date field and time field by accepting it from the user and I want to give the datecalender control and time cotnrol to the user on a already composed document.

I’m opening a document on action button click in notes client. Once the doucment is opened. On button click, I call a reopen(has date and time field) form in dialogbox using

'Call workspace.DialogBox ( “reopen”, True, True, “reopen”).

Now I’m not able to set the value entered on dialog box in the main documen because i’m not able to trap the details in my action button click code

…

'Call workspace.DialogBox ( “reopen”, True, True, “reopen”)

If Source.DialogBoxCanceled Then

Continue = False

Exit Sub

else

uidoc.EditMode = True

uidoc.RDate = uidoc.ReDate(0)

…

call uidoc.save

call uidoc.close

Subject: Passing values using dialogbox to document

you have to make a workaround:as 1 of the parameters of the dialogbox-function you can see that you can pass-in a NotesDocument object. if you set a notesdocument-variable to a new blank document with the form of your desired form and pass it to the dialog box, you can use it afterwards again.

try to do:

set tmpDoc = CurrentDatabase.CreateDocument

call tmpDoc.ReplaceItemValue(“Form”, "YourFormName)

returnvalue = workspace.dialogbox(parameter,parameter,parameter…tmpDoc,…)

if returnvalue = TRUE then

docvalue = tmpDoc.GetItemValue(“DesiredFieldName”)(0)

end if

hth

@lex