AI

Hi all, 

Hopefuly someone can help me with this!

How can I show tree of objects and models from a certain database in a dialog box with script?

Every one of them to have option to be selected by the user, with possibility of multiple selections

Thank you!

by Rene Broll
Posted on Tue, 08/14/2018 - 10:45

Maybe this could help you:

Dialogs.showDialog(new myDialog(), Constants.DIALOG_TYPE_ACTION, "Just a test")

function myDialog(){
   
    this.getPages = function()
    {
        var iDialogTemplate1 = Dialogs.createNewDialogTemplate(600, 300, "First page");
       
        iDialogTemplate1.PushButton(15, 20, 150, 30, "Select Models", "btn1");
        iDialogTemplate1.PushButton(15, 80, 150, 30, "Select Objects", "btn2");
       
        return [iDialogTemplate1];
    }
   
   this.btn1_pressed = function(){
       var userModel = Context.BrowseArisItems("Select an model", "Select an model to edit (...) .", Constants.CID_MODEL);  
        // Do Something
   }
   
   this.btn2_pressed = function(){
        var userObject = Context.BrowseArisItems("Select an object", "Select an object to edit (...) .", Constants.CID_OBJDEF);   
        
        // Do Something
    }  
}

If the user should only see one database you can use this code:

var userModel = Context.BrowseArisItems("Select a model", "Select a model for XYZ", Context.getSelectedDatabases()[0], Constants.CID_MODEL);

 

I hope this is what you looking for..

0

Featured achievement

Rookie
Say hello to the ARIS Community! Personalize your community experience by following forums or tags, liking a post or uploading a profile picture.
Recent Unlocks

Leaderboard

|
icon-arrow-down icon-arrow-cerulean-left icon-arrow-cerulean-right icon-arrow-down icon-arrow-left icon-arrow-right icon-arrow icon-back icon-close icon-comments icon-correct-answer icon-tick icon-download icon-facebook icon-flag icon-google-plus icon-hamburger icon-in icon-info icon-instagram icon-login-true icon-login icon-mail-notification icon-mail icon-mortarboard icon-newsletter icon-notification icon-pinterest icon-plus icon-rss icon-search icon-share icon-shield icon-snapchat icon-star icon-tutorials icon-twitter icon-universities icon-videos icon-views icon-whatsapp icon-xing icon-youtube icon-jobs icon-heart icon-heart2 aris-express bpm-glossary help-intro help-design Process_Mining_Icon help-publishing help-administration help-dashboarding help-archive help-risk icon-knowledge icon-question icon-events icon-message icon-more icon-pencil forum-icon icon-lock