9
« on: January 04, 2023, 12:13:41 am »
Happy New Year!
I have the following SQL query (for Microsoft SQL Server) that will find conveyed signal items on connectors in SysML IBD diagrams:
select ea_guid as CLASSGUID, Connector_Type as CLASSTYPE, 't_connector' as CLASSTABLE, *
from t_connector
where ea_guid in (
select x.Client from t_xref as x
join t_object as o
on x.Description like concat('%', o.ea_guid,'%')
where x.type = 'connector property'
and x.Behavior = 'conveyed'
and o.Object_Type = 'Signal');
This is quite handy, so I want to make a query that works within a search folder inside the Focus window... I modified the query as follows:
select ea_guid as CLASSGUID, Connector_Type as CLASSTYPE, 't_connector' as CLASSTABLE, isnull(Name,'NO_NAME') as Name
from t_connector
where ea_guid in (
select x.Client from t_xref as x
join t_object as o
on x.Description like concat('%', o.ea_guid,'%')
where x.type = 'connector property'
and x.Behavior = 'conveyed'
and o.Object_Type = 'Signal');
I added isnull(Name,'NO_NAME') as Name
to the query so that there is always something to click in the returned result set, even if the connector is nameless.
Unfortunately, "Find in diagrams" is greyed out for the rows returned in the Focus search result set. Can anyone suggest what I have done wrong (or might this be a bug)?