Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Content Management (Extended ECM)
API, SDK, REST and Web Services
To get the current version of the the Document
Noura_Almazrouei_(nalmazrouei_-_(deleted))
this code is used to get the object ID`nodeRec.dataID`(e.g. 13345)What should i do to Get The current verion number of this object(e.g. 3)
Find more posts tagged with
Comments
eLink User
Message from Nair, Krishnankutty N. via eLinkif nodeRec is a DAPINODE it is the .pVersionNumif it is coming from the WEBNODES view then it may be`nodeRec.versionnum`Look at the documentation for DAPINODE,DAPIVERSION anddescribe the livelink schema for webnodes,dtree and dversdatayou will understand it betterThanks MuchKrishnankutty N NairWork 918-661-5824 Fax:918-661-9206Learn more about EDMS powered by Livelink at
http://edms.conoco.net/edms.htm-----Original
Message-----From: eLink Discussion: Development Discussion[mailto:development@elinkkc.opentext.com] Sent: Friday, June 03, 2005 3:19 AMTo: eLink RecipientSubject: To get the current version of the the DocumentTo get the current version of the the DocumentPosted by Amare, Yemane on 06/03/2005 04:16 AMthis code is used to get the object ID`nodeRec.dataID`(e.g. 13345)What should i do to Get The current verion number of this object(e.g. 3)[To reply to this thread, use your normal E-mail reply function.]============================================================Discussion: Development Discussion
https://knowledge.opentext.com/knowledge/livelink.exe?func=ll&objId=786303&objAction=viewLivelink
Server:
https://knowledge.opentext.com/knowledge/livelink.exe
Noura_Almazrouei_(nalmazrouei_-_(deleted))
where i can find this documentation? If you can then please give me.
Noura_Almazrouei_(nalmazrouei_-_(deleted))
nodeRec.OriginDataID is giving me the Origial object ID of an Alias. I want to get the Current version number of that Original object to which Alias is pointing (for example 4 or 2). Please reply early
Noura_Almazrouei_(nalmazrouei_-_(deleted))
Can you please help me how to get Version Number of Alias's Original Object.I'm using this code to get the version number of a document."`nodeRec.versionnum`"but the problem is that i want to get version number of an Alias's Original Object (to which Alias is pointing) and i cannot get that.
eLink User
Message from Alex Kowalenko via eLinkYou need to get the latest version number of the original object. The ID ofthe original object is nodeRec.OriginDataID. The version number is aproperty of the original object.>From your syntax I assume that you are in a weblingo file. As an example,the following in-line code will give your answer: ;;oscript{ Object prgCtx = .fPrgCtx // if in a request handler DAPISession dSession = prgCtx.DSession().fSession DAPINode originalNode = DAPI.GetNodeByID( \ dSession, DAPI.BY_DATAID, nodeRec.OriginDataID ) Integer originalVersion = originalNode.pVersionNum // your answer ;;}Note: it's better practice to put such code into a utility package in yourcustom module. For example: originalVersion =$CustomModule.Utils.GetOriginalVersion( prgCtx, nodeRec ). This way you onlyhave presentation-layer code in the weblingo and allows you to reuse commonutilities.-alex------Original Message-----From: eLink Discussion: Development Discussion[mailto:development@elinkkc.opentext.com] Sent: Thursday, June 09, 2005 10:29 AMTo: eLink RecipientSubject: Getting Version Number of Alias's Original ObjectGetting Version Number of Alias's Original ObjectPosted by Al Junaibi, Mohamed on 06/09/2005 10:27 AMCan you please help me how to get Version Number of Alias's Original Object.I'm using this code to get the version number of a document."`nodeRec.versionnum`"but the problem is that i want to get version number of an Alias's OriginalObject (to which Alias is pointing) and i cannot get that.[To reply to this thread, use your normal E-mail reply function.]============================================================Topic: To get the current version of the the Document
https://knowledge.opentext.com/knowledge/livelink.exe?func=ll&objId=4009737&objAction=viewDiscussion
: Development Discussion
https://knowledge.opentext.com/knowledge/livelink.exe?func=ll&objId=786303&objAction=viewLivelink
Server:
https://knowledge.opentext.com/knowledge/livelink.exe
Noura_Almazrouei_(nalmazrouei_-_(deleted))
It is working fine. Thank you very much for your kindness.