I have a drawing schedule. Under each drawing is a list of revisions and a list of revisions. When I create an issue I want to print, and store in the issue tree, the latest revision number.
This works in an expression box, but not in a text box (I get an error):
../../../../my:Drawings/my:Drawing[my:DwgNo = current()/my:IssDwgNo]/my:Revisions/my:Revision[last()]/my:RevNo
This does not throw an error, but then it does not produce any result either:
//my:Drawings/my:Drawing[my:DwgNo = ../my:IssDwgNo]/my:Revisions/my:Revision[last()]/my:RevNo
This produces the correct answer in the text box, but only for drawing 1, of course:
//my:Drawings/my:Drawing[my:DwgNo = 1]/my:Revisions/my:Revision[last()]/my:RevNo
If anyone has an idea I would be grateful to hear about it.
Rgds
Clive Glover