Model Search - using Tagged Values - does it work?
1,452 views
Skip to first unread message
ali.king
unread,
May 23, 2012, 10:17:00 AM5/23/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sparx-enterprise-archite...@googlegroups.com
I am trying to use tagged values within my model -one to record relevant attributes against the objects and two - I'd like to be able to search on them.
I can get my tagged values in rtf doc gen ok - using valueOf(..) function.
But have failed miserably to get any kind of search to work.
Have tried the built in search options, using just tag name or tag value or mixtures of both and just never get any results back.
Can anyone comment - on probably that I'm being dumb and have missed something - or any other tips?
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sparx-enterprise-archite...@googlegroups.com
Try this as SQL Search
Code:
select o.ea_guid as CLASSGUID, o.Object_Type as CLASSTYPE ,o.Name,o.Stereotype from (t_object o inner join t_objectproperties tag on o.Object_ID = tag.Object_ID) where tag.Property like '#WC#<Search Term>#WC#' or tag.Value like '#WC#<Search Term>#WC#' or tag.Notes like '#WC#<Search Term>#WC#'
This only works for elements. If you need attributes, operations or connectors you'll need to use the appropriate tables (t_AttributeTag, t_OperationTag, t_ConnectorTag)