How can using @row_number option or similar together the command "Create virtual field". It works very well with "Create new field", but doens't work with "Create virtual field".
1 Answer
As @ThingumaBob suggested, virtual fields do not have to be relied upon for assessing a table context.
For example in your case is no assurance that the order will remain the same after an update.
As a possible workaround, however, you could resort to use the $id
function in a virtual field:
-
I tried to use $ ID, but my problem is that I do include and exclude rows in the table and the $ ID command always appends the ID, if I delete rows, the sequence is always a rising counter.– DenilsonCommented Jul 9, 2019 at 20:50
@row_number
for the default value, and check the option to auto-update.