C
|
cgphp 3/14/2012 |
You can use the "Javascript onload" event to make a field readonly. More info here: http://xlinesoft.com/phprunner/docs/makereadonly.htm |
![]() |
Sergey Kornilov admin 3/14/2012 |
BeforeDisplay event don't have access to $values array which means your SQL Query never returns any data. |
S
|
stiven author 3/14/2012 |
Yes i could use javascript onLoad event, but how am i going to get the value from the other table on javascript onload? i need to make it read only dependent on a value from another table You can use the "Javascript onload" event to make a field readonly. More info here: http://xlinesoft.com/phprunner/docs/makereadonly.htm |
S
|
stiven author 3/14/2012 |
I think it does have access to $values array because I am getting the value when i echo the sql query. maybe it doesn't have access to the db_functions.. i replace the db functions to this
BeforeDisplay event don't have access to $values array which means your SQL Query never returns any data. You can use ProcessValues event to save $values array in Session variable and then use it in BeforeDisplay event. More info: http://xlinesoft.com/phprunner/docs/process_record_values.htm |
C
|
cgphp 3/14/2012 |
Does the case_# field is INT type? If so, the query should be: global $conn; |
S
|
stiven author 3/14/2012 |
yes it is. I had already changed it to this
global $conn; |