Hi all,
I have the following basic layout for my data source:
-
myFields
-
Hardware (repeating)
-
Order (repeating)
In my print view, I would like to show the other information held in the relevant Hardware node where the HID exists within the repeating HWID element of the current Order node. I have tried to use the current() operator to do this to no avail.
I have nested a repeating section for Hardware within a repeating section for Order on the view. I think the problem is that my XPath is looking for the current HWID rather than the current order and all HWID elements. My XPath is below. How do I get it to look at the HWID elements of the current order please?
my:HID = current()/my:myFields/my:Order/my:HWID
I think this is my problem because if I ignore the use of current() it works but shows all HWID items in every Order, but hides the ones that are not yet in an order.
Your help is greatly appreciated, thanks.