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 with LAPI create community?

Status
Not open for further replies.

Warrioras

Programmer
Feb 15, 2007
7
LT
Thanks!!!
 
int status = 0;
LLValue pwsInfo = (new LLValue()).setAssocNotSet();
int llTypeComittee;
string Name;
string linkName;
int committeeTemplateID;
SetSession();
documents = new LAPI_DOCUMENTS(sessionAdmin);

status = documents.AccessEnterpriseWS(pwsInfo);
if (status == 0){
parentVol = pwsInfo.toInteger("VolumeID");
parentID = pwsInfo.toInteger("ID");

status = documents.CreateObject(.....????.....)


Can you help me?
Thank you!
 
If you have access to livelink thru a sql tool or database tool or live report try to find the subtype of the community object.It may be quite possible that you can create objecttypes not explicitly given out in the documentation.For creating an object of document type you use a constant which resolves to 144.Similarly my hunch is you may be able to find one for the community object type.If you have intellisense turned on on your IDE many calls that are not part of the public api documentation may also show up.
Code:
select name ,dataid,subtype from dtree where dataid in
(<substituate the dataid/objid of a document you know>,<substituate the dataid/objid of a community you know>)

Unfortunately I have never programmed with communities but you could pose your qn in the opentext knowledge base or the communities web site.Say can you do an XMLExport of a community then you may be able to XML import as well.


Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
 
Thanks appnair and ggriffit for replays.

I know community subtype object id and I know template community id (witch I must use)..
But I do not know how to give correct function parameters to function

status = documents.CreateObject(.....????.....)

CreateObject ( System.Int32 ParentVolumeID , System.Int32 ParentID , System.Int32 ObjType , System.Int32 ObjSubType , System.String Name , com.opentext.api.LLValue objInfo )

but where i must put Template ID?

 
CreateObject ( System.Int32 ParentVolumeID , System.Int32 ParentID , System.Int32 ObjType , "put subtypeof community here" , "what you want to call it" , "the new object's information"(out) )


Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
 
thanks appnair,
but where in this I must put community template ID, because I must create community from template!
 
Sorry if this is a templated operation like a project subtype then you may have to ask this qn in the knowledge base or the wiki.COP is very new and I have no clue how it works....If you know builder probably you caould trace it too...

Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
 
where i can get answear in this question?
maybe can you ask this in knowledge base,because i have not access to it..
thanks again

p.s. maybe ggriffit know answear?
 
just had a quick look at the CoP modules and there is nothing in the LAPI additions in there that would do this.

Looking at the Request Handlers that are used, it seems like it uses the standard Create Wizard that is also used for Projects and Folder templates, so if that has an API in LAPI then you should be able to access it via that method.

Greg Griffiths
Livelink Certified Developer & ECM Global Star Champion 2005 & 2006
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top