cancel
Showing results for 
Search instead for 
Did you mean: 

How to populate value node with values?

Former Member
0 Kudos

Hi Experts,

I have created a new view with a vlaue node of table type.

How can I populate values into the value node?

Which method will be useful?

Is there any material for Web UI Programing?

Please help me in this.

Thanks,

Adi.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Thanks Lakshminarayana.

I have done this.

Edited by: adiseshi reddy on Jun 5, 2008 2:57 PM

GSL_NARAYANA
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Adi

If ZVal is your value node then,

DATA: lref_entity TYPE REF TO cl_bsp_wd_value_node,

lref_bo_coll TYPE REF TO if_bol_bo_col,

lref_data TYPE REF TO <<your ZStructure>>,

ls_data type <<your ZStructure>>.

ls_data-<<field1>> = 'XYZ'

ls_data-<<field2>> = 'XYZ'

CREATE OBJECT lref_bo_coll TYPE cl_crm_bol_bo_col.

CREATE DATA lref_data.

CREATE OBJECT lref_entity

EXPORTING

iv_data_ref = lref_data.

lref_entity->set_properties( ls_data ).

lref_bo_coll->add( lref_entity ).

typed_context->ZVal->set_collection( lref_bo_coll ).

Hope this was helpful.

Best Regards,

Lakshminarayana

arunprakash_karuppanan
Active Contributor
0 Kudos

Hi,

Your question is not clear enough. The get_v_<field> and set_v_<field> methods are used to set/get values for node attributes

These methods will be under the context class(.CTXT).

If you want to populate fields in your view(.htm) using these nodes, then you have to bind them. For example, a inputfield can be bound to a value attribute by specifying

<htmlb:inputfield id="myfield" value="//mycontextnode/myattribute" />

Now the set method of 'myattribute' will affect what the inputfield shows. The get method will save what is entered in the inputfield.

Now, I'm interested in one thing. How did you create a value node of table type?

Arun Prakash