Hi,
You can try adding this code to the Custom JS in DFFS:
function openWordAndExcelFiles(a,item){
var docName = item.get_item("FileLeafRef");
var link = makeAbsUrl(item.get_item("FileDirRef") + "/" + docName);
switch(item.get_item("DocIcon").toLowerCase()){
case "docx":
a = "<a href='ms-word:ofe|u|"+link+"'>"+docName+"</a>";
break;
case "xlsx":
a = "<a href='ms-excel:ofe|u|"+link+"'>"+docName+"</a>";
break;
}
return a;
}
Then use this in the “Special configuration” for the field “FileLeafRef” in the viewfields section in vLookup config:
{"function":"openWordAndExcelFiles"}
PS: This URI scheme only works with Office 2010 SP2 and newer.
Alexander
-
This reply was modified 7 years, 10 months ago by Alexander Bautz. Reason: Fixed open method for excel files