Ferreteria/errors/need to define ListItem Value
< Ferreteria | errors
Jump to navigation
Jump to search
Error text: need to define method "ListItem_Value()" for class clsDataSet, or create a descendant.
Dropdown lists in Ferreteria forms require three callbacks so that they know what the recordset should display:
- ListItem_Value() - native value (typically an integer, but can be anything that could be used as a key)
- ListItem_Text() - plaintext value to display
- ListItem_Link() - formatted text to display when possible (usually when control is not in edit mode; typically a link)
Whichever object is passed to the fcFormControl_HTML_DropDown::Records() method needs to define these methods. If you're using a generic recordset class (such as DataSet), just create a descendant of that class only (no need to create a matching Table class) and implement these methods.