

To create a lookup editor bound to a custom value list i.e.Trying to pull huge data from MySQL using PHP. Setting a lookup editor bound to a custom value list

To enable a lookup editor for the 'HEAD_DEPT' field of the 'department' table representing first name, last name, and job title of the employee, follow the steps above with the following query text:ĬONCAT(e.FIRST_NAME, ' ', e.LAST_NAME, ', ', j.JOB_TITLE) as FULL_NAME Suppose we have three tables: 'employee' with a list of office employees, 'job' with employees' job titles and salaries, and 'department' with a list of office departments. To create such lookup editor, create a query with all the necessary data concatenated into a single column and specify the query as Data Source. Setting a lookup editor represented data of multiple columns Only predefined variables and constant expressions are allowed. The Filter Condition property cannot be used to implement dependent lookups or another similar logic. To set a lookup editor with the list of values owned by the current user, specify the filter condition as follows: owner = '%CURRENT_USER_NAME%' Suppose we have a table that contains a column 'owner' with owner information.

To enable a lookup editor with a list of USA cities (the corresponding value of "country_id" is 103) named like Da*, specify the following condition: country_id = 103 AND city LIKE 'Da%'

It is also possible to use predefined variables like %CURRENT_USER_NAME%. The following operators can be used in this clause: =, (!=), >, =, <=, BETWEEN, LIKE, IN. This condition corresponds to the WHERE clause applied to the data source (you must not add the WHERE keyword to beginning of the condition). For example, you might want to hide some fields and/or customize the form layout.įilter condition allows you to reduce the list of values represented in the lookup editor with a specified criteria. Turn this option ON in order to allow users to see the whole lookup record clicking on the corresponding cell in the data grid ( live demo).Ĭlick the ellipsis button to customize the modal dialog to be displayed when viewing the record. For example, you might want to hide some fields and/or customize the form layout. When this option is checked, a plus button is displayed on the right of the corresponding control ( Live demo).Ĭlick the ellipsis button to customize the modal dialog to be displayed when adding a new item. Turn this option ON in order to allow adding new items directly in Insert and Edit forms. Set the field with the data to be appeared in the lookup editor as Display field īy default, PHP Generator for MySQL uses the Dynamic Combobox editor for a column linked by a foreign key with a single column from another table (if Setup lookups by foreign key option is enabled).
