on 01-13-2014 8:19 AM
hi,
1) create a node - Node_project ( 0 -1 cardinality ) --> with attribute Project ( type char 100).
2) create a text view UI element -> go to TEXT property - bind with attribute Project.
3) go to wddomodify method of the view. use wizard choose attribute and select set radio button.
method WDDOMODIFYVIEW .
DATA : lo_nd_node_project TYPE REF TO if_wd_context_node,
lo_el_node_project TYPE REF TO if_wd_context_element,
ls_node_project TYPE wd_this->element_node_project,
lv_project TYPE wd_this->element_node_project-project.
* navigate from <CONTEXT> to <NODE_PROJECT> via lead selection
lo_nd_node_project = wd_context->get_child_node( name = wd_this->wdctx_node_project ).
* get element via lead selection
lo_el_node_project = lo_nd_node_project->get_element( ).
* @TODO fill attribute
data : lv_prj type char100. <<<< create a variable
CONCATENATE 'I am happy and proud to be resident at' 'Nice Homes' INTO lv_prj SEPARATED BY space.
* ( keep whatever project name you want by declaring a variable and assign the value and concatenate )
lv_project = lv_prj.
* set single attribute
lo_el_node_project->set_attribute(
name = `PROJECT`
value = lv_project ).
endmethod.
let me know if you have any issues.
Thanks
RK v
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Syed,
i.e. ( TEXT_VIEW_QUESTION + TEXT_VIEW_MY_PROJECT
lo_context_element->set_attribute(
exporting
name = 'MY_PROJECT'
value = 'Nice_homes' ). " your project name here
Now,
text view ui elements contain values as below
text_view_question : I am happy and proud to be resident at
text_view_my_project: Nice_homes
Result: I am happy and proud to be resident at Nice homes.
Hope this helps you
Regards,
Rama
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Create an attribute or node with attribute of type string and bind that attribute with text property of text view and dynamically set the value in that attribute.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
72 | |
26 | |
10 | |
9 | |
7 | |
6 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.