Unable to Convert Applycomponents to Foreach

Hi Team

I have an existing code, I want to convert it from Applycomponents() to Foreach(). I have tried but getting the following error

Error Description:

Could not display interface. Please check definition and inputs. Interface Definition: Expression evaluation error at function a!gridLayout [line 429]: A grid layout component [label=“Legal Entity Overview”] has an invalid value for “rows”. A row layout is expected for each row.

Please help me 

Exisiting Code:

a!applyComponents(
function: rule!abc(
index: _,
entities: local!entities
),
array: if(
or(
rule!APN_isEmpty(
local!entities
),
local!entitySize < 1
),
{},
enumerate(
if(
(
local!entitySize - local!startIndex
) < local!defaultBatchSize,
(
local!entitySize - local!startIndex
) + 1,
local!defaultBatchSize
)
) + local!startIndex
)
),

Modified:

a!forEach(
items: rule!abc(
index: _,
entities: local!entities
),
expression: if(
or(
rule!APN_isEmpty(
local!entities
),
local!entitySize < 1
),
{},
enumerate(
if(
(
local!entitySize - local!startIndex
) < local!defaultBatchSize,
(
local!entitySize - local!startIndex
) + 1,
local!defaultBatchSize
)
) + local!startIndex,
),
)

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data