Page 1 of 2 12 LastLast
Results 1 to 5 of 8

Thread: Going back to conditional dialog

  1. #1
    Join Date
    Sep 2003
    Posts
    18

    Unhappy Going back to conditional dialog

    I have a Dialog that has a condition, based on user input, so when a user puts certain input in Dialog1 I can skip Dialog2 and go directly to Dialog3.

    So far, when pressing "next" from Dialog1, Dialog2 was skipped accourding to plan (when it was needed) and got to Dialog3.
    BUT..
    when pressing on "back" from Dialog3, I got back to Dialog2 (and it was not skipped as planned..), allthough the condition I have is on Dialog2 (in the event sequance)

    Trying to work with a different approach, using the WizardTreeIterator gave a problematic result, since I did not find where I can catch the event for clicking the "back" button and manipulating it to skip dialogs.

    How do I resoulve this problem ?

  2. #2
    assafsn Guest

    Question on your Question

    Sorry but I do not have an answer to your question. I'm far behind you and I understood you have successfully managed to conditionally skip or not skip a certain dialog based on a selection a user made in a previous dialog. Can you explain me how you do it ...

    Thanks allot.

  3. #3
    Join Date
    Sep 2003
    Posts
    18
    Assaf,

    You should have seen it in the forum, it was posted before in a similar format...

    If you want to jump forward (or backward) after the user has clicked "next", than you can use this code in your queryExitDialog method (since it is called every time that button is pressed):
    (you need to put this in a try-catch)
    WizardBean beanPointer = arg0.getWizard().getCurrentBean();
    WizardTreeIterator iter = arg0.getWizard().getIterator();
    beanPointer = iter.getNext(beanPointer);// or getPrevious for backward
    arg0.getWizard().setCurrentBean(beanPointer);


    since the "back" button is giving me some problems , I cannot give you any intelligible advice.
    Last edited by JDUnicorn; 07-26-2004 at 05:28 AM.

  4. #4
    assafsn Guest

    Question

    Thanks for your reply.

    But isnt it possible to use a condition on a sub sequence to get a simillar result with out the need of coding ?

  5. #5
    brianl Guest
    JDUnicorn,

    You should be able to accomplish what you want by using a condition on Dialog2 without using a code event. If the condition evaluates false, it should be skipped whether the dialog is traversed in the forwards or backwards direction. What is the condition that you are using? Is it possible that the condition has changed from being true to false when the user clicks Back?

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •