Hi there,
i am stuck... i am trying to get the Itemnames of Documents in my Contentserver via LAPI. My Code:
LLValue numberOfObjects = new LLValue();
doc.GetNumberOfObjects(0, 14869, numberOfObjects);
Console.WriteLine("Number of Objects " + numberOfObjects.toInteger());
LLValue node = new LLValue();
// LLValue node = (new LLValue()).setList();
doc.ListObjects(0, 14869, "DTree", "subtype=144", LAPI_DOCUMENTS.PERM_FULL, node);
LLValueEnumeration enumVal = node.enumerateValues();
while (enumVal.hasMoreElements())
{
LLValue element = (LLValue)enumVal.nextElement();
String name = element.toString("Name");
int id = element.toInteger("ID");
int pid = element.toInteger("ParentID");
int subType = element.toInteger("SubType");
Console.WriteLine("Node " + name);
}
getting the correct Count of items works fine... so basically i have a connection. so when i try to get the list, i got serveral errors. I i choose 0 as VolumeID i get an
toInteger() is not implemented for this datataype Exception
if i coose 2 or 4 as Volume Type (i got these number from my archive server) the listObjects routine works fine, but when i come to node.enumerateValues(); i got:
enumerateValues() is not implemented for this datatype
i dont know what i amm doing wrong, or if there is an other possibility to get the objects.
What i plan to do is, write a small .net programm in which i will show a Tree of some existing documents. Therefore i need the names.
thanks
mcnanuk
i am stuck... i am trying to get the Itemnames of Documents in my Contentserver via LAPI. My Code:
LLValue numberOfObjects = new LLValue();
doc.GetNumberOfObjects(0, 14869, numberOfObjects);
Console.WriteLine("Number of Objects " + numberOfObjects.toInteger());
LLValue node = new LLValue();
// LLValue node = (new LLValue()).setList();
doc.ListObjects(0, 14869, "DTree", "subtype=144", LAPI_DOCUMENTS.PERM_FULL, node);
LLValueEnumeration enumVal = node.enumerateValues();
while (enumVal.hasMoreElements())
{
LLValue element = (LLValue)enumVal.nextElement();
String name = element.toString("Name");
int id = element.toInteger("ID");
int pid = element.toInteger("ParentID");
int subType = element.toInteger("SubType");
Console.WriteLine("Node " + name);
}
getting the correct Count of items works fine... so basically i have a connection. so when i try to get the list, i got serveral errors. I i choose 0 as VolumeID i get an
toInteger() is not implemented for this datataype Exception
if i coose 2 or 4 as Volume Type (i got these number from my archive server) the listObjects routine works fine, but when i come to node.enumerateValues(); i got:
enumerateValues() is not implemented for this datatype
i dont know what i amm doing wrong, or if there is an other possibility to get the objects.
What i plan to do is, write a small .net programm in which i will show a Tree of some existing documents. Therefore i need the names.
thanks
mcnanuk