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".
Gabriela Arsene: "MySQL PHP Generator is really excellent! A very useful, easy to use tool and above all it is free, saving a lot of time and money to a developer! Great job! Congratulations to all the people who work at this project".

More

Add your opinion

PHP Generator for MySQL online Help

Prev Return to chapter overview Next

addItem

Adds items to a combobox dynamically.

 

Signature:

function addItem(value, caption);

 

Example:

This example shows how we can manipulate combobox and radio group items depending on the 'sex' value. Place the code in the OnInsertFormEditorValueChanged and OnEditFormEditorValueChanged event handlers to change the 'Title' content depending of the selected 'Sex' value.

 

function fillRelatedTitles(sender, editors) 

{

  if (sender.getValue() == 'Male') {

      editors['title'].removeItem('Ms','Ms');

      editors['title'].removeItem('Mrs','Mrs');

      editors['title'].addItem('Mr','Mr');

  }

  else {

      editors['title'].removeItem('Mr');

      editors['title'].addItem('Ms','Ms');

      editors['title'].addItem('Mrs','Mrs');

  }

}

 

The screenshot demonstrates the result of the fired event.

 

 

See also: removeItem, getItemCount, clear



Prev Return to chapter overview Next