Choose your database:
AnySQL
MySQL
MS SQL Server
PostgreSQL
SQLite
Firebird
Oracle
SQL Anywhere
DB2
MaxDB

Subscribe to our news:
Partners
Testimonials
Dionys Henzen: "Congratulations! Your MySQL PHP Generator is a great tool, that can save a lot of time and money to a developer! I'll evaluate for sure your software products when I need them. Great job".
Rickey Steinke: "Folks, I wanted to drop a line and give you a fanatic thank you. I have a project due for my computer application course and without PHP Generator I never would have gotten it done with the professional results your product produced. My sincerest gratitude to each and every team member who brought this program to light".

More

Add your opinion

PHP Generator for MySQL online Help

Prev Return to chapter overview Next

OnEditFormLoaded

This event occurs after the Edit form is loaded. Live example.

 

Signature:

function OnEditFormLoaded(editors)

 

Parameters:

editors

An associative array of form controls. To access the value of the editor of the column_name column, use the editors['column_name'] syntax.

 

Example:

This piece of code targets two things:

 

1) Player number is cleared and the appropriate control becomes disabled for players that do not belong to a team.

 

if (editors['current_team_id'].getValue() == '') {

    editors['current_number'].setValue('');

    editors['current_number'].setEnabled(false);  

}

else {

    editors['current_number'].setEnabled(true);  

}

 

2) Player's college is cleared and the appropriate control becomes disabled if player's country is not USA (country code == 1).

 

editors['college_id'].setEnabled(editors['country_id'].getValue() == 1);

if (editors['country_id'].getValue() != 1)

    editors['college_id'].setValue(null);

     

     

 

 

See also: OnInsertFormLoaded



Prev Return to chapter overview Next