Comments: on this page. Click to read or post your own.
TableField behaves in the same manner as TableListField, however allows the addition of fields and editing of attributes specified, and filtering results.
Caution: If you insert DropdownFields in the fieldTypes-array, make sure they have an empty first option. Otherwise the saving can't determine if a new row should really be saved.
Caution: TableField relies on {@FormResponse} to reload the field after it is saved. A TableField-instance should never be saved twice without reloading, because otherwise it can't determine if a field is new (=create) or existing (=update), and will produce duplicates.
Located in /sapphire/forms/TableField.php (line 29)
Object | --ViewableData | --RequestHandlingData | --FormField | --TableListField | --TableField
A "Field = Value" filter can be specified by setting $this->filterField and $this->filterValue. This has the advantage of auto-populating
new records
A "Field = Value" filter can be specified by setting $this->filterField and $this->filterValue. This has the advantage of auto-populating
new records
Influence output without having to subclass the template.
Shows a row of empty fields for adding a new record (turned on by default).
Please use TableField::$permissions to control if the "add"-functionality incl. button is shown at all.
Inherited from TableListField
TableListField::$actions
TableListField::$cachedSourceItems
TableListField::$clickAction
TableListField::$csvFieldEscape
TableListField::$csvFieldFormatting
TableListField::$csvHasHeader
TableListField::$csvSeparator
TableListField::$customCsvQuery
TableListField::$customQuery
TableListField::$customSourceItems
TableListField::$defaultAction
TableListField::$exportButtonLabel
TableListField::$extraLinkParams
TableListField::$fieldCasting
TableListField::$fieldFormatting
TableListField::$fieldListCsv
TableListField::$groupByField
TableListField::$highlightConditions
TableListField::$IsReadOnly
TableListField::$Markable
TableListField::$MarkableTitle
TableListField::$methodName
TableListField::$pageSize
TableListField::$readOnly
TableListField::$showPagination
TableListField::$summaryFieldList
TableListField::$summaryTitle
TableListField::$totalCount
TableListField::$url_handlers
TableListField::$__cachedQuery
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
Sets the template to be rendered with
Get all fields for each row contained in the TableField.
Does not include the empty row.
Get all fields in a single row.
Needed for Form->callfieldmethod.
Displays the headings on the template
Calculates the number of columns needed for colspans used in template
Displays the items from sourceItems using the encapsulation object
Validation
Called on save, it creates the appropriate objects and writes them to the database.
Saves the Dataobjects contained in the field
organises the data in the appropriate manner for saving
Returns the databased saved items, from DataObjects
Inherited From TableListField
TableListField::__construct()
TableListField::Actions()
TableListField::addSummary()
TableListField::ajax_refresh()
TableListField::BaseLink()
TableListField::Can()
TableListField::colFunction_avg()
TableListField::colFunction_sum()
TableListField::CurrentLink()
TableListField::delete()
TableListField::export()
TableListField::ExportLink()
TableListField::FieldHolder()
TableListField::FieldList()
TableListField::filterString()
TableListField::FirstItem()
TableListField::FirstLink()
TableListField::getCastedValue()
TableListField::getCsvQuery()
TableListField::getCsvSeparator()
TableListField::getExtraLinkParams()
TableListField::getPermissions()
TableListField::getQuery()
TableListField::GroupedItems()
TableListField::handleItem()
TableListField::HasGroupedItems()
TableListField::HasSummary()
TableListField::Headings()
TableListField::index()
TableListField::isFieldSortable()
TableListField::Items()
TableListField::LastItem()
TableListField::LastLink()
TableListField::ListStart()
TableListField::Name()
TableListField::NamePlural()
TableListField::NameSingular()
TableListField::NextLink()
TableListField::PageSize()
TableListField::performReadonlyTransformation()
TableListField::permissions_for_object()
TableListField::PrevLink()
TableListField::printall()
TableListField::PrintLink()
TableListField::removeCsvHeader()
TableListField::removeSummary()
TableListField::setClick_AjaxLoad()
TableListField::setClick_PopupLoad()
TableListField::setCSVFieldFormatting()
TableListField::setCsvSeparator()
TableListField::setCustomCsvQuery()
TableListField::setCustomQuery()
TableListField::setCustomSourceItems()
TableListField::setExtraLinkParams()
TableListField::setFieldCasting()
TableListField::setFieldFormatting()
TableListField::setFieldListCsv()
TableListField::setHighlightConditions()
TableListField::setPageSize()
TableListField::setPermissions()
TableListField::setShowPagination()
TableListField::setTemplate()
TableListField::ShowPagination()
TableListField::sourceClass()
TableListField::sourceFilter()
TableListField::sourceID()
TableListField::sourceItems()
TableListField::SummaryFields()
TableListField::SummaryTitle()
TableListField::Title()
TableListField::TotalCount()
TableListField::Utility()
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()
ViewableData::BaseHref()
ViewableData::buildCastingHelperCache()
ViewableData::cachedCall()
ViewableData::castingHelper()
ViewableData::castingHelperPair()
ViewableData::castingObjectCreator()
ViewableData::castingObjectCreatorPair()
ViewableData::CSSClasses()
ViewableData::CurrentMember()
ViewableData::CurrentPage()
ViewableData::customise()
ViewableData::Debug()
ViewableData::defineMethods()
ViewableData::escapeTypeForField()
ViewableData::Even()
ViewableData::EvenOdd()
ViewableData::First()
ViewableData::FirstLast()
ViewableData::getField()
ViewableData::getIterator()
ViewableData::getXMLValues()
ViewableData::hasField()
ViewableData::HasPerm()
ViewableData::hasValue()
ViewableData::i18nLocale()
ViewableData::IsAjax()
ViewableData::iteratorProperties()
ViewableData::JS_val()
ViewableData::Last()
ViewableData::Me()
ViewableData::Middle()
ViewableData::MiddleString()
ViewableData::obj()
ViewableData::Odd()
ViewableData::Pos()
ViewableData::RAW_val()
ViewableData::renderWith()
ViewableData::SecurityID()
ViewableData::setCustomisedObj()
ViewableData::setField()
ViewableData::SQL_val()
ViewableData::ThemeDir()
ViewableData::Top()
ViewableData::TotalItems()
ViewableData::val()
ViewableData::XML_val()
ViewableData::__get()
ViewableData::__isset()
ViewableData::__set()
Inherited From Object
Object::__construct()
Object::addMethodsFrom()
Object::addStaticVars()
Object::addWrapperMethod()
Object::add_extension()
Object::allMethodNames()
Object::buildMethodList()
Object::cacheToFile()
Object::cacheToFileWithArgs()
Object::create()
Object::createMethod()
Object::defineMethods()
Object::exists()
Object::extend()
Object::extInstance()
Object::getCustomClass()
Object::hasExtension()
Object::hasMethod()
Object::invokeWithExtensions()
Object::is_a()
Object::loadCache()
Object::parentClass()
Object::sanitiseCachename()
Object::saveCache()
Object::set_stat()
Object::set_uninherited()
Object::stat()
Object::strong_create()
Object::uninherited()
Object::useCustomClass()
Object::__call()
Object::__toString()
Documentation generated on Sun, 19 Oct 2008 06:46:30 +1300 by phpDocumentor 1.3.2