read input field
I nead to read a htmlb input field from the application class.
i aam using the below code in oninput processing.
w_sc ?= cl_htmlb_manager=>get_data( request = runtime->server->request
name = 'inputField' id = 'PC_IN7' ).
application->vPC_IN7 = w_sc->value.
but i need to do the same thing in the application class method and not in oninput processing.
can this be done..
Ravikiran Chittum replied
Say you have a input field in your layout as:
<htmlb:inputField id = "mat_num" type = "STRING" tooltip = "Enter Material Number" value = "<%= matnr %>" />
Now in your onInput processing you can get the value entered in the input field as:
matnr = request->get_form_field( 'mat_num' ).
Now, say if you have a method in your application class, which accepts this material number as importing parameter then you can pass it as:
application->ITEM_CREATE( MATERIAL = matnr ).
Hope this would help you,