Utility class which formats javascript-driven record selector.
This class provides support for DBLJSLCField. It implements selecting one of N records in a popup window.
Its most important input is query, from which the items available for choice are got. The query should return (id,text) value pairs. ID is id of the record, Text is textual representation of the record, displayed to user.
Class prints form with an editbox, a listview and a submit/close buttons. In the listview, records available for choice are shown. The editbox is used for filtering. When it is not empty (user writes something to it), only records which contain the string (in editbox) as a substring are shown. (Comparison is case insensitive.) (See matchOnlyFromStart property.)
The whole selector operates in two modes - let's call them "popup" and "submit". By default, it is in the "popup" mode. If the submitURL property is set, it operates in the "submit" mode.
In popup mode:
In submit mode:
You will use the popup mode for the popup of DBLJSLCField. The submit mode is usually used to select a master record when creating new dependent record. (TODO Example pointer TODO)
Located in /DBLJSExternalSelector.php (line 45)
Constructor.
Prints form itself (editbox, listview and buttons).
Override this if you wish to get different form look.
Output form and all the necessary JavaScript.
Documentation generated on Mon, 6 Sep 2004 21:57:10 +0200 by phpDocumentor 1.2.3