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

Subscribe to our news:
Partners
Testimonials
Simon Greener: "A lot of work went in to designing our application database. PHP Generator allowed us to build a fully functional, professional looking, and functionally powerful web application from that database. It has freed us from worrying about low level code, enabling us to focus on the business requirements of the customer. The support provided is excellent with staff quickly producing answers to questions ranging from newbie to simple or complex. I highly recommend the product".
Anley Lafleur: "I cannot wait to start using your exciting product and I am sure it will help me achieve my objectives".

More

Add your opinion

PostgreSQL PHP Generator online Help

Prev Return to chapter overview Next

removeItem

Removes an item from a radio group.

 

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