Skip to main content
rodrigoc4881
March 26, 2024
Question

Add Row Link with a record type

  • March 26, 2024
  • 5 replies
  • 1 view

Hello, I have a parent recordtype Claim which has a relationship with a transaction, a rule can have several transactions, I want to save more than one record within the recordtype but when saving I get the following error:

Could not display interface. Please check definition and inputs.
Interface Definition: Expression evaluation error [evaluation ID = 6a3c5:31751] : An error occurred while executing a save: Expression evaluation error at function 'append' [line 492]: Insert is not supported for AOC TRANSACTION types

Main recordType

'recordType!{5871e10b-6fc1-4f38-a51a-becdd72dcf12}AOC CLAIM'(
  'recordType!{5871e10b-6fc1-4f38-a51a-becdd72dcf12}AOC CLAIM.fields.{85821409-5bf4-46d5-ae14-0102b7127440}product': "CUENTA DE AHORROS - 04010020101 - activo",
  'recordType!{5871e10b-6fc1-4f38-a51a-becdd72dcf12}AOC CLAIM.fields.{9dc19019-1bdf-453f-865f-ebbaecd94957}relatedToVisaCard': true,
  'recordType!{5871e10b-6fc1-4f38-a51a-becdd72dcf12}AOC CLAIM.fields.{0bf5aae9-6379-48a0-b28e-e536c5fe8f06}cardNumber': "4572457257257277",
  'recordType!{5871e10b-6fc1-4f38-a51a-becdd72dcf12}AOC CLAIM.fields.{00946d17-a3c8-49c0-8d4f-ec426a548478}reasonId': 2,
  'recordType!{5871e10b-6fc1-4f38-a51a-becdd72dcf12}AOC CLAIM.relationships.{d587c4bb-56b0-4cee-ace5-b5fb09f16ec6}document': null,
  'recordType!{5871e10b-6fc1-4f38-a51a-becdd72dcf12}AOC CLAIM.fields.{8091660f-289c-4551-a470-f4a02d78cee1}description': "",
  'recordType!{5871e10b-6fc1-4f38-a51a-becdd72dcf12}AOC CLAIM.relationships.{29e70da0-ba19-454b-b908-49c5ff27bf2e}transaction': 'recordType!{e83b530b-33f6-476a-833d-4e3722449728}AOC TRANSACTION'(),
  'recordType!{5871e10b-6fc1-4f38-a51a-becdd72dcf12}AOC CLAIM.fields.{062bb7f0-1333-437b-83e0-639c5885c60e}paymentMethodId': fn!tointeger(null)
)

my table code to add a new record is as follows:

addRowLink: a!dynamicLink(
                      label: "Añadir",
                      value: 'recordType!{e83b530b-33f6-476a-833d-4e3722449728}AOC TRANSACTION'(),
                      saveInto: {
                        a!save(
                          ri!record['recordType!{5871e10b-6fc1-4f38-a51a-becdd72dcf12}AOC CLAIM.relationships.{29e70da0-ba19-454b-b908-49c5ff27bf2e}transaction'],
                          append(ri!record['recordType!{5871e10b-6fc1-4f38-a51a-becdd72dcf12}AOC CLAIM.relationships.{29e70da0-ba19-454b-b908-49c5ff27bf2e}transaction'],save!value)
                        )
                      }
                    ),

Only works with the first registration

and when I try to add a new record it sends me the following error:

5 replies

stefanhelzle0001
Brainy
March 26, 2024

That transaction field does not seem to be a multiple.

rodrigoc4881
March 26, 2024

Hello Stefan, nice to meet you, thanks for responding., Is this what you mean by not being multiple?

 

stefanhelzle0001
Brainy
March 26, 2024

Yes. If you want to add multiple transaction to one claim, you need to define that relationship the other way around.