Disabling fields on individual records in list view

I have a form with the view set to list view. It has a field, ‘statusId’, which I would like to enable or disable (gray out) on a per-record basis, depending on the value in the field. I can test for the value of the field in the current selected record, and I am able to enable or disable the field for the entire form (all records) using ‘elements.statusId.enabled = false’ or ‘elements.statusId.readOnly = true’, but I am at a loss as to how I can do this on a per-record basis in a list view. Is this currently possible in Servoy?

Thank you,
Ian

hmm, as far as I know you can do this is record view but not in list/table view.

What you do is setting the properties of an element. Since the element is repeatedly shown its properties are also ‘repeated’. (Is that understandable english or am I talking rubbish?)

So, I am pretty sure the answer is: no, you can’t do that!

Tip: to view or mark data in a specific record in table or list view is to use html, see the sample crm.

Marcel: Thanks, I believe I have a work-around using a script and pop-up windows (which I dislike using), I just thought I’d post to see if I was missing something, as doing it without pop-ups would have been more elegant.

Jan: Thank you for pointing out the example in the CRM solution. I believe you mean the actions form, no? This may come in quite handy on the form I am building, but it does not solve the problem of disabling individual records (while being able to view all records), unless I overlooked something.

Thanks,
Ian

you could disable it when you test for it on the even onRecordEditStart..
Then disable/enable youre record.