DaveS
|
Posted: 11/23/2005, 5:47 AM |
|
I would like to protect some fields on a maintenance form when in edit mode.
I am able to hide a field with the following code in the Show Before event of the control:
if (e.getRecord().isEditMode()) {
e.getControl().setVisible(false);
}
Is there a way to set the field to readonly?
|
|
|
matheus
Posts: 386
|
Posted: 01/25/2006, 8:55 AM |
|
Readonly is writed in HTML, just with javascript to resolve this.
_________________
Matheus Trevizan
Dynamix Software Ltda.
Blumenau SC Brasil
www.dynamix.com.br |
|
|
Walter Kempees
|
Posted: 01/25/2006, 11:16 AM |
|
can be done also with a {label} after the input="text name=""fieldname
{Label)
see tips and solutions: alternate rows the easy way"
If you need to do it while in the form, javascript is the way.
"matheus" <matheus@forum.codecharge> schreef in bericht
news:943d7ad8f4c44b@news.codecharge.com...
> Readonly is writed in HTML, just with javascript to resolve this.
> _________________
> Matheus Trevizan
>
> Dynamix Software Ltda.
> Blumenau SC Brasil
> www.dynamix.com.br
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
matheus
Posts: 386
|
Posted: 01/26/2006, 2:55 AM |
|
It's difficult put {label} inside a textbox.
CCS lose control ..
_________________
Matheus Trevizan
Dynamix Software Ltda.
Blumenau SC Brasil
www.dynamix.com.br |
|
|
Walter Kempees
|
Posted: 01/26/2006, 10:41 AM |
|
Will test agfain and come back tomorrow.
Sorry, busy busy busy
"matheus" <matheus@forum.codecharge> schreef in bericht
news:943d8aa84b7b6a@news.codecharge.com...
> It's difficult put {label} inside a textbox.
>
> CCS lose control ..
> _________________
> Matheus Trevizan
>
> Dynamix Software Ltda.
> Blumenau SC Brasil
> www.dynamix.com.br
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
dsda
|
Posted: 02/17/2006, 4:23 AM |
|
---------------------------------------
Sent from YesSoftware forum http://forums.codecharge.com/
|
|
|