Sub Array Action Advanced Customizations

  • Dynamic indexing: By setting the starting index according to the result of another action, conditional splitting can be performed.
  • Conditional subarrays: Elements can be retrieved only from the beginning, middle, or end of the array under certain conditions.
  • Sorting & filtering combination: The Sub Array action can be used in conjunction with sorted or filtered arrays to obtain meaningful subgroups.

Technical Risks

  • Invalid Index Range: Make sure that the Starting Index and Count values do not exceed the size of the array. Otherwise, the system may return an error or return an empty array.
  • Use of Negative Values: The use of negative Starting Index or Count values is not supported by the system and may cause unexpected behavior.
  • Empty or Undefined Array: If the main array passed to the Value field is empty or undefined, the Sub Array action may not work. In this case, the array should be checked for emptiness first.
  • Incorrect Binding of Dynamic Sources: When using the Symbol Picker, incorrect data binding (e.g., string instead of number) may cause the subarray to function incorrectly or return an error.
  • Subarray with Zero Elements: If the Count value is set to 0, the action will not return any data. This may sometimes result in no data being displayed to the user.

Sub Array is an effective way to control your data sets and improve the user experience by displaying only the necessary data on the UI. It is an indispensable action, especially for listing, pagination, and summary displays.