I'd like to browse items(eg,folder) under project subtype object and add a folder into a project using LAPI.
For example,
My example structure in livelink is the following:
+ "MyProject"(project subtype)
+ "MySubProject" (Project subtype)
+ "MyFolder" (Folder subtype)
My sample code looks like the following:
----
// lProjectID is the ID for "MyProject"
// lProjectVOL is the VolumnID for "MyProject"
LL_ListObjects(session, lProjectID, lProjectVol, NULL, NULL, LL_PERM_SEE, subItems);
LL_ValueGetLength(subItems,&lTotal);
printf("Project Items begin\n"
for(long i=0; i< lTotal;i++) {
char buf[255];
long siz;
LL_TableGetValue( subitems,i,"Name",value);
LL_ValueGetString(value, buf, 255,&siz) ;
printf("%d : %s\n",i+1.buf);
}
printf("Project Items end\n"
----
If I run the above code, Output is :
Project Items begin
1 : MySubProject
Project Items end
Why didn't "MyFolder" show?
I can't access Knowledge Center.
Help me please.
For example,
My example structure in livelink is the following:
+ "MyProject"(project subtype)
+ "MySubProject" (Project subtype)
+ "MyFolder" (Folder subtype)
My sample code looks like the following:
----
// lProjectID is the ID for "MyProject"
// lProjectVOL is the VolumnID for "MyProject"
LL_ListObjects(session, lProjectID, lProjectVol, NULL, NULL, LL_PERM_SEE, subItems);
LL_ValueGetLength(subItems,&lTotal);
printf("Project Items begin\n"
for(long i=0; i< lTotal;i++) {
char buf[255];
long siz;
LL_TableGetValue( subitems,i,"Name",value);
LL_ValueGetString(value, buf, 255,&siz) ;
printf("%d : %s\n",i+1.buf);
}
printf("Project Items end\n"
----
If I run the above code, Output is :
Project Items begin
1 : MySubProject
Project Items end
Why didn't "MyFolder" show?
I can't access Knowledge Center.
Help me please.