From: eLink Discussion: LAPI Discussion [mailto:lapi@elinkkc.opentext.com] Sent: Monday, March 27, 2006 1:55 PMTo: eLink RecipientSubject: Updating a physical object through LAPI Updating a physical object through LAPI Posted by libbyrome (Rome, Libby) on 03/27/2006 01:51 PM I'm looking for some code that will update a physical object's from and to date through LAPI. I'm having trouble with UpdateObjectInfo. Here's some bare bones sample code:LLSession session = new LLSession( "localhost", 2099, "", "moo", "moo" );LAPI_DOCUMENTS documents = new LAPI_DOCUMENTS( session );LLValue llvalue = new LLValue( );documents.GetObjectInfo( 0, 28795, llvalue );documents.UpdateObjectInfo( 0, 28795, llvalue );This works for regular documents but not for boxes. I've traced the error to line 34 in NodeUpdateSubclassPre in PHYSICALOBJECTS.PhysObj LLNodes.PhysicalItems. For some reason, it is expecting updateInfo.Request to be a record whereas everywhere else seems to expect a Dynamic (including in NodeCreateSubclassPre for the same object).
Has anyone had any luck with this?
I would like to be able to update custom physical properties using the UpdateObjectInfo method but I am getting an error: "com.opentext.api.LLIllegalOperationException: get(name) not implemented for this datatype".
When I call the GetObjectInfo, I don't see any intuitive way to get at the custom physical properties. EXTENDEDDATA comes back "undefined".
Thanks for your help in advance!