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

Subscribe to our news:
Partners
Testimonials
Steven Langfield: "I wanted to drop you a mail to say how freaking AMAZING your software is. It will be the best £100 I have ever spent. I have still to read all your documentation to take full advantage but what you have created is truly amazing".
Philipp Gerber: "

The product is so easy and super built that you can achieve visible and great success after a short time. Also very much possible with the product. A class product. I'm already looking forward to the next versions and extensions. Keep it up.

Support to the product is just perfect. Each Support request is quickly and very competent solved. Also various assistance, which does not fall into a support, are also perfectly processed. There is a direct wire to the manufacturer / developer and this is notth. Thanks for the class Support".

More

Add your opinion

PHP Generator for MySQL online Help

Prev Return to chapter overview Next

OnInsertFormLoaded

This event occurs after an Insert form is loaded. Live example.

 

Signature:

function OnInsertFormLoaded(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'].enabled(false);  

}

else

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

 

2) Player's college is cleared and the appropriate control becomes disabled if player's country is not USA (country code == 1). The inline hint describes the reason of the disabling.

 

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

addInlineHint('college_id', 'College can be selected only for players from USA.')

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

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

     

 

See also: OnEditFormLoaded



Prev Return to chapter overview Next