cancel
Showing results for 
Search instead for 
Did you mean: 

Get user input into BSP HTML input field

Former Member
0 Kudos
231

Hi,

I am using the method described here http://www.sapdev.co.uk/webapps/bsp/bsp_userinput.htm to capture the the user input within a html bsp page but am wondering if there is a another method. For example instead of using the <input> tag within the <form></form> tags is there a way to capture the user input using a <a href... tag. I can get it to call the OnInputProcessing using the HTML code similar to this ...a href="?onInputProcessing(save)".... but this does not seem to bring through the values entered within any input fields!

Any help would be much appreciated, or even a simple 'there is no other way'

Mart

Edited by: Mart on Apr 16, 2011 12:30 AM

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

This can be done by adding a javascript function to the a href onclick event which manually submits the form!

krishnendu_laha
Active Contributor
0 Kudos

hello,

For user input in a single field, <input> either html / htmlb is the only option; although you csn have editable filed in table control...but that depends on requirement...

If your problem is that the value you are entering not transferred in application, then you need to declare variable in attributes of the page with same name of input element....

hope it is going to help you.

Thanks

Former Member
0 Kudos

Hi there, thanks for reply but i can get it to bring through the field values using the following code:

<INPUT type="submit" name="OnInputProcessing(save)" value="Save">

but i would like to bring through the field values using

&lt;a href="?OnInputProcessing(save)" >Save&lt;/a>

The input/ submit command must do something different to the simple a href so it may not be possible but just thought id ask!

Regards

Mart

krishnendu_laha
Active Contributor
0 Kudos

Hello,

if you want to do in that way, it is require to pass those values in URL parmater using "&"...because it is going to open in a new session and the data is not shared....

  • First parameter passed in URL always have "?"

Thanks