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
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?

ta

cheers ali...

[original message]

qwerty

unread,
May 23, 2012, 11:34:00 AM5/23/12
to sparx-enterprise-archite...@googlegroups.com
No problem so far. If you use the Extended search you will find all your tags/contents. What exactly are you trying to find?

(Maybe my book will help you understand a bit more. See link below. I haven't yet included a tag search but it's obviously worth while to add one.)

q.

[original message]

Bellekens@localhost Geert Bellekens

unread,
May 24, 2012, 2:10:00 AM5/24/12
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)

Geert

[original message]

ali.king

unread,
May 29, 2012, 5:01:00 AM5/29/12
to sparx-enterprise-archite...@googlegroups.com
I must have just been being stupid
- probably stupid computer was doing what I asked it to do, rather than what I want it to do.

So, I just started from scratch and extended searched worked fine.

Annoyingly tho, the Diagram filters option doesn't allow you to get to Extended search :-(

And what I really wanted to be able to do was tag elements in the model, so that I could use filters on the diagram to display based on tag/value etc

any thoughts on whether this is achievable?

ta

[original message]

ali.king

unread,
May 30, 2012, 8:20:00 PM5/30/12
to sparx-enterprise-archite...@googlegroups.com
ok - so sussed it

I was using Element.Attribute.AttTagValue

when I obviously should have been using:

Element.Attribute.TagValue

;-)

[original message]
Reply all
Reply to author
Forward
0 new messages