Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Programmatically updated Document version is incrementing by 1 not with
Hi,
When I am Programmatically updating the Document , File version is incrementing by 1(1.0,2.0,3.0,etc.,) . But while updating the document manually version is incrementing by 0.1(1.0,1.1,1.2,1.3,etc.,). Why this difference exist in liferaydxp?
How to make the increment as unique in both ways?
How are you updating the Document ? I think it is updating with Minor version.
Try updating the document with MAJOR version.
DLVersionNumberIncrease.MINOR [AUTOMATIC, MAJOR, MINOR]
Thankyou Zubair for the update. We need to programmatically update the document with Minor version. Is there any way to do that? And I can't able to access this class DLVersionNumberIncrease.
DLVersionNumberIncrease is not having impl class and I found
model class like below.
https://github.com/liferay/liferay-portal/blob/master/portal-kernel/src/com/liferay/document/library/kernel/model/DLVersionNumberIncrease.java.
As per the DLVersionNumberIncrease, if we set MajorVersion as false, it should increment with Minor version but it's not working as expected.
Powered by Liferay™