zeekhan
19th October 2011, 11:59
hello friends,

I am unable to find exact solution of my problem

I have one field in my form suppose "field1". That is an input field. I want the following
if condition = true then
field1 = disable (do not accept inputs)
else
field1 = enable (accept inputs)
endif

please can anyone provide me solution that how i can disable field through script?

Regards,
Zeeshan

dhruv_x0
19th October 2011, 12:23
Hi,

You can use

if some condition true then

disable.fields("field.1") for type 1 form
disable.fields("field.1",actual.occ) for form type 2


endif




Hope will help

bdittmar
19th October 2011, 12:36
hello friends,

I am unable to find exact solution of my problem

I have one field in my form suppose "field1". That is an input field. I want the following
if condition = true then
field1 = disable (do not accept inputs)
else
field1 = enable (accept inputs)
endif

please can anyone provide me solution that how i can disable field through script?

Regards,
Zeeshan

Hello,

in BaaN IV you're able to use attr.input = true/false

Regards

zeekhan
19th October 2011, 12:40
dear dhruv,

i tried this but system says Unresolved reference to function 'disable.fields'
plz keep in mind that i am working on Baan IV

Regards,

NirajKakodkar
19th October 2011, 12:59
Hi Zeekhan,

In BaaN IV you will have to use attr.input = false/true as below

field.xyz:
after.field:
if <condition> then
attr.input = true
else
attr.input = false
endif

dhruv_x0
19th October 2011, 14:27
Hi Zeekhan,

Disable.fields() works in ERP LN.


IN Baan IV, as suggested by other gurus you should use...

attr.input = false/true in before.field or after.field of that field section.






Regards

Dhruv

zeekhan
19th October 2011, 17:58
thank you guyz... attr.input works... problem is solved... thanx alot