newRecord() question

Hello,

I have found out that something like

relation.newRecord()

will return the index of the record created.

At least I found that

var record = relation.getRecord(relation.newRecord())

seems to work. Is it expected bahaviour that a newRecord() always returns the foundset index of the newly created record?

Thanks
Patrick

Yes, just like:

var a = controller.search()

does return the foundcount.