list must be used within a SAIL component

Hi,

We have a three records . Record A has one to many relationship with Record B and Record B has one to many relationship with Record C

We are displaying the all three record data in a grid.

We are having issue when display Record C data if one of the row has no value for Record C.

Here is the snapshot of the grid column. We would like to show each lineItem as numbered list. In this example P2P is top level record.

a!gridColumn(
  label: "Tracker Entry Date",
  value: if(
    a!isNullOrEmpty(fv!row[P2P.invoice.lineItem.name]),
    "",
    a!richTextDisplayField(
      value: a!richTextNumberedList(
        items: fv!row[P2P.invoice.lineItem.name]
      )
    )
  )
),

This works fine in the design mode in the Appian designer. When we access this from the site it throws an error.

"Text?list must be used within a SAIL component"

We don't want to use for each to iterate over each item to check null as it is causing performance problem.

This issue occurs when an invoice does not have  a line Item. How to handle this error?

One solution, I would think to add a dummy row for line Item if the invoice does not contain an line Item.

Is there a better solution? 

Thanks for your help.

Regards,

Surjit

  Discussion posts and replies are publicly visible