jbaanm
23rd April 2008, 13:59
I have a text field. I want to allow edit of the text only under a condition. Condition is based on a value of another field in the same table. Its a maintain session.
I tried before.input on that text field and its not working.
like
field.tiitm001.txtf:
before.input:
If tiitm001.kitm = tckitm.service then
attr.input = false
else
attr.input = true
endif

This is baan IV.
txtf is a field added in item data table. Text edit is done after clicking on the T button.
How to do this or this is not doable. Is there any work around?

Thanks in advance

Jabbam

Juergen
23rd April 2008, 15:00
Hi,

you can try something like this

choice.text.manager:
before.choice:
if strip$(attr.textfield$) = "tiitm001.txtf" and
tiitm001.kitm = tckitm.service then
attr.textmode = 1 | Only reading is possible
endif


Regards,
Juergen