Book a Demo

Author Topic: Model Search - using Tagged Values - does it work?  (Read 6270 times)

ali.king

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Model Search - using Tagged Values - does it work?
« on: May 24, 2012, 12:17:26 am »
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...

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Model Search - using Tagged Values - does it w
« Reply #1 on: May 24, 2012, 01:34:10 am »
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.
« Last Edit: May 24, 2012, 01:35:20 am by qwerty »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Model Search - using Tagged Values - does it w
« Reply #2 on: May 24, 2012, 04:10:49 pm »
Try this as SQL Search

Code: [Select]
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

ali.king

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: Model Search - using Tagged Values - does it w
« Reply #3 on: May 29, 2012, 07:01:19 pm »
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

ali.king

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: Model Search - using Tagged Values - does it w
« Reply #4 on: May 31, 2012, 10:20:26 pm »
ok - so sussed it

I was using Element.Attribute.AttTagValue

when I obviously should have been using:

Element.Attribute.TagValue

;-)