I have a repeating section (from table Project_Phase). One of the fields is Phase_Number, in which I wish to automatically populate with number (eg 1, 2, 3 etc), BUT, also have the ability to renumber itself if one of the repeating rows is deleted. From what I have read, the preceding-sibling code is the way to go, but I cant get it to work. Can someone please explain the syntax for it. Eg, I have count(preceding-sibling::*/Project_Phase) + 1 but it doesnt count, just keeps using 1 as the number. (this code is placed in a text box properties, Value field)
Cheers,