This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Aug 26, 2014, 5:58 PM
94 Posts

Why does a partial refresh create multiple file attachments in my document?

  • Category: Debugging
  • Platform: Windows
  • Release: 9.0.1
  • Role: Developer
  • Tags:
  • Replies: 4

I have a custom control with one file upload control.    This page also has a couple fields that use partial refresh for various events (none of which refresh the upload control or a panel that contains the control).  If a user selects a file and saves the page, all is fine.  However, if they select a file and then use one of the fields that perform a partial refresh, then the file gets submitted to the server AGAIN and now when the page is saved and reopened, we see two files attached,  file and file-2.  We are seeing instances where a user selects a file, then selects a few different options on the page, which is resubmitting the file attachment each time and now when the document is reopened, the download control shows 20 files!!!   file, file-2, file-3, file-4, etc.

What do I need to do to stop the resubmitting of the file attachment?

Aug 26, 2014, 6:30 PM
366 Posts
Something is doing a full submit

go to the "source" view of the XPage and search for 

 

refreshMode

 

and look for "complete" versus "partial"

Aug 26, 2014, 8:24 PM
94 Posts
I thought of that, actually...

I do have some "complete" refresh modes, but not with any of the event based activities that are causing this problem.  Thanks for the tip, though.

Aug 27, 2014, 1:16 PM
586 Posts
hmm

I'm not sure what the issue is.  Up until the most recent version of Domino I didn't think you could add a file attachment via Partial Refresh.  It had to be complete.

I'll just through out this - I'm working on an attachment storage project - fileVault  (http://notesin9.com/index.php/2014/08/01/notesin9-150-announcing-filevault-for-xpages/)  

The code and videos on how to set it up will be coming to the NotesIn9 Screencast very soon.

Might be interesting to you...

 

Sep 4, 2014, 1:59 AM
94 Posts
Yes, it does occur from a partial refresh!

As I mentioned, the page has one upload control.  If I select a file, fill in a description and save the document, then it all works fine.  If I select a file, fill in a description and then click a radio button that performs a partial refresh - then I'll get another file attachment, click the radio button again - I get another attachment.  AND the radio buttons are set to only refresh ONE ELEMENT on the page (a computed value).  The partial refresh does not include a panel with the upload control in it.

This is driving my customer crazy, because users will regularly click items on the page - and each click seems to save their file again as another attachment!


This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal