cancel
Showing results for 
Search instead for 
Did you mean: 

BSP get field value

merveguel
Participant
0 Kudos

Hi,

I am developing BSP pages and trying to retrieve data from user input with OnInputProcessing event.

My code block is ;

  <body>

<form method="post" name="form" id="form" >

   <input type="text" class="form-control" id="input1" name="OnInputProcessing(a1)">

   <button type="submit" name="OnInputProcessing(a2)" class="btn btn-default" id="button1" value="buttonvalue">Button</button>

</form>

</body>

OnInputProcessing Event;

DATA: fields TYPE tihttpnvp

.

CALL METHOD request->if_http_entity~get_form_fields

     CHANGING

       fields = fields.

Fields table is only return;

Name                    Value

oninputprocessing      a1

oninputprocessing      a2

I want to retrieve the data which is entered the input1 field.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member191569
Active Participant
0 Kudos

I am not sure if the problem is this, but try to use another name for HTML input field. The current value is OnInputProcessing(a1), change it to param1, for example and check if the value is correctly sent to the server.

Hope it helps.