on 05-25-2007 8:52 PM
Hi Gurus,
I've got a question regarding dynamic context binding.
How can I get a reference to a view context node from a method within component controller. I want to bind a table to it, but I don't to do context mapping manually (meaning to define context mapping between component context and view context), I want to do it dynamically.
Is it possible?
Kind regards,
Zakhar
Hello Zakhar,
Yes mapping is possible.
However u needto do this from within a method within the view controller, since the view controller context is local to the view and is not visible outside the view.
To the mapping dynamically you can use the method add_mapped_child_node of the interface if_wd_context_node_info. Once the mapping is done, the binding cn be done the usual way. Only constraint is this time the web dynpro wizard wouldn't help in getting the references, all the coding needs to be done manually.
You can also check out the method set_mapping_complete of the same interface.
Hope this info helps.
Regards,
Shweta
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
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.