becks22
2nd January 2009, 16:01
Hi I m gettina a value in a Text field.I don wan user to change that value ..Hw can i disable the edit mode

becks22
2nd January 2009, 16:27
i m using disable.fields() but its showing erroe "Unresolved reference" ..Shall i hav to decalre sumthing else before using disable.fields()

NPRao
2nd January 2009, 19:40
Use the predefined variable:

long attr.textmode
4 1 display mode
3 read/write mode

Use search option on the forum to refer to already discussed topics:

Text Field conditional edit (http://www.baanboard.com/baanboard/showthread.php?t=51003&highlight=attr.textmode)

user access to text (http://www.baanboard.com/baanboard/showthread.php?t=24084&highlight=attr.textmode)

becks22
3rd January 2009, 07:03
Sir TThanx for ur reply But By text field I meant form field on the form .I m gettin a value in that form field n don wan the user to change that

Hitesh Shah
3rd January 2009, 10:40
Make the field type as display OR change input ref to 0 . If the field is index field and u want user to input the value when searching , field type should be input with input ref as 'choice = def.find' of form field definition.

Alternatively u can change the code to set attr.input to 0 in before input section depending on certain conditions .

Hitesh Shah
3rd January 2009, 10:45
Baan IV does not have this function 'disable.fields'. Set attr.input to false in the code instead .

becks22
3rd January 2009, 12:28
Dear Sir,

I have tried attr.input but its not serving my purpose.Actually I m getting a value(Generated through coding) on that field .I don't want user to chnage that value ..Hw can i do this And on which sub section shall i put my code ..Please guide

becks22
3rd January 2009, 13:28
Hi all ,
Is it possible to make a form field readonly

bdittmar
3rd January 2009, 16:49
Hi all ,
Is it possible to make a form field readonly

Hello,

define the field as DISPLAY FIELD or

field.x:
before.input:

attr.input = false

Regards

mark_h
4th January 2009, 00:57
Can you make the field a display only field? Typically in the before.display you can set attr.input to false.

mark_h
4th January 2009, 01:01
All of these threads were related - I merged them together. When starting a thread please describe as best as possible what you are looking for. Then if you have issues post in that thread again - makes it easier to follow up on issues.

Thanks

becks22
4th January 2009, 12:20
Hi all Thanx for your help problem is solved now ..really grateful for your help .Thanx in tonnes ..

benito
25th February 2014, 23:24
choice.text.manager:
before.choice:
if text.yn <> tcyesno.yes then
choice.again()
endif
attr.textmode = 1