Hello, I have a use case where I have a parent CDT that has a field t

Hello,

I have a use case where I have a parent CDT that has a field that is an array of another CDT and i need to save values (in a submit button of a SAIL form) from some of the fields of the parent CDT down to the respective fields of each child CDT.

I have tried the following:

a!save(ri!ParentCDT.childCDT.field1, ri!ParentCDT.field1),
a!save(ri!ParentCDT.childCDT.field2, ri!ParentCDT.field2)

However, i would see a result where the value of ri!ParentCDT.childCDT[index].field1 is a list of values of ri!ParentCDT.field1.

I have also tried using applyComponents to create a list of a!save components looping over the number of ri!ParentCDT.childCDT elements and that fails because i call a rule whose definition is

a!save(ri!ParentCDT.childCDT[ri!index].field1, ri!ParentCDT.field1),
a!save(ri!ParentCDT.childCDT[ri!Index].field2, ri!ParentCDT.field2)

and it tells me that it has receive a list of variant instead of a variable to save a value.

Any ide...

OriginalPostID-172562

OriginalPostID-172562

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data