How to Detect When List Is Used as Nested List Formatter

Introduction

Detecting when a List is used as a nested formatter is essential for managing dynamic data displays and permissions. This guide explains how to identify if a List is being used in this context, allowing you to apply specific logic or permissions based on its usage.

How does it work?

  1. To determine if a List is used as a nested List formatter, start by adding a parameter (e.g., nestedList) with a value (e.g., 1) to the main List.
  2. When the List is displayed as nested, utilize the extra parameter to check its state. For instance, use the following code in a Permission setting or another relevant context to verify the nested List mode:
    return ("#requestParam.nestedList#".equalsIgnoreCase("1"));

    This code returns true if the List is in Nested List mode.

Created by Julieth Last modified by Aadrian on Dec 13, 2024