baldie
21st April 2006, 10:31
I want to use the functions enable.fields and disable.fields.
I put these functions in the before.display of a formfield.
But compling results in an error 'Unresolved reference to function ...'

If I look into the help-files the only argument needed is the formfield to en- or disable. So enable.fields("fieldname").

What am i doing wrong or forgot.

Juergen
21st April 2006, 11:08
I think the problem is that the functions disable.fields() and enable.fields are not available for the Baan-4 series.

Juergen

george7a
21st April 2006, 12:50
Hi,

Use "attr.input" as in the following example:


field.myfield:
before.input:
if DIABLED_VAR then
attr.input = false
endifI hope it helps,

- George

baldie
27th April 2006, 09:12
Hi george7a,

It works good.
Thanks!