on 04-18-2014 10:40 PM
Hi,
I have created a new field as value attribute in Relationship block of contact overview page. Since both AET and EEWB did not allow creation of the field as part of BUT051 I had to create value atribute. I have custom logic for the field. Can you please let me know how I can populate the field.
Thanks,
JC
Hi JC,
The context node that you are using is a mixed node, so from this node you need to get value node so that you can cast the value into cl_bsp_wd_value_node.
Here's the sample code for getter and setter method of that attribute:
DATA:
lr_mixed TYPE REF TO cl_bsp_wd_mixed_node,
lr_value_node TYPE REF TO cl_bsp_wd_value_node.
lr_mixed ?= current or lr_mixed ?= iterator. " use either of the code i dont have system right now
lr_value_node ?= lr_mixed_node->if_bsp_wd_ext_property_access~get_value_node( ).
Here, from lr_value_node get the property access method and set the attribute value to VALUE parameter.
Thats it
Thanks,
Bhushan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
You can use get method of your value attribut. Write your logic in get method assign final value to the VALUE parameter in get method.
Best regards,
Dharmakasi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.