Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9760

Re: How can i read drop down list entries?

$
0
0

Hi,

 

You can get the value list of ddk field by using method GET_ATTRIBUTE of interface IF_WD_CONTEXT_NODE_INFO which returns the attribute info type structure WDR_CONTEXT_ATTRIBUTE_INFO.

 

You can find the field VALUE_SET in the structure WDR_CONTEXT_ATTRIBUTE_INFO which contains the value list of ddk field.

------------------------------------------

Example:

I want to read the drop list of an attribute FIELD1 of node INPUT

 

Data: lo_node           type ref  to if_wd_context_node,

          lo_node_info      type ref to if_wd_context_node_info,

           ls_attr_info          type WDR_CONTEXT_ATTRIBUTE_INFO.

 

 

" read the node reference

lo_node = wd_context->get_child_node( name = wdctx_input ).

 

"Get node info ref

lo_node_info = lo_node->get_node_info( ).

 

" get the attribute info

ls_attr_info = lo_node_info->get_attribute(  name = 'FIELD1' ).

 

" here you can get the value list as below

 

   "ls_attr_info-value_set

------------------------------------------

 

Hope this helps you.

 

Regards,

Rama


Viewing all articles
Browse latest Browse all 9760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>