-
Is there a way to use row number as an index in the table ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Internally perspective creates this column already. We should expose this column as a normal perspective column, but don't currently, so there's no way today to do this entirely in-engine today. You can currently access the internal index column in un-grouped View's only, by providing the
You can't yet update on it though, e.g. We're also adding |
Beta Was this translation helpful? Give feedback.
Internally perspective creates this column already. We should expose this column as a normal perspective column, but don't currently, so there's no way today to do this entirely in-engine today.
You can currently access the internal index column in un-grouped View's only, by providing the
id
flag when calling ato_*()
method, where you'll find the row's internal id in the__ID__
field:You can't yet update on it though, e.g.
table.update({__ID__: [12], ...})
won't work today, so you'll still need to mutate the data for now.We're also adding
id()
as an exprtk function, but this is more of a hack for your use case …