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

Subscribe to our news:
Partners
Testimonials
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".
Lucian Nedescu: "Thank you very much. Have a nice century (this is a real wish :P). I think that i will do a great job on my clients database with the new php interface. Thank You again".

More

Add your opinion

PHP Generator for MySQL online Help

Prev Return to chapter overview Next

removeItem

Removes an item from a combobox.

 

Signature:

function removeItem(value)

 

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: addItem, getItemCount, clear



Prev Return to chapter overview Next