Skip to main content
December 5, 2022
Question

Array has 460 items which needs to be displayed in grid but only the first record was displaying among all 460

  • December 5, 2022
  • 3 replies
  • 0 views

Hi

Array has 460 items which needs to be displayed in grid but only the first record was displaying among all 460

When calling this interface in the parent interface it is providing only the first records in the grid

3 replies

stefanhelzle0001
Brainy
December 5, 2022

Seems like your ri!users is a list-in-a-list. What data type is that rule input and where is that data coming from?

I could tell you to just use a!flatten() on that list, but there must be a root cause for that issue and solving that makes more sense.

December 5, 2022

Hi Stefan,

Thank you for the response.

The ri!users is anytime and the data for that is coming from the Expression rule which is giving the user details as in Dictionary as output

Data are coming from the below expression rules and storing in ri!users 

stefanhelzle0001
Brainy
December 5, 2022

I think that you should change your highlighted code to the following snippet. Then you should get a direct list of that user dictionaries.

a!save(
  target: rilusers,
  value: a!forEach(
    items: rule!SMARuleGetAllApnUsers(),
    expression: rule!SMARuleGetUser(user: fv!item)
  )
)