How can I get a ContentInstance (from vgn-ext-templating) by primary key without using ContentUtils.getVcmIdForPrimaryKey (because this is a internal class)?
You can try this:
static com.vignette.as.client.javabean.ManagedObject getManagedObject(com.vignette.as.client.common.ref.ManagedObjectRefmoRef)
Retrieves a ManagedObject by primary key from the cache or fromthe database if it hasn't been previously cached.
Regards,
Mukul
From: eLink Entry: Vignette V7 and V8 Web ContentManagement [mailto:v7webcontentmanagement@elinkkc.opentext.com] Sent: Wednesday, June 09, 2010 1:46 PMTo: eLink RecipientSubject: Get ContentInstance by primary key
Get ContentInstance by primary key
Posted by rgrela@caixagalicia.es (Grela, Rocio) On 2010/06/09 13:42
How can I get a ContentInstance (from vgn-ext-templating) by primary key without using ContentUtilsError! Filename not specified..Error! Filename not specified.getVcmIdForPrimaError! Filename not specified.ryKey (because this is a internal class)?
[To post a comment, use the normal reply function]
Forum:
Vignette V7 and V8 Web Content Management
Livelink Server:
knowledge-wlweb01
To take this approach you have to constructthe ManagedObjectRef using:
ManagedObjectRef(ObjectTypeRefobjectTypeRef, AttributeData keys[])
Which is tedious and error prone. Aneasier approach is to use ContentInstanceDBQuery/ContentInstanceWhereClause andconfigure the where clause to select based on the primary key attributevalue(s).
From: eLink Entry:Vignette V7 and V8 Web Content Management[mailto:v7webcontentmanagement@elinkkc.opentext.com] Sent: Wednesday, June 09, 20101:02 PMTo: eLink RecipientSubject: RE Get ContentInstance byprimary key
RE Get ContentInstance by primary key
Posted by mbishnoi (Bishnoi, Mukul) On 2010/06/09 14:01
static com.vignette.as.client.javabean.ManagedObject getManagedObject(com.vignette.as.client.common.ref.ManagedObjectRef moRef)
Retrieves a ManagedObject by primary key from the cache or from the database if it hasn't been previously cached.
From: eLink Entry: Vignette V7 and V8 Web Content Management [mailto:v7webcontentmanagement@elinkkc.opentext.com] Sent: Wednesday, June 09, 2010 1:46 PMTo: eLink RecipientSubject: Get ContentInstance by primary key
Topic: