SAP Knowledge Base Article - Public

3410783 - SAC AD : Chart widget : Pop up always displaying when clicking anywhere in the application (Analytics Designer LOD-ANA-AD)

Symptom

  • When clicking on a first numeric pointer, it will display chart as popup.
  • After closing the chart, and if clicking anwhere within application space, it shows again the same previous chart.

Environment

  • SAP Analytics Cloud - Analytics Designer

Cause

When clicking anywhere else, it will also trigger onSelect event for de-select. That's why when clicking anywhere within application space, it shows the same previous chart again.

Resolution

To fix the issue, in numeric pointer chart onSelect event, add a judgment to check selections. When clicking anywhere else, it will trigger onSelect event and return [].

Here is an example of the suggested code implementation:
var selections = Chart_1.getSelections();
if (selections.length > 0) {
Popup_1.open();
}

By incorporating this adjustment, the popup issue does not appear when clicking anywhere else outside the chart and its numetic pointer.

See Also

Your feedback is important to help us improve our knowledge base.

Keywords

numeric pointer, chart, popup, onSelect, Chart_1.getSelections , KBA , LOD-ANA-AD-FRA , Analytics Designer Framework , Problem

Product

SAP Analytics Cloud all versions