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.
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 :)