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

前端 未结 2 1494
孤独总比滥情好
孤独总比滥情好 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.

提交回复
热议问题