Hi,
I have created a small Text Script (@DeferredPhaseInAmt1@) and tried to refer to it multiple times in different position and context. But I got a error message like “Record index out of range, cannot read property fields from undefined”.
results.each(function(index) {
var field, result = “”;
field = record.tables[“PhaseIn”][index].fields[“DeferredPhaseInAmt1”];
if (field !== “”) result += field;
this.html(result);
});
I did can refer to it in one place (one time). Second time to use will cause error.
Any idea for this.
Thanks,
John