Multiply two integer fields and save the results to another field.

I'm trying to multiply the values stored in two integer fields and save the results in another integer field. I'm not sure if I have the correct syntax for the multiplier in my code or if my saveInto statement is correct. The Total estimated capacity field is not displaying the results of the value in the Number of files field multiplied by the value in the Average file size field  This is my code:

a!integerField(
  label: "Total estimated capacity",
  value: ri!totalEstCapacity,
  saveInto: {
    a!save(ri!totalEstCapacity,ri!numberOfFiles*ri!averageFileSize)},
  refreshAfter: "UNFOCUS",
  required:true,
  validations: {}
)

Can someone help with this?  Thanks...

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data