Hello…
Can any one tell me how to refresh parent document from a dialog box…! I don’t want to update any fields in my parent doc, so I cannot use ‘refreshparentnote’
My need is just to refresh the parent document, which has an embedded view displaying docs created from my customized dialog box…
Subject: How to Refresh parent document from Dialog Box
Why don’t you just refresh the doucment after the dialog box is closed?
Subject: RE: How to Refresh parent document from Dialog Box
I cannot do that, as my ui doc is dialog box at the moment and after I close the dialog box (uidoc.close) and in the next line I cannot get the handle of the parent doc as ui document as am just closing the dialog box uidoc.
Subject: RE: How to Refresh parent document from Dialog Box
How are you calling the dialog box in the first place? If it’s lotusscript then you can use w.viewrefresh in the calling script after the dialog box has been dealt with
Another option, although not sure if it works is to put w.viewrefresh in the queryclose of the dialog box itself
Subject: RE: How to Refresh parent document from Dialog Box
Yes thro’ lotus script, but The first option didnt work, as am just closing the ui dialog box and immediately in the next line if am trying to get new ui doc (parent doc) it doersn’t work…
QueryClose thing I’ll give a try…
Subject: RE: How to Refresh parent document from Dialog Box
I don’t see any reason it shouldn’t work to refresh the current document in the code that launches the dialogbox, right after the dialogbox function returns. If you provide your code someone may be able to tell what you’re doing wrong; this is definitely possible.
Subject: RE: How to Refresh parent document from Dialog Box
Pls. see my code I close my dialog box ui doc first.
Call nDialogUIDoc.Close
Then setting a new ui doc (for parent) - (Using the above uidoxc object also doesn’t work though)
Set nUIDoc = nUIWS.CurrentDocument (nUIWS is set properly)
Call nUIDoc.Refresh
I get the Error msg - ‘NotesUIDocument object is no longer valid.’
If I use nUIWS.viewrefresh, it works perfectly when there is atleast one document in the embedded view. However if there’s no document in the view, it doesn’t refresh automatically. 
Looking fwd for a way ahead…
Subject: RE: How to Refresh parent document from Dialog Box
You’re still not doing what we are telling you. Somewhere in your code, not in the dialog box form, is the code that launches the dialog:
result = wksp.Dialogbox(…)
after this line, is where you should refresh the form. You may need to check the value of result to decide whether to do this, or check the value of a field – arrange some signal from the dialog to the parent form by assigning a field.
The other thing to note is that uidoc.Close has arguments.
Subject: RE: How to Refresh parent document from Dialog Box
Thanks Andre… This didn’t really strike me that I’ll have to do the uidoc refresh after my dialogbox call function.