Giving an argument to deleteRecord()

By experiment I discovered that```
forms.formName.controller.deleteRecord(relationship);


There's nothing in the documentation about this command taking an argument -- Servoy Developer Reference Guide page 181. Is this "feature" actually supported or is this an oversight in the docs?

Hi Morley

Also stumbled on this some time ago and have never had any problems. Just assumed that everyone else knew about it and I was being slow :)

Graham Greensall
Worxinfo Ltd

The only way this is doing something usefull is:
var relationship = 10;
forms.formName.controller.deleteRecord(relationship)
will now delete the tenth record…as can be seen in the sample code.

To delete an entire (related) foundset (as I expect you are refering to) use:
a_relation.deleteAllRecords()
There is NO other way…to do this.