We have a wizard and a custom button which does some logic to determine the next step. The logic relies on an “errorModel” returning zero rows. The first step of the wizard allows the user to update the detailModel; the custom action should save the detailModel, update the errorModel, then retrieve the first row. If nothing is returned, the navigation will go to step4; otherwize the navigation will go to step3. Here’s my code: var $ = skuid.$; // retrieve the detail model var IQmodel = skuid.model.getModel(‘Intake Queues’); // save the detail model IQmodel.save(); // get the Errors model var errorModel = skuid.model.getModel(‘InvalidIQ’); errorModel.updateData({callback: function(){ var row = errorModel.getFirstRow(); // check if any Error records are returned var wizard = $(‘.nx-wizard’).data(‘object’); if(row==null) { // if true, navigate to step3 wizard.skooWizard(‘navigate’,‘step4’); } else { // if false, navigate to step2 wizard.skooWizard(‘navigate’,‘step3’); } } });
This topic has been closed for replies.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.