on 01-16-2009 1:01 PM
can anybody tell me the meaning of this statement in the implementation part of the view controller when we create a new view
import com.sap.test.wdp.IPrivate<View_name>;
i know that we are importing something bt what ?
and what is the significance of IPrivate and WDcontext
I suggest reading Chris Whealy's book "Inside Web Dynpro for Java".
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
1.WDcontext wdcontext give us the access to the whole context ...we can access any node attribute under the context using wdcontext..it gives full control of context...
for example like...
wdcontext.node
wdcontext.currentattribute..
wdcontext.currentelement...
2.Import we are importing here interface view which gives the detail about the view...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please check this link for doubts.
http://74.125.95.132/search?q=cache:_3Ci4jzLb0kJ:https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/d...meaningofinterfaceofview%2BImplementationinwebdynpro&hl=en&ct=clnk&cd=1&gl=in
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
A view will have such an import like IPrivate<view name> , where a view is is made up of different user interface elements, which can be nested in each other. Additional to the layout, a view also contains a controller and a context. The data to which the elements of the view can be bound are stored and managed in the view context, enabling them to be represented or used on the screen. The view controller can contain methods for data retrieval or for processing user input ( like setters and getters for such context attributes )
Hope this info is some what relevant to your question
Regards,
Sam charles
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
import com.sap.test.wdp.IPrivate<View_name>;
This indicates the import of an interface of the view. It is created by the WD frame work when you create a view. It consists the details about context and methods of the view.
wdContext is refrence to your context of the view. Using this we can refer anu node/attribute in the context.
Hope you understand it.
regards
Siva
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
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.