cancel
Showing results for 
Search instead for 
Did you mean: 

How to Attach dynamic F4 to Dynamically created fields

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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.

ChrisPaine
Active Contributor
0 Kudos

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