on 10-12-2009 1:11 PM
Hello,
I created webdynpro application in SAP Netweaver CE 7.11. I tried to use Popup window according this document "New Features of Web Dynpro Popup Window - SAP NetWeaver CE 7.11" Link: [http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/a04870c5-749b-2b10-06ba-d25515ef39e3&overridelayout=true]
But i got this error at below :
java.lang.ClassCastException:
class com.sap.tc.webdynpro.clientserver.uielib.standard.impl.TransparentContainer:service:tcwdwebdynpro com.sap.engine.boot.loader.ResourceMultiParentClassLoader 20e1ed5b alive
incompatible with interface
com.sap.tc.webdynpro.clientserver.uielib.standard.api.IWDWindowViewElement:service:tcwdwebdynpro com.sap.engine.boot.loader.ResourceMultiParentClassLoader 20e1ed5b alive
at com.elsys.app.internalproject.displayactivitiesincalendar.comp.ExpensesConfirmationView.wdDoModifyView(ExpensesConfirmationView.java:148)
Does anybody know whats wrong? I didnt see Webdynpro UI IWDWindowViewElement
Kind Regards,
Rasim
Thanks Armin. You are right I wrote wdDoModifyView in WindowController. Problem solved.
But I got another error :
"java.lang.NoSuchMethodException: Eventhandler onActionCancel not found for event onActionCancel "
I am trying to create Cancel and OK action in WindowController editor. But I couldnt see Action tab.. only method tab in there..
how can i create Cancel Action in Window Controller view editor?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Use the "Methods" tab to create the event handler method and create the action(s) using the API as described in the article:
// create an action from the event handler
IWDAction okAction = wdThis.wdGetAPI()
.createAction("OK Action", IPrivatePopupWindow.WD_EVENTHANDLER_ON_OK, true); // validating
IWDAction cancelAction = wdThis.wdGetAPI()
.createAction("Cancel Action", IPrivatePopupWindow.WD_EVENTHANDLER_ON_CANCEL, false); // non-validating
The constants WD_EVENTHANDLER_XYZ are created by the IDE for you.
Armin
Thanks Armin.
its solved.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gayathri,
Actually I ve been already read your documents before i created this application. But I would like to create confirmation like section "Creating the Popup Window of Window Type WARNING"
and I dont know whats wrong with? Which version WD runtime did you use for this samples ?
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Are you creating a seperate window in the webdynpro DC to display the confirmation window?
If that is the case then remove the window and use the code given in this article.
Creating the Confirmation Dialog Popup Window section.
This code will display the confirmation text message and create the window. You need not create.
Regards,
Gayathri.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Armin,
Our server WD-RUNTIME version is 1000.7.11.1.0.20081122225600 .
Fazal,
Thanks but I already read this document. and I am getting same error.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Check this Article, it will help u.
[http://www.sdn.sap.com/irj/sdn/nw-wdjava?rid=/library/uuid/2066c269-a17a-2c10-8fa7-f6a690c59288]
Thanks and Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Armin,
Where can i see WD runtime version?
I can say my nwds version:
SAP NetWeaver Developer Studio
SAP Enhancement Package 1 for SAP NetWeaver Developer Studio 7.1 SP01 PAT0007
SAP NetWeaver Developer Studio Web Dynpro User Interfaces
Version: 8.10.10008.090928104306 - Build id: 200909281912
jdk1.5.0_12
Thanks,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What is the exact version of your WD runtime?
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks satish for your answer...
But Problem is still continue... i got same error "TransparentContainer incompatible with interface IWDWindowViewElement"..
I wrote to this code wdDoModifyView section:
"if ( firstTime)
{
IWDWindowViewElement window = (IWDWindowViewElement) view.getRootElement();
}
"
what should i do now?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
IWDWindowViewElement : Is a API is the interface for any element in a view. This interface is used to uniquely identify an element and provide the appropriate[View|http://help.sap.com/saphelp_nw04/helpdata/en/d2/5a9a3daffc4c60e10000000a114084/frameset.htm]
Synchronize + Reload+Build all the used dc from project now try to deploy.
Best Regards
Satish Kumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
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.