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

Subscribe to our news:
Partners
Testimonials
Olivier Auverlot: "At my work (a universitary computer research laboratory), I'm alone to create all applications and databases. I don't know how I could do all the work without it. It's really a very productive software. I can focus on the database schemas and create quickly the user applications with a minimal amount of code to maintain".
Roger Brown: "Great product. The more I work with it, the more I am amazed at what it can do".

More

Add your opinion

PostgreSQL PHP Generator online Help

Prev Return to chapter overview Next

addItem

Adds items to a radio group 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