Skip to Content
avatar image
Former Member

How to Attach dynamic F4 to Dynamically created fields

Hi Guys,

I have to create dynamic input fields and need to attach F4 with them. With help of Multipane i am creating Input fields and have created a general OVS for all of the required F4. But how to handle these at run time ? or is there any solution to meet this requirement.

Regards,

Shail

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Oct 29, 2010 at 06:19 AM

    If you get a reference to the context node info - IF_WD_CONTEXT_NODE_INFO you can call method SET_ATTRIBUTE_VALUE_HELP to set the value help that should be used for that context attribute.

    you can get the node info from the node using GET_NODE_INFO.

    Chris

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 29, 2010 at 07:29 AM

    hi,Shail.

    You know, the input field created dynamically should also be bound to one context attribute. For example,you can use :

    ** create input field for attribute CARRID
        CALL METHOD cl_wd_input_field=>new_input_field
          EXPORTING
            bind_value = 'FLIGHTS.CARRID'   "this is Context Attribute, even the context node is also created dynamically
            id         = 'INPUT_FIELD_CARRID'
          RECEIVING
            control    = lo_input_field.
    

    Then, you can make use the node_info, just like following

    CALL METHOD co_dynnode_info->set_attribute_value_help
            EXPORTING
              name            = 'CARRID'
              value_help_mode = if_wd_context_node_info=>c_value_help_mode-ovs
              value_help      = 'OVS'.
    

    Hope it can help you a little.

    Best wishes.

    Add comment
    10|10000 characters needed characters exceeded