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

Subscribe to our news:
Partners
Testimonials
David Lantz: "Thank you, this is by far the simplest, and most friendly utility for building db record system I have ever used. I wish I could get my systems guys at the office to purchase this for our company would be so very helpful and speed up a lot of work. I for one have used it for everything from a simple inventory record of my house, to a members record for my church just little pet projects and a test bed to test my own db builds and theories before having to hand code at the office..... it is a lot of fun to work with".
Ananda Theerthan J: "I have been looking for PHP generator for years and now I am happy that I found one. Yes, its the PHP generator for MySQL. I completely rate 10/10 for this product for making life easier. It has lot of features and capabilities especially the CRUD, lookups and data partitioning. I love this product and recommend to others".

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