Hi,
Add a new column to the “ViewFields” in vLookup – use the ID column in the “Field”, add “Version history” as display name and add this to the “Special configuration”:
{"function":"versionHistory"}
Then add this to the Custom JS – change the path and the GUID to match the one from your list / library:
function versionHistory(id,item){
return "<span style='cursor:pointer;' onclick='showVersionHistory(\""+id+"\")'>Version history</a>";
}
function showVersionHistory(id){
var url = "/DFFS/_layouts/Versions.aspx?list={ccbbf922-f0af-481b-b2c0-b12ea24d224e}&ID="+id;
SP.UI.ModalDialog.showModalDialog({"url":url,"allowMaximize":true,"showClose":true});
}
This should open the version history for your item.
Alexander