on 10-05-2005 5:30 PM
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
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.