How can I refresh the XPages File Download Control and have it display updated attachments without full page refresh?

前端 未结 2 1493
孤独总比滥情好
孤独总比滥情好 2021-01-23 22:58

When I create file download control on a document I can display the attached files from a Rich Text Field.

In a separate process I am attaching more documents to the sam

相关标签:
2条回答
  • 2021-01-23 23:03

    When partially refreshing a XPage, the datasources are not reloaded, only their last state (stored in memory or hdd ) is restored. If you change the scope of your datasource to request, the XPages engine is forced to recreate the datasource instead of using the cached one on each request (which includes partial refreshs).

    This should allow you to refresh your fileDownload control without a full refresh.

    0 讨论(0)
  • 2021-01-23 23:03

    Marky,

    Yes, I have run into this before. You must do a full refresh with attachments.

    http://xpagesblog.com/XPagesHome.nsf/Entry.xsp?documentId=FBAC0D921B677EA0852578CB006678D7

    The link is fairly old, but I believe it still applies.

    Matt White says in the article comments: "...Basically it is not currently possible to post a file attachment over AJAX, you either have to use Flash or a virtual iFrame solution if you don't want the entire page to refresh. As far as I know there is nothing that IBM can do about this at the moment. Matt"

    0 讨论(0)
提交回复
热议问题