cancel
Showing results for 
Search instead for 
Did you mean: 

Button event

Former Member
0 Kudos

Hi,

I am new to BSP.

I wrote a BSP application in which I have an Update button. If I click that button, I need to update the table entries in the database table.

My questions are:

1. Do I need to write the code in onClick event or onClientClick event?

2. Do I need to write a function for this and call that function onClick = "function name". Is this correct way?

Plz help me....

Thanks,

Satish.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Satish,

If your problem is solved you should consider rewarding

points, plz visit this link to know about Contributor

Recognition Program.

https://www.sdn.sap.com/sdn/index.sdn?page=crp_help.htm

Regards,

Narinder Hartala

Former Member
0 Kudos

Hi Satish,

You have to write server event name at onClick and then

you have to capture it in onInputProcessing.

onClientClick is used for client side validations, like

before updation you can check that user has given valid

input or not. It saves a server roundtrip and makes

application more interactive.

visit this link it will definitely help you.

http://help.sap.com/saphelp_erp2004/helpdata/en/6b/6d3a3cc7f5e866e10000000a11405a/frameset.htm

Also study button.bsp in BSP Application SBSPEXT_HTMLB.

Get back if have any doubts.

Regards,

Narinder Hartala

Message was edited by: Narinder Hartala