cancel
Showing results for 
Search instead for 
Did you mean: 

Message confirm in BSP like in Javascript

Former Member
0 Kudos
357

Hi there,

I would like to know if there is a confirm dialog box défined in BSP/ABAP like in javascript in order to confirm or not the action in a onInputProcessing?

I tried to put a javacscript function with the confirm dialog box in a onclick but the problem, the onInputProcessing is always executed in spite of the answer of the user to the confirm dialog box.

Does anyone have any idea or any advices?

thanks.

View Entire Topic
athavanraja
Active Contributor
0 Kudos

you can use a confirm js dialog box check this button code sample,

clicking cancel wont trigger server event

 <htmlb:button id            = "myb1"
                    onClick       = "myonClick"
                    onClientClick = "var Check = false; Check = confirm('Do you want to Continue?');if(Check == false){ htmlbevent.cancelSubmit = true; }"
                    text          = "Test button" />

Former Member
0 Kudos

Hi,

I like your solution by using a confirm box chek button. But, it is possible to put a onInputProcessing into this button?

Thanks.

athavanraja
Active Contributor
0 Kudos

i thought you were looking for an answer for a BSP related issue, however jaideep sriniva... has given you a answer for ABAP dialog and you had said that its a very helpful answer.

regarding my code using htmlb:button , give it a try first. it has got both onclick and onclient click.

if you click OK in the confirm dialog it will proceed to oninputprocessing and if you cancel it wont go to oninputprocessing (server)

Former Member
0 Kudos

That's right, I was looking for a ABAP solution but I tried to implement sriniva solution in my program but it isn't really adapted to my program conception. I thought it was good but unfortunatly not. So, I'm looking for another way.

In my BSP program, I've a button when you click on it, I store all data into a file. My button declaration is like that :

<input class="butClass" type=image name="onInputProcessing(valider)"
              src="<%=rep %>Server.gif" width="23" height="23"
              alt="Publish"
              id="valid" onClick="WaitCursor();"
              onMouseOver="selOn(this)" onMouseOut="selOff(this)" onMouseDown="selDown(this)"
              onMouseUp="selUp(this)"/>

Problem, can I integrate your solution into my program conception?

Thanks.