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 -> PHP

 I do have the same problem any tips?

Print topic Send  topic

Author Message
Anand
Posted: 03/01/2005, 12:40 AM

Hi,

I do have a editable grid (using php by the way). In this grid depending on some results in the DB (mysql) I want do make a text field readonly or not. Everything is working but the thing is how can I set the textfield readonly from php code?

Please help :-)

Cheers, Anand.
mrachow


Posts: 509
Posted: 03/01/2005, 1:13 AM

One solution should be to place TextBox and a Label (bound to the same database column) into a table cell.
Depending on your condition make the one visible and hide the other.
_________________
Best regards,
Michael
View profile  Send private message
Nicole

Posts: 586
Posted: 03/01/2005, 4:20 AM

Anand,
You can locate a custom template variable inside textbox HTML code and replace it with "readonly" keyword in Before Show Row event if necessary.
  
global $Tpl;  
  
if ($condition_to_make_readonly)  
$Tpl->SetVar("var_name", "readonly");  

_________________
Regards,
Nicole
View profile  Send private message

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.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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