on 08-19-2009 7:34 PM
Hi All,
is it possible to fire the cutomevent IWDCustomEvent dynamically.Basically i have 2 buttons with their actions, on clicking buttonA it does some logicA and when somecondition is met it should also do buttonB Action without userinteraction on buttonB
public void onActionButtonA(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
{
//@@begin onActionAddPlan(ServerEvent)
wdComponentAPI.getMessageManager().reportSuccess("button 1 clicked:");
if(conitionismet)
{
it should dynamically call the onActionButtonB, for this how can i pass IWDCustomEvent instance
}
//@@end
}
public void onActionButtonB(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
{
//@@begin onActionAddPlan(ServerEvent)
wdComponentAPI.getMessageManager().reportSuccess("buttonaction);
//@@end
}
i cannot put the same LogicB inside the condition of if(conitionismet) of onActionButtonA.
So is it possible for fire an event onaction of a button dynamically without user interaction.
Thanks,
pkv
Hi,
You can just execute your function inside the "IF" clause:
public void onActionButtonA(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
{
//@@begin onActionAddPlan(ServerEvent)
wdComponentAPI.getMessageManager().reportSuccess("button 1 clicked:");
if(conitionismet) {
onActionButtonB(wdEvent);
}
//@@end
}
public void onActionButtonB(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
{
//@@begin onActionAddPlan(ServerEvent)
wdComponentAPI.getMessageManager().reportSuccess("buttonaction);
//@@end
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
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.