Hi,
I'm new to Adobe forms and am struggling to write the script for the requirement needed. Any pointers/help would be greatly
appreciated.
Requirement: Only want to display rows that DocumentReferenceID value starts with "009". Note that there will be a total for the amount which starts with "009".
Sample data of rowItemsNode table:-
DocumentReferenceID | ddtlDocumentDate | txtTransactionCurrency | decAmountInTransactionCurrency |
009001 | 26/05/2021 | USD | 100 |
009002 | 27/05/2021 | USD | 100 |
140001 | 28/05/2021 | USD | 300 |
rowItemsNode table

Output that I want:-
DocumentReferenceID | ddtlDocumentDate | txtTransactionCurrency | decAmountInTransactionCurrency |
009001 | 26/05/2021 | USD | 100 |
009002 | 27/05/2021 | USD | 100 |
Total | | | 200 |
Is the script below correct?
if (Left(Form.bdyMain.frmItems.tblItems.rowItemsNode[*].DocumentReferenceID, 3) == "009");
{
tblItems._rowItemsNode.removeInstance(true);
xfa.form.recalculate(true);
}
Many thanks in advance!!