spartacus
11th February 2003, 14:22
In Baan5 a field is switched to grey, if I use "disable.fields()". This function is on Baan4_b2 not available. Here I use "attr.input". But if I set "attr.input = false" input is disabled, that is OK. Is there any possibilty to switch the field also to grey ?
Thanks
Spartacus
zardoz
11th February 2003, 15:02
A similar, but not equal, effect can be obtained with inputfield.invisible() function. Try it and experiment.
NPRao
11th February 2003, 21:20
Please refer to the help manual for - inputfield.invisible() (http://www.baanboard.com/programmers_manual_baanerp_help_functions_form_and_form_field_operations_inputfield_visible)
For dynamic sessions, when you use this function in the before.program or in the after.form.read section, it is not possible to make this field visible again. In this case also the dependent child (e.g. reference field) will be removed.
When used later, and also for static sessions, the form layout doesn't change when the field is made invisible; that part of the form simply becomes blank.