Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to browse items under project type object?

Status
Not open for further replies.

momo898

Programmer
Apr 28, 2003
1
US
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,&quot;Name&quot;,value);
LL_ValueGetString(value, buf, 255,&siz) ;
printf(&quot;%d : %s\n&quot;,i+1.buf);
}
printf(&quot;Project Items end\n&quot;);
----

If I run the above code, Output is :

Project Items begin
1 : MySubProject
Project Items end


Why didn't &quot;MyFolder&quot; show?


I can't access Knowledge Center.
Help me please.



 
Try to reverse the ProjectID & ProjectVol in your LL_ListObject call. This is what I've did to list subprojects and also to replies objects in discussionsubtypes.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top