How to find a specified folder from a collection in jArchi

Started by Manj75, June 15, 2021, 14:44:43 PM

Previous topic - Next topic


I've been struggling to successfully use the collection.find(selector) and instead been having to resort to an iteration of the collection.

I have the following folder structure:

+-Open Projects

I use the following code to find Project2:
var openProjectsFolderObject = $("folder." + "Open Projects");
console.log("> Open Projects Folder: " + openProjectsFolderObject);

var projectFolder = openProjectsFolderObject.find($("folder." + "Project2"));
console.log("> projectFolders: " + projectFolders);

Output I get is:
> Open Projects Folder: [folder: Open Projects]
> projectFolders: []

Jean-Baptiste Sarrodie

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