Skip to Content
avatar image
Former Member

CL_WD_INPUT_FIELD

Hi

I have created input fields dynamically using cl_wd_input_field class on the WDDOMODIFYVIEW method of 1 view.

These fields are themselves created with the dynamic context node created at run time.

Now i want to pass the values entered in these dynamic input fields into the next view or even the WDDOBEFOREACTION Method once i enter the submit button.

How can this be possible..

Shivi Goel

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Nov 04, 2009 at 11:05 AM

    Hi,

    Are the context nodes are also dynamic.

    when you create the INPUTFIELDS you might have bound the VALUE property to some ATTRIBUTE right...

    Is this context attribute a static/dynamic one..

    You can use GET_ATTRIBUTE method of if_wd_context_node..so that these values can be used in the 2nd view.

    Regards,

    Lekha.

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 04, 2009 at 11:15 AM

    Hi,

    lo_el_resume_info->get_attribute(

    EXPORTING

    name = `USERID`

    IMPORTING

    value = lv_userid ).

    pass the value lv_userid to a variable in comp controller.

    i.e 1. Declare a varibale gv_temp of type lv_userid in attributes of comp controller.

    2. move corresponding lv_userid to wd_comp_controller->gv_temp .

    3 in the WDDOINIT of next screen bind the value wd_comp_controller->gv_temp to the one which u want using set static attributes.

    Regards,

    Priya

    Add comment
    10|10000 characters needed characters exceeded