SAP Knowledge Base Article - Preview

3663844 - SAC : Unexpected results when using API .length property of Input Controls in Story

Symptom

  • When using .length property API in scripts to determine the number of elements in an array when selecting members within an input control, it returns unexpected results.
  • Since the last patch week (21-22 June 2025), it was observed a change where the length calculation directly returns 1 for "A1," bypassing the hierarchy levels. This alteration has disrupted several functionalities, as it would rely on the length value to simulate single selection input controls with hierarchies. Specifically, a length of 3 indicated that only a single country was selected.
  • Historically, the length calculation included each level of a hierarchy. For instance, selecting "A1" in a hierarchy structured as Root → A → A1 would yield a length of 3, accounting for all hierarchy levels.
  • We expect that the ancestors of selected members being returned by the API 


Read more...

Environment

  • SAP Analytics Cloud 2025.8.13

Product

SAP Analytics Cloud all versions

Keywords

.length, Parent, ancestor, property, input control, script API , KBA , LOD-ANA-DES , Story Design & Visualizations , LOD-ANA-UNS-SCR , Unified Story Scripting related Issues , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.