on 01-18-2010 3:44 PM
Hi,
I have created a contextual panel and also created a method for supplying the values into it but still when I am running the application , no data is displaying in the contextual panel. Please suggest some solution.
hi
did u mean .. u have binded a context attribute with UI and u want to display the UI with this value on browser ??
if yes , this is how it can be done .. suppose I want to display the input field with some value , thn I wud create a context node and a context attribute ( of type string ) under it in the context tab .. I wud thn create a UI Input field under the layout tab and bind its value property with the context attribute ..
I can place one UI Button , on action of which I can display the value in the Input field ..
so I will use the OnAction property , I will make a action and in the correponding method ..
I will use the set_attribute method to set the input field with some value ...
U go to the method where u wish to place ur code
Now press CONTROL+F7 , u wud be directed to a control wizard
Now choose the radio button read context node/attribute
Now press F4 and choose the context attribute and press enter , the code shud be automatically generated
DATA lo_nd_cn_node TYPE REF TO if_wd_context_node.
DATA lo_el_cn_node TYPE REF TO if_wd_context_element.
DATA ls_cn_node TYPE wd_this->element_cn_node .
DATA lv_attr LIKE ls_city-ca_attr.
* navigate from <CONTEXT> to <CN_NODe> via lead selection
lo_nd_node = wd_context->get_child_node( name = wd_this->wdctx_ca_attr).
* get element via lead selection
lo_el_cn_node = lo_nd_cn_node->get_element( ).
* set single attribute
lo_el_cn_node->set_attribute(
EXPORTING
name = `CA_ATTR`
value = lv_attr ).
// I am setting the context attribute ca_attr with the value lv_attr
regards,
amit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No, actually I was asking that values are not getting displayed in the contextual panel. As we know that links are there in the contextual panel. But in my contextual panel nothing is getting displayed though I have supplied the values like 'HOME' , BACK,LOGOUT etc. But they are not getting displayed in the panel. The panel is blank. Please suggest what could be the reason.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.