cancel
Showing results for 
Search instead for 
Did you mean: 

Implementation in web dynpro view

gill367
Active Contributor
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I suggest reading Chris Whealy's book "Inside Web Dynpro for Java".

Armin

Answers (4)

Answers (4)

Former Member
0 Kudos

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...

Former Member
0 Kudos

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

Former Member
0 Kudos

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

former_member197348
Active Contributor
0 Kudos

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

gill367
Active Contributor
0 Kudos

BUT What do you mean by interface of the view?

what are its charecterstics?

Former Member
0 Kudos

Interface in general is used to expose the methods and the Context variables of a Controller.....Interface for a view is used when a view from another component needs to call the view in the other component....

Hope it helps.

Shikhil