Why 'record.dataprovider'?

In the method editor, if I double click on a dataprovider under the foundset node in the object tree, it puts

‘record.dataprovidername’ in my code. How is this different from just ‘dataprovidername’?

And here’s a related question. Many functions appear under foundset as well as controller - do they always do the same thing in both cases?

Thanks

You can/must use this in combination with: var record = foundset.getRecord(index)

That’s the way you can ‘get’ a record without touching the UI.

Specially used for fast looping, for example.

Hope this helps.

Thanks a lot - that helped.