I have a repeating table that is inside a repeating section. I have a button that uses the qrules insert command to add a row to the repeating table.
However, when a second instance of the repeating section is added, when I click the button, it inserts the row on the table inside the first section only.
My original insert command is:
concat("Insert /parent=/my:Quote/my:Item_Detail/my:Bill_of_Material /child=/my:group10 /count=", count(billcost))
Based on some forum feedback, I tried:
concat("Insert /parent=/my:Quote/my:Item_Detail[", count(preceding-sibling::Item_Detail) + 1, "]/my:Bill_of_Material /count=", count(billcost) /xpathsrc=/my:Quote/my:Item_Detail/my:Bill_of_Material/my:group10")
but this renders an error: The text is missing a closing quotation mark." But I am not sure waht is wrong with my syntax.
Any help is appreciated.