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
How to use CreateObject ?
Thomas_Blume
Hallo,What are the right types to add a Folder in a Project?The CreateFolder function works wrong. Declare Function LL_CreateObject Lib "lapi_documents.dll" ( _ ByVal session As Long, _ ByVal ParentVolumeID As Long, _ ByVal ParentID As Long, _ ByVal ObjType As Long, _ ByVal ObjSubType As Long, _ ByVal name As String, _ ByVal ObjInfo As Long) As LongObjType LL_OBJECTTYPEObjSubType LL_FOLDERSUBTYPEstatus = LL_ValueAlloc(ObjInfo )If (LL_OK <> status) Then Debug.Print "I have a problem"End IfIt looks okay - in my eyes ;-) - but it doesn't work.If I change LL_FOLDERSUBTYPE to LL_PROJECTSUBTYPE i create a smart new Project.Thanks for helpAndreas
Find more posts tagged with
Comments
eLink User
Message from Dylan Wright via eLinkI think your syntax is ok, but you need to be creating the folder on theProject Volume, not the project itself ( project volume's dataid isproject's dataid * -1 ) ... Btw, a sub-project IS created under theproject node, that's why it works for project subtype. dylan-----Original Message-----From: eLink Discussion: Development Discussion[mailto:development@elinkkc.opentext.com] Sent: Thursday, January 17, 2002 2:12 AMTo: eLink RecipientSubject: How to use CreateObject ?How to use CreateObject ?Posted by TBlume on 01/17/2002 05:06 AMHallo,What are the right types to add a Folder in a Project?The CreateFolder function works wrong. Declare Function LL_CreateObject Lib "lapi_documents.dll" ( _ ByVal session As Long, _ ByVal ParentVolumeID As Long, _ ByVal ParentID As Long, _ ByVal ObjType As Long, _ ByVal ObjSubType As Long, _ ByVal name As String, _ ByVal ObjInfo As Long) As LongObjType LL_OBJECTTYPEObjSubType LL_FOLDERSUBTYPEstatus = LL_ValueAlloc(ObjInfo )If (LL_OK <> status) Then Debug.Print "I have a problem"End IfIt looks okay - in my eyes ;-) - but it doesn't work.If I change LL_FOLDERSUBTYPE to LL_PROJECTSUBTYPE i create a smart newProject.Thanks for helpAndreas[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