Archi Forum

Archi => General Archi Discussion => Topic started by: Manj75 on July 22, 2021, 10:25:04 AM

Title: Showing the model tree path location of a view in the Note element on that view
Post by: Manj75 on July 22, 2021, 10:25:04 AM
Is there a way to show the full path of the View within that view itself in a Note element?

If I have a property for example 'Created By' = 'MyName' I can easily create a Note element in that view and display this value using the Labels tab.  I want to be able to similar to show the full path of the view.

e.g.

ModelName
  Views
     MyFolder
       MyView

In MyView I want a Note element that get populated with 'ModelName\Views\MyFolder'


Not sure if this is at all possible natively in Archi as using jArchi would alway require it to be run.
Title: Re: Showing the model tree path location of a view in the Note element on that view
Post by: Jean-Baptiste Sarrodie on July 22, 2021, 20:38:31 PM
Hi,

This is not possible as there is no label expression for that. That could be a good idea for a future version (and then please create an issue for that on GitHub so that we can track it).

In the meantime, the only way to do something similar would be to run a script that would compute this path and save it as a view property that you can later reference on a label.

Regards,

JB
Title: Re: Showing the model tree path location of a view in the Note element on that view
Post by: Manj75 on July 23, 2021, 09:14:03 AM
Thanks JB - I've created the issue [Feature Request] Access the model tree path location of a view using Labels #752

Using a jArchi script can achieve this but it would have to be run each time, it's better to have this natively supported
Title: Re: Showing the model tree path location of a view in the Note element on that view
Post by: ChampagnePerry on June 10, 2022, 17:11:00 PM
Have you considered using a "path" property on the folder?
If you had folders
 Data
   Domains
      Procurement
you could add a property to the folder called "path" with the value "Data > Domains > Procurement" and use a note on the diagram with the label expression $vfolder{property:path}.

Or you could use structured folder names like
 Data
   Data.Domains
     Data.Domains.Procurement
with the label expression $vfolder{name} but I think the first one is slightly more effort but better.