WebQuerySave, refresh parent via doClick, editable textarea not displaying update

Couldn’t find a hit on this particular problem.

I’ve got a form in edit mode on the web with a multi-value text field (which displays as a textarea in HTML).

I’ve got a button on the same form that pops up a dialog box to add text to the textarea field.

When saving the pop up window, the WebQuerySave agent uses doClick to refresh the parent window. Syntax looks like:

self.opener._doClick(‘$Refresh’,this,null)

That all works just fine. Here’s the problem:

The back end field is being updated with the new comments, but the refresh of the window is not displaying the new value. If I strip off the &seq=1 from the refreshed window and reload, the value displays.

The specific problem seems to be that when doClick sends the refresh command to Domino, it does not reload this editable text box with it’s latest value.

If I convert the field to a Computed text field, it reloads and shows the latest value just fine, whether &seq=1 is in the URL or not.

I wish to keep using the doClick option, because it does a nice job of preserving any other values on the form that might have been changed (and not saved yet).

Any thoughts would be appreciated,

Matt

Subject: WebQuerySave, refresh parent via doClick, editable textarea not displaying update

Depending on exactly how you have called the refresh from the web query save, it may be a timing issue (i.e. the back-end may not have been updated by the time your refresh executes). Instead of refreshing, you could try updating the value of the field in the opening window (in addition to the back end save). Rob.

Subject: RE: WebQuerySave, refresh parent via doClick, editable textarea not displaying update

Thanks Robin,

I have definitely confirmed that the value is being saved. I checked the back-end document directly. Also, if I continue to refresh the parent window, leaving the &seq=1 tacked on to the end of the URL, it will NOT display the updated value (even though it’s in the backend doc).

Updating the field via the UI is a good option - I was just trying to avoid it. I wanted to re-use code that was working when the field was computed.

Also, I thought it might be an interesting question to pose here, since I couldn’t find any hits on this behavior.

Thanks for responding,

Matt