Profile picture for user celso.mattheus

I'm having trouble in making a dialog box work with a Dialog Function. The problem is, I don't even know what is the matter, because when I try to run it, Aris doesn't report any specific or generic sintax error. It simply says "Error running script". 

What is my goal with this script: I simply want to make the Ok button disabled and to make it available only if the user check the Check Box. Otherwise, only the Cancel button will be available.

I wonder if someone has any idea what am I not seeing here.

 

function dialogo(){  

var Template = Dialogs.createNewDialogTemplate(0,0,570,40,"Importação não concluída");

        Template.GroupBox(25,5, 400, 45, "Resumo da Importação")

        Template.Text(35,20,400,100, numObjAris+" objetos foram encontrados no modelo Aris.")

        Template.Text(35,30,400,100, numObjXML+" objetos foram encontrados no XML importado.")

  Template.Table(25, 55, 550, 140, ["Objeto"], [Constants.TABLECOLUMN_SINGLELINE], [120], "tabela_Objetos", Constants.TABLE_STYLE_DEFAULT);

        Template.CheckBox(420,195,200,30, "Gerar relatório de erro", "RELATORIO")

  Template.OKButton();

  Template.CancelButton();

 var criarDialogo = Dialogs.createUserDialog(Template);

        criarDialogo.setDlgListBoxArray("tabela_Objetos", objetosArray);

        criarDialogo.setDlgEnable(5, false);    

 var Result = Dialogs.show(criarDialogo);

}

function eventos(item, ação, valor){

        var retorno = false;

        switch(ação){

           case 2:

            criarDialogo.setDlgEnable(2, true);

            break;

        };

        return retorno;

}

dialogo()

by Robert Goldenbaum
Badge for 'Question Solver' achievement
Posted on Tue, 02/23/2016 - 08:49

Hi,

as fas as I know, you cannot disable the standard ok and cancel buttons...

BR Robert

0
by Celso Mattheus Cantanhede Silva Author
Posted on Wed, 02/24/2016 - 15:50

In reply to by rgoldenbaum

Oh. Didn't know that. Well, I'll try something else then. Thank you.

0

Featured achievement

Genius
You like to help others solve their problems by answering questions.
Recent Unlocks
  • KF
  • KH
  • RG
  • Profile picture for user Vee_ARIS
  • Profile picture for user smarty
  • PacMan

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