|
版本3.6 组件attachmentSimple,自己接管了组件的data-bind事件,需要在线查看文档,怎么做?
我是如下做的,报juestp.Doc.getdocServerAction失败,请确认文档服务配置是否正确!的错
还有event数据里面只有event.realFileName.latestValue和event.storeFileName.latestValue的值,下面属性什么意思?路径怎么配?
var docPath = event.realFileName.latestValue;
var fileID = event.storeFileName.latestValue;
var url = DocUtils.InnerUtils.getdocServerAction({
"docPath" : docPath,
urlPattern : "/repository/file/view/" + fileID + "/last/content",
isFormAction : false,
context : me12.getContext()
});
window.open(url);
|
|