cancel
Showing results for 
Search instead for 
Did you mean: 

How to display document version number in workflow forms?

faizrahk
Confirmed Champ
Confirmed Champ

Hi,

I want to display document version in all workflow forms, for this i understood to modify/override the object finder js file.

But in that the item object doesn't have version property, it has the aspect array with versionable property but without value.

Can anyone help me to display version number of document in workflow forms.

Below is the code from object-finder.js which im referring to...

return function ObjectFinder_fnRenderCellListItemName(elCell, oRecord, oColumn, oData)
{
var item = oRecord.getData(),............

1 ACCEPTED ANSWER

Hi Prachi,

Thanks for responding.

Actually i was talking about displaying version number in document listing next to document name in workflow forms.

I have made use of the below mentioned web script to get version history by nodeRef and captured only the first item from

JSON response to get the updated version.


http://localhost:8080/share/proxy/alfresco/api/version?nodeRef=workspace://SpacesStore/hhgfhg6138-dd...

View answer in original post

2 REPLIES 2

prachi_shah_c2
Confirmed Champ
Confirmed Champ

Hi Faiz,

For this first, you may need to add one custom form field in which you have to get a document and find out version of that document from version history and show it to document.

Thanks,

prachi shah

ContCentric

Hi Prachi,

Thanks for responding.

Actually i was talking about displaying version number in document listing next to document name in workflow forms.

I have made use of the below mentioned web script to get version history by nodeRef and captured only the first item from

JSON response to get the updated version.


http://localhost:8080/share/proxy/alfresco/api/version?nodeRef=workspace://SpacesStore/hhgfhg6138-dd...