• SSJS Confirm Fires Twice from iconSrc if Cancelled

    By Jack Wilson 1 decade ago

    8.5.3 with the latest extension library (ExtensionLibraryOpenNTF-853.20111215-0914c).

     I've created a response to this with an attachement TestConfirm.xsp (as a zip file) which is the source for the XPagesJDBC.nsf JDBC_StaticViewPanelTable.xsp with 2 columns added to illustrate the following issue.

    I stumbled on this when adding a delete icon to every row in a ViewPanel. I wanted a confirmation if the user wanted to delete the record, and found that if an icon was used as a link in the column for the event to attach to, if the user cancelled the confirm dialog box then the message would pop-up a second time. Clicking OK however would only fire once.

    My workaround is to not use the iconSrc for the column but create the html on the fly to display the same icon. Then the cancel only pops-up once.

    If anyone else can reproduce this then what would be the best way to get this submitted as a bug? I'm assuming the issue is a core xpages thing, not an Extension Library issue.

    Thanks...jack

    • TestConfirm.xsp (zipped)

      By Jack Wilson 1 decade ago

      Please see original post for details.

      • This is in fact a problem in core XPages

        By Philippe Riand 1 decade ago

        It happens when you have an icon, and the event handler is then assigned to both the icon link and the text link. If you can please submit a PMR to get it fix in a fix pack, else it will be in the next release

        • This was logged...

          By Maire Kehoe 1 decade ago

          This issue was logged as SPR#PHAN8PPCMA, so please quote that reference if you're logging a PMR. Thanks.

          • Philippe/Maire: thanks for looking at this...

            By Jack Wilson 1 decade ago

            I'll see if I can get a PMR going from my end.

             

            Thanks...jack