Hi, I have been experiencing an issue where I am trying to save the v

Hi,

I have been experiencing an issue where I am trying to save the values that are calculated automatically in an inline editable grid but they are not being saved in a variable. I've tried using all the functions to save those values but they're not getting saved anywhere.

for example, If I calculate amount through quantity*price then quantity and price are getting saved but not the Amount.

a!textField(
label: "amount " & ri!index,
align: "RIGHT",
readOnly: true,
value: if(or(isnull(ri!items[ri!index].qty), isnull(ri!items[ri!index].unitPrice)), null,
dollar(tointeger(ri!items[ri!index].qty) * todecimal(ri!items[ri!index].unitPrice))),
saveInto: ri!items[ri!index].amount
)

So Can anyone help me saving auto-populated values in a grid?

Thanks,
Varnika

OriginalPostID-209066

OriginalPostID-209066

  Discussion posts and replies are publicly visible

Parents
  • @varnikam To the best of my knowledge, that assumption isn't correct as we generally save the values of the read only variables under other components and it is because of the fact that a SAIL component's value can't be changed until and unless it is interacted with or updated in an other component's saveInto. It would be grateful if you can attach the code snippet so that the practitioners here can give you suggestions.
Reply
  • @varnikam To the best of my knowledge, that assumption isn't correct as we generally save the values of the read only variables under other components and it is because of the fact that a SAIL component's value can't be changed until and unless it is interacted with or updated in an other component's saveInto. It would be grateful if you can attach the code snippet so that the practitioners here can give you suggestions.
Children
No Data