Skip to main content
SiriKK
New Member
July 28, 2020
Solved

Adaptive form calculate expression for multiple instances

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.
SiriKK
SiriKKAccepted solution
New Member
August 3, 2020

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

 

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

2 replies

SiriKK
SiriKKAuthorAccepted solution
New Member
August 3, 2020

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

 

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

Translate
Mayank_Gandhi
Adobe Employee
Adobe Employee
October 15, 2020

@sirikk  We will get this documented.

Translate