Great! Thank you. That worked perfectly.
From: eLink Discussion:Livelink LiveReports Discussion[mailto:livereportsdiscussion@elinkkc.opentext.com] Sent: Friday, June 26, 2009 12:23 PMTo: eLink RecipientSubject: RE Category Value
RE Category Value
Posted by ldavies (Davies, Lindsay) on 2009/06/26 12:23
In reply to: Category Value
Posted by nbride (Bride, Nicole) on 2009/06/26 11:31
Message from Lindsay Davies <ldavies@opentext.com> via eLink
Hi Nicole,
This is a little tricky but Livelink maintains a table for Administrators to use, called CatRegionMap.
It forms a handy lookup for attributes within your category.
Assuming you want to only write a one shot report for this specific attribute, you can look up the relevant attribute number here and then write your join query for DTree and LLAttrData.
SQL> select * from catregionmap;
CATID CATNAME SETNAME ATTRNAME REGIONNAME ---------- -------------------- ---------- -------------------- -------------------- 100762 Mand1 String Attr_100762_2 53692 man cat details Attr_53692_2 45761 man cat details Attr_45761_2
So for my category "man cat" and attribute "details" you can derive the AttrID from the end of the regionname - in this case it is 2.
This is because the category itself is ID1 and there is only one attribute.
You final select will be something like
select <...> from dtree, llattrdata where dtree.dataid= llattrdata.id and defid=45761 and attrid=2 and valstr='my chosen value'
You need to know the datatype of the attribute to know which column to compare (valstr, valint, valdate, etc).
Hope this gets you heading in the right direction.
Good luck.
Regards
Lindsay Davies
European Escalation Team
Open Text UK
From: eLink Discussion: Livelink LiveReports Discussion [mailto:livereportsdiscussion@elinkkc.opentext.com] Sent: 26 June 2009 16:32To: eLink RecipientSubject: Category Value
Category Value
How do I query the specific value of an attribute is equal to something? For instance, I would like to find all documents where AttrName=CustomType, and CustomType=Value1. In the schema, I only see a way to query the AttrName, not the actual value of it though. I know we can do this through search, but I would like to write a report for it. Thank you in advance, Nicole
[To reply to this thread, use your normal E-mail reply function.]
Topic:
Discussion:
Livelink LiveReports Discussion
Livelink Server:
knowledge-wlweb01
To Unsubscribe from this Discussion, send an e-mail to unsubscribe.livereportsdiscussion@elinkkc.opentext.com.