Hi,
I know this has been asked before and I have looked at the answers on those but I am still not getting anywhere.
I would like to delete a row from a repeating table with two different methods:
a.) Delete the same row where a user clicks on an image button in that row.
b.) Delete rows (on submit) where a specific field is empty or zero.
The following command will delete all the rows in the table so I know this at least works:
Delete /xpath=/dfs:myFields/dfs:dataFields/d:ExpensesMain/d:ExpenseItems
But I have tried ...
concat("Delete /xpath=/dfs:myFields/dfs:dataFields/d:ExpensesMain/d:ExpenseItems/[@ReceiptNumber = '", 0, "']")
concat("Delete /xpath=/dfs:myFields/dfs:dataFields/d:ExpensesMain/d:ExpenseItems/[ReceiptNumber='", 0, "']")
concat("Delete /xpath=/dfs:myFields/dfs:dataFields/d:ExpensesMain/d:ExpenseItems/[d:ReceiptNumber='", 0, "']")
concat("Delete /xpath=/dfs:myFields/dfs:dataFields/d:ExpensesMain/d:ExpenseItems/[", count(preceding-sibling::/d:ExpenseItems) + 1 , "]")
This is the xpath for the field I am testing this with:
/dfs:myFields/dfs:dataFields/d:ExpensesMain/d:ExpenseItems/@ReceiptNumber
The form is an InfoPath Filler form.
Cheers,
Pete.