Servoy 6 warning "Reference to undeclared var..

Hi,

in Servoy 5.2.9 and previous versions I set calculations:

function cal_currRecIndex() {
return currentRecordIndex
}

for the row numbers in table view (because with a label and the standard tag “%%currentRecordIndex%%” as text property there is a number in the table header).

In Servoy 6 now I get the warning:

“Reference to undeclared variable or property currentRecordIndex”.

What is wrong?

currentRecordIndex is not really supported in calculations, its even as far as i know a deprecated property on record itself, so it is something you should avoid to use, especially in calculations.

Ok, and how can I set now the table row numbers without any item in the table header?

its not clear to me what you exactly use that calc for, but you can use this for now its only a warning that it is not a supported thing.