CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> Java

 How do you dynamically set a textbox to readonly?

Print topic Send  topic

Author Message
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
View profile  Send private message
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
View profile  Send private message
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/

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.