Skip to main content
September 21, 2023
Question

Read-only grid in interface is not updating

  • September 21, 2023
  • 8 replies
  • 0 views

I made some changes in my interface through the Edit List function but when I save changes and update the interface, this changes do not apply to the read-only grid. I tried to eliminate this read-only grid and add it again and this way the changes were applied. 

Example of the changes and the interface are the following:

The changes to apply in the interface are the following:

And the interface remains unchanged (notice the "€" sign is not applied):

Does anyone know any other (less sophisticated and destructive) way to update the read-only grid and directly apply new changes?

Thanks! 

    8 replies

    stefanhelzle0001
    Brainy
    September 21, 2023

    To me, it is pretty much unclear what you did. Could you explain your first sentence in more detail?

    September 21, 2023

    I just added the "a!currency" expression to add the "€" sing following the values in the "Importe" column.

    a!gridColumn(
      label: "Importe",
      sortField: 'recordType!{495578a9-1b23-4253-8145-6418faabe727}CPF Lineas Pedido.fields.{beb59a89-a332-46d3-b718-a8285f58f942}Importe',
      value: a!currency(
        isoCode: "EUR",
        indicatorAlignment: "END",
        value: if(
          isnull(
            fv!row['recordType!{495578a9-1b23-4253-8145-6418faabe727}CPF Lineas Pedido.fields.{beb59a89-a332-46d3-b718-a8285f58f942}Importe']
          ),
          fv!row['recordType!{495578a9-1b23-4253-8145-6418faabe727}CPF Lineas Pedido.fields.{beb59a89-a332-46d3-b718-a8285f58f942}Importe'],
          fixed(
            fv!row['recordType!{495578a9-1b23-4253-8145-6418faabe727}CPF Lineas Pedido.fields.{beb59a89-a332-46d3-b718-a8285f58f942}Importe'],
            2
          )
        )
      ),
      align: "END"
    )

    That was the only change I made.

    stefanhelzle0001
    Brainy
    September 21, 2023

    Do you have a specific reason to use fixed()? It turns that decimal value into a string. Depending on your locale, it uses a comma as the separator which the currency() function then will have a hard time to cast back into a decimal.

    Could that be the problem?

    varuntejg243705
    September 23, 2023

    Remove whole read only grid and add it again in your interface to see changes made. There is a problem, when you make update in record list it wont update itself(Read Only Grid).