I have configured OTM on VCM. I am able to enter the translations for channels.
But I am not able to read the values given in the Generic Desriptor tab.
Please suggest me how to read those values.
Thanks,
Phani
Wich version of VCM are you using ?
From: eLink Entry:Vignette V7 and V8 Web Content Management[mailto:v7webcontentmanagement@elinkkc.opentext.com] Sent: Thursday, July 15, 2010 12:03 PMTo: eLink RecipientSubject: Retrieving values from OTM
Retrieving values from OTM
Posted by panibhushanvarma_allagadda@satyam.com (Allagadda, Pani Bhushan Varma) On 2010/07/15 06:02
(image)
Attachment Links:
sc.JPG (40 KB)
[To post a comment, use the normal reply function]
Forum:
Vignette V7 and V8 Web Content Management
Livelink Server:
knowledge-wlweb01
VCM 7.6
Create and use an utility method like this.
public static String FindByAssetId(String keyAttrName, StringassetId, String descriptorContentTypeName)
throws ApplicationException, ValidationException {
String ret=null;
ContentTypect=(ContentType)ContentType.findByName(descriptorContentTypeName);
ContentTypeRef ctRef=new ContentTypeRef(ct);
if(ct != null){
ContentInstanceDBQuery query=newContentInstanceDBQuery(ctRef);
ContentInstanceWhereClause whereClause=newContentInstanceWhereClause();
whereClause.checkAttribute(keyAttrName,StringQueryOp.EQUAL, assetId, true);
query.addWhereClause(whereClause);
query.addReturnsContentManagementId();
IPagingList results=QueryManager.execute(query);
if(results != null && results.size()> 0){
ContentInstanceci=(ContentInstance)results.get(0);
ret=ci.getContentManagementId().getId();
}
return ret;
Mario D'Anna
Software Architect
Engineering
Open Text
1301 S. MoPac
Austin, TX 78746
USA
Phone: Fax:
+39 335 7573294
+1 (512) 741-1401
Email:
mdanna@opentext.com
Web site:
http://www.opentext.com/
From: eLink Entry:Vignette V7 and V8 Web Content Management[mailto:v7webcontentmanagement@elinkkc.opentext.com] Sent: Thursday, July 15, 2010 12:28 PMTo: eLink RecipientSubject: RE Retrieving values from OTM
RE Retrieving values from OTM
Posted by panibhushanvarma_allagadda@satyam.com (Allagadda, Pani Bhushan Varma) On 2010/07/15 06:25
Topic:
OOPS, better call it findDescriptorInstance….
About the params:
<![if !supportLists]>1. <![endif]>keyAttrName is the name of the primary key attribute of thedescriptor content type
<![if !supportLists]>2. <![endif]>assetId is the content management id of the described object (inyour case the id of the channel)
Hi Mario,
I have tried using your code snipet...But I am not able to fetch the values from General Descriptor.
Regards,