Display Information in Each Row

I am trying to have the information iterated through and displayed in each row but am having trouble.. Can you please advise?

              a!gridField_25r2(
                label: "Online Banking Profile Info",
                labelPosition: "ABOVE",
                data: rule!OOW_returnOBprofileDetails(CIF: ri!CIF),
                columns: {
                  a!gridColumn(
                    label: "Account Username",
                    value: fv!row.userId
                  ),
                  a!gridColumn(
                    label: "Account Nickname",
                    value: rule!OOW_returnProfileNicknames(CIF: ri!CIF)
                  ),
                  a!gridColumn(
                    label: "Last Log In",
                    value: a!forEach(
                      fv!row,
                      rule!OOW_returnUserProfileLastLogIn(CIF: fv!row.customerCif)
                    )
                  ),

                },
                pageSize: 5,
                borderStyle: "STANDARD",
                shadeAlternateRows: true
              )

This is what is returned from my rule.

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    a!gridColumn() is supposed to reference a single column of a single row of data, but here, in the column you're having it return that column's value for all rows, which is of course incorrect.  What you should be doing is making sure the "nickname" is included in the "return... ProfileDetails()" rule, and reference the value via i.e. "fv!row.nickname" (or whatever the property's name is in the returned data set).

Reply
  • 0
    Certified Lead Developer

    a!gridColumn() is supposed to reference a single column of a single row of data, but here, in the column you're having it return that column's value for all rows, which is of course incorrect.  What you should be doing is making sure the "nickname" is included in the "return... ProfileDetails()" rule, and reference the value via i.e. "fv!row.nickname" (or whatever the property's name is in the returned data set).

Children
No Data