Comments: on this page. Click to read or post your own.
Form field that embeds a list into a form, such as a member list or a file list.
All get variables are namespaced in the format ctf[MyFieldName][MyParameter] to avoid collisions when multiple TableListFields are present in a form.
Located in /sapphire/forms/TableListField.php (line 23)
Object | --ViewableData | --RequestHandlingData | --FormField | --TableListField
| Class | Description |
|---|---|
| ComplexTableField | Provides a tabuar list in your form with view, edit and add links to edit records with a "has-one"-relationship. Detail-views are shown in a greybox-iframe. |
| TableField | TableField behaves in the same manner as TableListField, however allows the addition of fields and editing of attributes specified, and filtering results. |
| FileList | Form field that embeds a list into a form, such as a member list or a file list. |
Character to seperate exported columns in the CSV file
Called method (needs to be retained for AddMode())
Inherited from FormField
FormField::$containerFieldSet
FormField::$description
FormField::$disabled
FormField::$dontEscape
FormField::$extraClass
FormField::$extraClasses
FormField::$form
FormField::$leftTitle
FormField::$message
FormField::$messageType
FormField::$name
FormField::$readonly
FormField::$rightTitle
FormField::$tabIndex
FormField::$title
FormField::$value
Inherited from RequestHandlingData
RequestHandlingData::$allowed_actions
RequestHandlingData::$request
Inherited from ViewableData
ViewableData::$casting
ViewableData::$castingHelperPair_cache
ViewableData::$customisedObj
ViewableData::$failover
ViewableData::$iteratorPos
ViewableData::$iteratorTotalItems
ViewableData::$namedAs
ViewableData::$parent
ViewableData::$_natural_cache
ViewableData::$_object_cache
ViewableData::$_xml_cache
Inherited from Object
Object::$builtInMethods
Object::$class
Object::$classConstructed
Object::$extensions
Object::$extension_instances
Object::$extraMethods
Object::$extraStatics
Object::$statics
Object::$static_cached
Helper method to determine permissions for a scaffolded TableListField (or subclasses) - currently used in ModelAdmin and DataObject->scaffoldFormFields().
Returns true for each permission that doesn't have an explicit getter.
Dummy function to get number of actions originally generated in TableListField_Item.
Can utilize some built-in summary-functions, with optional casting.
Currently supported:
Returns the content of the TableListField as a piece of FormResponse javascript
Template accessor for Permissions
Exports a given set of comma-separated IDs (from a previous search-query, stored in a HiddenField).
Uses {$csv_columns} if present, and falls back to {$result_columns}.
We need to instanciate this button manually as a normal button has no means of adding inline onclick-behaviour.
Compile all request-parameters for search and pagination (except the actual list-positions) as a query-string.
Get the CSV separator character. Defaults to ,
Generates the query for sourceitems (without pagination/limit-clause)
Determines if a field is "sortable".
If the field is generated by a custom getter, we can't sort on it without generating all objects first (which would be a huge performance impact).
Remove the header row from the CSV export
Configure this table to load content into a subform via ajax
Configure this table to open a popup window
Set the CSV separator character. Defaults to ,
Provide a custom query to compute sourceItems. This is the preferred way to using {@setSourceItems}, because we can still paginate.
Caution: Other parameters such as {@sourceFilter} will be ignored. Please use this only as a fallback for really complex queries (e.g. involving HAVING and GROUPBY).
#################################
CSV Export #################################
#########################
Highlighting #########################
#################################
Pagination #################################
Get the filter
#################################
Utilty #################################
Inherited From FormField
FormField::__construct()
FormField::addExtraClass()
FormField::attrName()
FormField::attrTitle()
FormField::attrValue()
FormField::createTag()
FormField::dataValue()
FormField::debug()
FormField::describe()
FormField::extraClass()
FormField::Field()
FormField::FieldHolder()
FormField::forTemplate()
FormField::getForm()
FormField::getTabIndex()
FormField::getTabIndexHTML()
FormField::hasClass()
FormField::hasData()
FormField::id()
FormField::isComposite()
FormField::isDisabled()
FormField::isReadonly()
FormField::jsValidation()
FormField::LeftTitle()
FormField::Link()
FormField::Message()
FormField::MessageType()
FormField::Name()
FormField::name_to_label()
FormField::performDisabledTransformation()
FormField::performReadonlyTransformation()
FormField::removeExtraClass()
FormField::Required()
FormField::RightTitle()
FormField::rootFieldSet()
FormField::saveInto()
FormField::setContainerFieldSet()
FormField::setDisabled()
FormField::setError()
FormField::setForm()
FormField::setLeftTitle()
FormField::setName()
FormField::setReadonly()
FormField::setRightTitle()
FormField::setTabIndex()
FormField::setTitle()
FormField::setValue()
FormField::SmallFieldHolder()
FormField::Title()
FormField::transform()
FormField::Type()
FormField::validate()
FormField::Value()
Inherited From RequestHandlingData
RequestHandlingData::checkAccessAction()
RequestHandlingData::getRequest()
RequestHandlingData::handleRequest()
RequestHandlingData::httpError()
Inherited From ViewableData
ViewableData::ATT_val()