on 10-15-2008 10:23 AM
Hi everybody,
as per WDJ best practice, I want to centralize error and UI message handling in the wdDoBeforeNavigation of the root component controller.
In my project error handling mandatorily includes popup messages. When I try to open a popup in the wdDoBeforeNavigation I get:
com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: There must be something wrong, phaseLoopCounter: 21
Can anyone please explain this error and/or suggest a different approach?
Thanks, points will be awarded, Vincenzo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi thanks for your reply.
I have no handlers, I am using the following code:
IWDWindowInfo winInfo = wdComponentAPI.getComponentInfo().findInWindows("DummyPopup");
IWDWindow popUpWindow = wdComponentAPI.getWindowManager().createModalWindow(winInfo);
popUpWindow.setWindowPosition(WDWindowPos.CENTER);
popUpWindow.setTitle("hello");
popUpWindow.show();
I tried to move the same code in wdDoPostProcessing but the same happens.
Unlike the post you mention, actually popups aren't displayed at all.
any suggestion?
thanks, Vincenzo
Edited by: VINCENZO TURCO on Oct 15, 2008 12:04 PM
hi!
instead of creating modal window try with other windows like confirmation window .
you can use this kind of code as it is been done for save .
IWDControllerInfo cntrl_info = wdControllerAPI.getViewInfo().getViewController();
IWDConfirmationDialog confirm = wdComponentAPI.getWindowManager().createConfirmationWindow("data saved", cntrl_info.findInEventHandlers("save"),"save");
confirm.addChoice(cntrl_info.findInEventHandlers"ok"),"Confirm");
confirm.setWindowSize(250,100); confirm.setWindowPosition(100,100);
confirm.show();
Hi thanks for your prompt reply
However, the code you mention can be executed only in a view controller.
On the other hand, view controllers don't have the wdDoBeforeNavigation method.
I would like to use view-based popups as they are much more powerful and can display also warning/error/success images.
Thanks, vincenzo
Actually there was a subtler problem.
The popup was triggered if an instance variable was not null, starting a nested ("recursive") phase model execution.
The instance variable was not reset after the first execution and so an infinite recursion would take place.
Thanks, regards
Vincenzo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try this code
IWDWindowInfo winInfo = wdComponentAPI.getComponentInfo().findInWindows("DummyPopup");
IWDWindow popUpWindow = wdComponentAPI.getWindowManager().createModalWindow(winInfo);
popUpWindow.setWindowPosition(300,300);
popUpWindow.setTitle("hello");
popUpWindow.show();
Regards,
Sunaina Reddy T
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.