on 04-26-2009 6:32 AM
Hi friends..
while creating web dynpro component in WDA. automatically controller interface if_componentcontroller get created.
inside the code.. i can able to see
1. constant for context name
2. elments for context node
above 2, i created in the context node so its coming but
3. methods wd_get_api
returning
value(Result) type ref to IF_WD_COMPONENT.
what is the purpose of this code ?
why it wil come ? wen we use thid method ?
kindly give some inputs
regards
deva
hi,
Refer this SAP Online help :
http://help.sap.com/saphelp_nw70/helpdata/EN/aa/0b8b85dce1a941b78eb3aedf47a378/frameset.htm
refer this thread to get to know more on wd_get_api :
http://help.sap.com/saphelp_nw70/helpdata/EN/61/497941761b070de10000000a1550b0/frameset.htm
Thanx.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Solved my own
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
When you create any web dynpro component, two controller interfaces are created. One you can see at design time of type IF_COMPONENTCONTROLLER, this is the interface which provides you necessary API specific to your component only. Like contexts,nodes,attributes,events etc. The reference variable which is available in code is wd_this.
However at runtime you also get an access to so called run time interface of type IF_WD_COMPONENT. This is a generic standard API which is provided by web dynpro framework to access some important information related to the component. This particular interface contains near about 20 methods which gives you different information. To see the methods just go through the interface IF_WD_COMPONENT in se24. So the method wd_get_api just returns you the instance/object of type IF_WD_COMPONENT. This interface is implemented by web dynpro framework so you need not to worry about that. Once you have the instance you can use this API in your code as and when required.
I suggest you to go through the methods that will give you clear picture what type of information I am refering to.
Regards,
Neha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.