Author Topic: How to control 'browser hidden' elements  (Read 3474 times)

Agecoat

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
How to control 'browser hidden' elements
« on: November 11, 2013, 08:47:05 pm »
Hi all,

A quick search in this forum did not produce any answers on  this one, therefor this question:

In the repository, we want elements to be defined only once and used (on diagrams) many times. This also holds true for elements not shown in the project browser like Boundary and Note and perhaps other toolbox items that won't appear in the project browser when instantiated on a diagram.

Now as in any development effort of some magnitude, not only the model content but also the model structure is subject to change over time. In such case, the elements are explicitly moved from the old to the new structure and when applicable, also the diagrams they appear in.

When all its model contents is moved out or deleted, the old model structure is to be removed from the repository as well. But what about the elements created and shown in diagrams that are not shown in the project browser? Where are they located and how is their location to be altered?

A quick test seems to reveal that these 'browser hidden' elements are created in the package of the diagram they are instantiated in. When used in diagrams outside this package (by copy pasting its diagram appearance) we benefit of the single point of definition like for all 'browser visible' elements.

When deleting the package in which the 'browser hidden' element was originally created (being part of the old structure), the element seems to be deleted from the model as well, since all occurances on diagrams in the new structure are gone.

The ALt-G command does not seems to work for boundaries. Though the Properties of such an element reveal an attribute called "Package" stating the package in which the element is created (only shown on diagram occurance other than the package in which created), there is no known way of relocating the element, since it is not shown in the browser.

Question:

Is it possible to show 'browser hidden' elements (like Boundary, Note) in the browser in order manipulate their location in the same way as for 'browser shown' elements? If not possible, in what way can 'browser hidden' elements be managed (relocated)?

Thanx in advance!

Agecoat.
Using EA Corporate 8.0.863

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: How to control 'browser hidden' elements
« Reply #1 on: November 11, 2013, 09:32:18 pm »
You can write our own search to reveal those hidden elements. E.g.
Code: [Select]
SELECT
t_object.ea_guid AS CLASSGUID,  t_object.Object_Type AS CLASSTYPE, *
FROM
t_object
WHERE t_object.Object_Type = "Note"
You can find them in diagrams via Ctrl-U.

In order to move them you need to write a script. It may use the GUID or the Object_ID to identify them

q.
« Last Edit: November 11, 2013, 09:34:36 pm by qwerty »

skiwi

  • EA Expert
  • ****
  • Posts: 2080
  • Karma: +46/-82
    • View Profile
Re: How to control 'browser hidden' elements
« Reply #2 on: December 16, 2013, 12:04:23 pm »
See more
SD Interaction states Bug


I am sure there is a post in the forum, or I made a bug report/feature request, on the need for a find object such as note in other diagrams functionality.

« Last Edit: December 16, 2013, 12:04:46 pm by skiwi »
Orthogonality rules
Using EA16.1 (1627) on Windows 11 Enterprise/64 bit. Repositories in SQLServer2019 DB Schema 1558.
WebEA on Pro Cloud Server 4.2.64

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +54/-3
    • View Profile
Re: How to control 'browser hidden' elements
« Reply #3 on: December 17, 2013, 09:49:10 am »
Quote
Question:

Is it possible to show 'browser hidden' elements (like Boundary, Note) in the browser in order manipulate their location in the same way as for 'browser shown' elements? If not possible, in what way can 'browser hidden' elements be managed (relocated)?

Diagram-only objects stay with their diagram. That is, if you move the diagram into a new package (by drag-and-drop in the project browser), any objects that are on the diagram but not in the project browser will also be moved.
« Last Edit: December 17, 2013, 10:02:44 am by KP »
The Sparx Team
[email protected]

skiwi

  • EA Expert
  • ****
  • Posts: 2080
  • Karma: +46/-82
    • View Profile
Re: How to control 'browser hidden' elements
« Reply #4 on: December 18, 2013, 02:23:40 pm »
Quote
Diagram-only objects stay with their diagram. That is, if you move the diagram into a new package (by drag-and-drop in the project browser), any objects that are on the diagram but not in the project browser will also be moved.
What about for diagram only objects that are on more than one diagram
*e.g. copy a legend or note and paste as link on another diagram?
Orthogonality rules
Using EA16.1 (1627) on Windows 11 Enterprise/64 bit. Repositories in SQLServer2019 DB Schema 1558.
WebEA on Pro Cloud Server 4.2.64

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: How to control 'browser hidden' elements
« Reply #5 on: December 18, 2013, 08:57:10 pm »
I just tried that :-) When you move any diagram where such an invisible element is stored then it gets moved to the diagram's new location. No matter whether it has been created there originally. Under this aspect the moving does not really make sense. Just like not showing the element in the browser. Most likely the initial thought was: don't clutter the browser with such notes, text elements - and - relations. Was it a good design idea? Has anyone at Sparx ever questioned it? You might give the answer yourself.

q.