cancel
Showing results for 
Search instead for 
Did you mean: 

PhaseIndicator next and previous phase buttons

former_member192412
Discoverer
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member192412
Discoverer
0 Kudos

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!

Former Member
0 Kudos

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

Answers (1)

Answers (1)

Former Member
0 Kudos

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