Skip to main content
April 7, 2024
Question

Update value of boolean field to my record type

  • April 7, 2024
  • 2 replies
  • 0 views

a!richTextDisplayField(
  value: {
    a!richTextIcon(
      icon: "check-circle-o",
      caption: fv!row['recordType!{690a8496-4f15-4d0b-8e98-6ffb8ca39cd8}OE Clients_Compts.fields.{3c17620a-de81-45df-9416-aa7527efb509}podeDeclarar'],
      link: a!dynamicLink(
        saveInto: a!save(
          fv!row,
          a!update(fv!row, fv!row['recordType!{690a8496-4f15-4d0b-8e98-6ffb8ca39cd8}OE Clients_Compts.fields.{3c17620a-de81-45df-9416-aa7527efb509}podeDeclarar'], not(fv!row['recordType!{690a8496-4f15-4d0b-8e98-6ffb8ca39cd8}OE Clients_Compts.fields.{3c17620a-de81-45df-9416-aa7527efb509}podeDeclarar']))
        )
      ),
      showWhen: fv!row['recordType!{690a8496-4f15-4d0b-8e98-6ffb8ca39cd8}OE Clients_Compts.fields.{3c17620a-de81-45df-9416-aa7527efb509}podeDeclarar']
    ),
    a!richTextIcon(
      icon: "times-circle",
      caption: fv!row['recordType!{690a8496-4f15-4d0b-8e98-6ffb8ca39cd8}OE Clients_Compts.fields.{3c17620a-de81-45df-9416-aa7527efb509}podeDeclarar'],
      showWhen: not(
        fv!row['recordType!{690a8496-4f15-4d0b-8e98-6ffb8ca39cd8}OE Clients_Compts.fields.{3c17620a-de81-45df-9416-aa7527efb509}podeDeclarar']
      )
    )
  }
)

I wish I could, just by clicking on the record in my list, update the value the value stored in my record type. I really hope it's possible.

2 replies

kalpeshg0081
April 8, 2024

Hi [mention:a80a5ee5cb3647d68fc33debeeda2795:e9ed411860ed4f2ba0265705b8793d05] ,

It's indeed feasible to update the record type value upon clicking. You have the option to utilize either a record link or a dynamic link. Please refer to the attached document where I demonstrate changing the value by clicking on an icon.

stefanhelzle0001
Brainy
April 8, 2024

Is your code not working?

You could simplify it a bit

link: a!dynamicLink(
  value: not(fv!row['recordType!{690a8496-4f15-4d0b-8e98-6ffb8ca39cd8}OE Clients_Compts.fields.{3c17620a-de81-45df-9416-aa7527efb509}podeDeclarar']),
  saveInto: fv!row['recordType!{690a8496-4f15-4d0b-8e98-6ffb8ca39cd8}OE Clients_Compts.fields.{3c17620a-de81-45df-9416-aa7527efb509}podeDeclarar']
),