How to remove repeating group instances in Vantage?

Question

How to remove repeating group instances in Vantage?

 

Answer

The Remove() method can be used to remove the instances of the repeating group. The script sample is the following:

var document = Context.Transaction.Documents[0]; 
var field = document.GetField("Invoice Date"); 
if (field.Value != ""){ 
for (var i = 0; i < field.Instances.length;){ 
field.Instances[i].Remove(); 

}

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request

Comments

0 comments

Article is closed for comments.

Recently viewed