Skip to Content
author's profile photo Former Member
Former Member

How to clear value set values from node info

Hi,

I have set some values on value set to display on a dropdown in my view. using following method.

l_node_info->set_attribute_value_set( name = 'XYZ' value_set = l_value_set ).

Now i need to clear node info value set. Otherwise particular attribute which i used for dropdown is always showing values added .

Please suggest how to clear value set.

Thanks,

Venkat.

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 13, 2009 at 04:15 AM

    Hi,

    It is very simple. Add empty value set to node info when ever you dont want values in drop down.your problem will be solved.

    clear l_value_set.

    l_node_info->set_attribute_value_set( name = 'XYZ' value_set = l_value_set ).

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 13, 2009 at 04:39 AM

    hi,

    if i m interpreting correctly , u need to reset ur drop down . U may proceed like this :

    append initial line to ur internal table which is bind to the dropdown , thn set the index to 1

    like this

    
     DATA lo_nd_cn_module TYPE REF TO if_wd_context_node.
    
    * navigate from <CONTEXT> to <CN_MODULE> via lead selection
      lo_nd_cn_module = wd_context->get_child_node(
      name = wd_this->wdctx_cn_module ).
    
      lo_nd_cn_module->set_lead_selection_index( 1 ).
    
    

    I hope it wud help

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 13, 2009 at 05:31 AM

    Hi,

    Interface IF_WD_CONTEXT_NODE_INFO is for metadata of a node. It has nothing to do with the values in dropdown list.

    In order to manipulate the values in the dropdown of an attributes, you can use the IF_WD_CONTEXT_NODE.

    As you are saying its a dropdown, what I can suggest is to write supply function for the node.

    And then get the index (V_INDEX) of the value you wanted to see in the dropdown list, and then use the following code in the method WDDOINIT

    LO_NODE->SET_LEAD_SELECTION_INDEX( INDEX = V_TABIX ).
    

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.