Hi all,
I was wondering if there is a way to use WDMessageManager within the wdDoModify section. I would like to display a notification to the user during this period. When I tried to insert the WDMessageManager I receive an error about calling a non-static reference from a static method. Is it possible to use WDMessageManager from within wdDoModify? If so, how?
Thanks,
Jonathan
hi
check out this
public static void wdDoModifyView(IPrivateDisplayview wdThis, IPrivateDisplayview.IContextNode wdContext, com.sap.tc.webdynpro.progmodel.api.IWDView view, boolean firstTime)
{
//@@begin wdDoModifyView
wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess("Your text");
//@@end
}
regards,
Arun
Jonathan,
You can:
wdThis.wdGetAPI().getComponent().getMessageManager()
But, actually, you should avoid this: it's better to use MessageManager from action handler rather then from wdDoModifyView.
Valery Silaev
EPAM Systems
Add a comment