Xpages Download control for Client side

丶灬走出姿态 提交于 2019-12-11 07:35:57

问题


Xpages for Client Side: Download Control does not have the option of opening a saved attachment , it always gives the option of saving the attachment and then reopening.Any workaround for this?


回答1:


The scheme by Mark doesn't work in XPiNC ( which I think is what Client Side meant in the question ), however, Mark has since come up with another scheme which he mentioned to me and it works.

If you use a url link to open a classic notes document ( i.e. not xpages ) with the launch property open first attachment set then the attachment will be launched immediately - it works really well.

I will write something up and put it on my blog then add a link here. If you had more than one attachment you might need to construct a temporary document with just the attachment you wanted.




回答2:


I haven't found a way to let users directly open files using the standard download control, but as a workaround you could create links to the files using the (old school) syntax:

/<yourdb.nsf>/0/<document-unid>/$file/<filename>

This won't add the content-disposition header that causes the file download dialog.



来源:https://stackoverflow.com/questions/9667735/xpages-download-control-for-client-side

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!