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
a!forEach( items: 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, ), expression: rule!abc( index: fv!item, entities: local!entities ) )
Hi Harish,
Try something like this.
Perfect. Worked well !!..Thank you so much..