Open ebruchez opened 5 years ago
See also #3189 which calls for a built-in feature to show a row number.
For nested repetitions:
The reason xxf:repeat-position()
doesn't work is that it is evaluated in the model, where there are no <xf:repeat>
.
This must work in formulas as well, in particular with relevant
, readonly
, and calculate
.
We have BindingContext.position
. This is used xxf:repeat-position()
, but there is also logic that identifies explicitly repeat
ancestors to find the binding whose position
must be read. In the model, everything is a bind
, so how can we do the same? With Form Runner, we have by default foo-iteration
as name, but if the form author picks a custom iteration name, then we don't have the -iteration
suffix.
Was this ever resolved? Or do I still have to use the janky workaround? I can't get xff:repeat-position() to work.
@MatousAc I don't think it's been addressed yet. Let's try to get this fixed in a release soon.
From within a repeated grid or section, you would think you could use
xxf:repeat-position()
, but it doesn't work. Ideally, we'd like a Form Runner function anyway. Suggestions:fr:current-repetition()
fr:repetition-index()
fr:repetition-position()
fr:current-row-number()
fr:row-number()
Workarounds (repeated section, 2019.1 repeated grid):
Workarounds (2018.2 and earlier repeated grid):
+1 from customer