Hi everyone,
In my report I have to give option to the user with dialog box to select a destination folder inside ARIS before further selection of objects and models.
How can I present the user all folders(groups) in database?
Thank you in advance
Hi everyone,
In my report I have to give option to the user with dialog box to select a destination folder inside ARIS before further selection of objects and models.
How can I present the user all folders(groups) in database?
Thank you in advance
Thanks Kay,
I think this is it.
Additional question, in the same dialog box I have to list all the models and objects in the database(preferably to be shown as a tree with parent groups and children) and next to each item(model or object) to be checkbox for the user to select that object or model.
Do you have some suggestion?
Thanks again.
Hi all,
I'm trying to use setBrowseClientFolders() in a report dialog to let users browse for a Windows folder destination, but nothing happens when I call it (Windows folder explorer doesn't open).
My Setup:
Tested on versions 10.0.26 and 10.0.28 - same behavior
Has anyone successfully used setBrowseClientFolders() in ARIS 10.0.x or later versions ? Also, is there an alternative approach for folder browsing that actually works?
Kay Fischbach on
A little bit complicated, but it works:
in your getPages method you add a button to your dialogTemplate
you then add a button-reaction function to your dialog function like this:
this.PB1_pressed = function(){ this.dialog.setBrowseClientFolders("BCF", "Pick a destination folder", "", false); }To catch the returned value, you need another method in your dialog function:
this.BCF_subDialogClosed = function(subResult, bOK){ if(bOK){ Context.setSelectedPath(subResult); } }As long as you create your output object with Context.createOutputObject() this should work - it doesn't matter if you created the output object before or after the dialog execution (at least that's the case for me, with ARIS 10.0.3).
I hope this helps.
EDIT
AH CRAP. Miss-read your question. Here is the correction (to pick a group in the active ARIS-Database):
create the button as described above.
then the button-reaction method should be:
this.PB1_pressed = function(){ var activeDB = ArisData.getActiveDatabase(); result = this.dialog.setBrowseArisItems("BF1", "Pick Group", "Pick a group", activeDB.ServerName(), activeDB.Name(Context.getSelectedLanguage()),Constants.CID_GROUP,[]); }and the catcher method should be:
this.BF1_subDialogClosed = function(subResult, bOK){ var foundGroup = ArisData.getActiveDatabase().FindOID(subResult); if(foundGroup.KindNum() == Constants.CID_GROUP) { //The foundGroup object is an object of the class Group (report). Feel free to do with it whatever you want } }