Skip to Content
author's profile photo
Former Member

PhaseIndicator next and previous phase buttons

Hi Guys,

On run time in a PhaseInticator control there are 2 buttons for moving on next phase and on previous phase.

Can somebody tell me how can i use these buttons. I mean at the moment i cant move from one phase to another, and what i actually need is how to catch the event on pressing some of these buttons.

Thanks!

Svetlomira

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    author's profile photo
    Former Member
    Oct 06, 2005 at 09:27 AM

    10x for the reply but this doesn't help me.

    My question was how can i catch an event when i press one of the 2 buttons that can be seen on the right side of the PhaseIndicator. The event that you talk about is when you mouse click on some enabled phase but it does not catch pressing the "next phase" button for instance.

    I hope somebody gives me an idea!

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Svetlomira,

      AFAIK this buttons are used for scrolling in case when PhaseIndicator does not fit completely in area due to own size. So there is nothing event to react from custom code.

      VS

  • author's profile photo
    Former Member
    Oct 06, 2005 at 08:10 AM

    The PhaseIndicator has the onSelect Event which contains the selected phase if you put the following source code in wdDoModifyView:

    if (firstTime) {
      IWDPhaseIndicator phase = (IWDPhaseIndicator)view.getElement("myPhaseIndicator");
    
      phase.mappingOfOnSelect().addSourceMapping("phase", "phasePhaseIndicator");
    }

    Then define your event handler with Parameter of Type String and name it "phasePhaseIndicator". Bind this one to onSelect.

    public void onActionPhaseIndicatorSelect(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, java.lang.String phasePhaseIndicator )
      {
        //@@begin onActionPhaseIndicatorSelect(ServerEvent)
        //@@end
      }

    The "phasePhaseIndicator" argument contains now the ID of the selected phase. I hope thats what you need?

    Frank

    Add comment
    10|10000 characters needed characters exceeded