Tile selection frame does not disappear on second click in N4V for Webi HTML export

Anonymised summary of support ticket #588491 (2023-06-13)

Symptom

In N4V for Webi HTML export, when a tile is selected via a click without a linked element, the red selection frame remains visible after the second click. The selection value is removed from local storage, but no postMessage is sent to notify the parent frame of the deselection. The frame only disappears when navigating away and returning to the page or performing another action on the page.

Environment

N4V FOR WEBI extension, SAP BusinessObjects Web Intelligence, HTML export mode, Tomcat server hosting the Webi report.

Resolution

  1. Apply the provided HotFix to correct the event handling in N4V for Webi.
  2. In the HTML export configuration for tiles, specify the reset function to redraw the selection frame if required. Example CSS-based solution to maintain the red frame after deselection:
  3. ```javascript
  4. var elements = document.getElementsByClassName(id_tile);
  5. if(elements[0]) {
  6. elements[0].style['border-style'] = 'solid';
  7. elements[0].style['color'] = '#ff0000';
  8. }
  9. ```

Other resolution

If the red frame should disappear on deselection, ensure the reset function properly clears the visual state. The HotFix addresses the missing postMessage issue during the second click.