subfolder path

Started by margolyesh, May 26, 2025, 23:01:49 PM

Previous topic - Next topic

margolyesh

Hi all!

How can I get the "folder" object by the full path

var fldr = $("folder.Business.subfolder1.subfolder2").first()

or something like that...

romuald

I think that you have to do a recursive function which is getting the parent of the element and return it's name and concate them

margolyesh

I can do this as long as there are no repeating folder names in the tree. Then shamanic dances with tambourine begin.
:(

Jean-Baptiste Sarrodie

Hi,

I've shared a snippet for that some time ago.

See https://forum.archimatetool.com/index.php?topic=976.msg5311#msg5311 for the original discussion.

Regards,

JB
If you value and use Archi, please consider making a donation!
Ask your ArchiMate related questions to the ArchiMate Community's Discussion Board.

margolyesh