Adaptive form calculate expression for multiple instances | Community
Skip to main content
SiriKK
July 28, 2020
Solved

Adaptive form calculate expression for multiple instances

  • July 28, 2020
  • 2 replies
  • 1014 views

How do you call each instance and get the numeric value to calculate a total value? I'm stuck at identifying the syntax for each instance's value - here's the script for the calculated field:

 

var f = guideRootPanel.tblAgencies.Agency.instanceManager.instanceCount;
var total = 0;
for (var i=0; i < f; i++) {
total = total + guideRootPanel.tblAgencies.Agency(i).ContractID.value;
}
this.value = total;

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SiriKK

Our team found the answer in case this helps someone else:

 

total = total + Agency.instanceManager.instances[i].ContractID.value;

2 replies

SiriKK
SiriKKAuthorAccepted solution
August 3, 2020

Our team found the answer in case this helps someone else:

 

total = total + Agency.instanceManager.instances[i].ContractID.value;

Mayank_Gandhi
Adobe Employee
Adobe Employee
October 15, 2020

@sirikk  We will get this documented.