SA

Does anyone know how to finish a dialog of the wizard type on a page that is not the last page?

 

Example:

First page contains 2 option buttons. if option one is selected the user can press next to go to page 2, but if option two is selected the user can only finish the dialog, so the finish button should be shown.

by Rahul Nagar
Posted on Tue, 01/22/2013 - 10:12

Hi Simon,

 

This is very much possible. I can help you with that. If you can pass on the code, I should be able to help you with fixing that. 

 

Regards

Rahul

0
by Simon Abildgaard Author
Posted on Tue, 01/22/2013 - 10:37
function myDialog()
{

  this.getPages = function()
  {
          var iDialogTemplate1 = Dialogs.createNewDialogTemplate(600, 200, "Choose action");
          iDialogTemplate1.OptionGroup("Action");
          iDialogTemplate1.OptionButton(200,50,200,15,"Unique Number");
          iDialogTemplate1.OptionButton(200,75,200,15,"Variation");

          var iDialogTemplate2 = Dialogs.createNewDialogTemplate(400, 200, "Select master");

      return [iDialogTemplate1, iDialogTemplate2];
  }


this.init = function(aPages)
{
    aPages[0].setFocusedElement("Action");
    aPages[0].getDialogElement("Action").setSelection(0);
}

this.isInValidState = function(pageNumber)
{ 
    return true;
}

this.canFinish = function(pageNumber)
{
    return true;
}

this.canChangePage = function(pageNumber)
{
    return true;
}

this.onClose = function(pageNumber, bOk)
{
}

this.getResult = function()
{
    return 1;
}

var resul t= Dialogs.showDialog(new myDialog(), Constants.DIALOG_TYPE_WIZARD_NONLINEAR, "Assign numbers");

This code is copied from ARIS script help and I have just inserted my own dialog templates in the getPages function. I'm running ARIS SR2012_03.

What i want to do is, if the user selects the "unique number" option on the first page he should not be able to go to the next page but just se a finish button which will close/finish the dialog. If "variation" is selected he has to click next to go to the next page.

 

Thank you very much in advance :)

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