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 create a discussion topic

Status
Not open for further replies.

huTorres

Programmer
Jan 22, 2007
6
NL
Hello, I am new in LAPI and I am writing an interface with LAPI/JAVA.
I am having problems creating a discussion topic.
I can create API_DOCUMENTS.DISCUSSIONSUBTYPE objects under a specific folder, but when I try to add a topic to this discussion object I get an error, Status Message: Container Error.

I am using the following code:

public void createDiscussionTopic(LLValue folder, String topicSubject,
String topicBody)
{
int result;
LLValue objectInfo = (new LLValue()).setAssocNotSet();
LLValue createInfo = (new LLValue()).setAssocNotSet();

LLValue Content = new LLValue().setAssoc();
LLValue Comment = new LLValue().setAssoc();

Content.add("Content", topicSubject);
Comment.add("Comment", topicBody);

createInfo.add("requiredAttributes", Content);
createInfo.add("requiredAttributes", Comment);

log.debug("CreateDate: " + folder.toString("CreateDate"));

result = this.doc.CreateObjectEx(folder.toInteger("VolumeID"), folder.toInteger("ID"),
LAPI_DOCUMENTS.OBJECTTYPE, LAPI_DOCUMENTS.TOPICSUBTYPE, "Topic01",
createInfo, objectInfo);
connector.getStatus();

}


Can anyone help?

Rgds,
Hugo Torres
 
I have solved this issue thanks to a previous post from: tyddynonn

Thanks anyway;
Hugo Torres
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top