Hi,
I have been unable to find an answer to this anywhere online. So hopefully someone here can give me a hand.
I have a document generator and register. Once a document is generated by a user (just a list of questions), it is added to the register. One of the questions on the generator page is "Are there any referenced documents". If the user selects yes, the list of documents from the register is returned and the user is to select which document it references. So on the register, a document can have several documents referencing it (all have a common reference number "ParentNode"). At the press of a button on a line in the register, all documents that reference this "ParentNode" are queried and shown on the register. What I am wanting is to show on the label of the button, the number of documents that will be shown back. It seems to be a complex formula using count() and preceding-sibling. My attempt:
count(xdXDocument:GetDOM("LISTNAME")//dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:Title[d:ParentNode = preceding-sibling::d:SharePointListItem_RW/d:ParentNode])
But this does not work.
So in words, the formula is to say on each line of the repeating table:
Count the number of time this "ParentNode" from the column "Reference" is repeated in the column "Reference". Give back a single number.
Appreciate any assistance.
Ed