Skip to Content
author's profile photo Former Member
Former Member

cancelsubmit within tableviews

Hi all,

I want to delete an entry within a tableview by using a confirmation popup. So everytime I set htmlbevent.cancelSubmit = true the server event is fired anyway. How could I avoid this ? Here is the particular code fragment:



<htmlb:tableViewColumn columnName = "delicon"

title = "delete"

type = "user"

onCellClick = "delete"

fixedColumn = "true"

horizontalAlignment = "center">

<htmlb:image src = "ICON_DELETE"

onClientClick = "htmlbevent.cancelSubmit = !confirm('really want to do this?');" />



Is there anybody who can give me an idea what went wrong with this ?



Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Jul 13, 2004 at 12:28 PM

    Hallo Marco,

    One of two ideas:

    (1) Remove the onCellClick. This is the guy that is sending the request to the server. And add the click onto the image.

    (2) Add this following string onto the onClientClick "event.cancelBubble=true;" to prevent the event from been handled by someone else. Probably you only want to do it if htmlbevent.cancelSubmit is true.

    Recommended would be (1).


    Add a comment
    10|10000 characters needed characters exceeded

    • > But tell me, where I can find stuff like

      > "event.cancelBubble" ? Things like that never ever

      > appears in any documentation I read.

      Pure JavaScript. I have three books on JavaScript alone in my office. But in this case, I asked S., the real HTML and JavaScript expert in our group! I only do the ABAP parts :).

      Unfortunately there is no other way. Like I wrote before, you have here in mix of ABAP, BSP, HTML and JavaScript!

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.