Home » Database » DB_DataObject_FormBuilder » Bug #4206
Filter for selection box and calling statically _array2date
Details
| Request #4206 | Filter for selection box and calling statically _array2date |
|---|---|
| Submitted | 2005-04-22 17:06 UTC |
| From | vtamara at pasosdejesus dot org |
| Assigned | justinpatrin |
| Status | Wont fix |
| Package | DB_DataObject_FormBuilder |
| PHP Version | 4.3.8 |
| OS | OpenBSD |
| Roadmaps | (Not assigned) |
Comments
[2005-04-22 17:06 UTC] vtamara at pasosdejesus dot org
Description:
------------
Whit this small patch, it is possible to filter easily
the options of a selection box.
Just define fb_selectFilter in an object of type DataObject:
$formbuildobject->_do->fb_selectFilters=array(
'field' => array('id in (SELECT id_antecedente '.
'FROM antecedente_caso WHERE id_caso=\'100\')'));
$formbuildobject->getForm();
It is also possible to call statically _array2date.
Thank you for the good work. God illuminate us.
Reproduce code:
---------------
The patch is against FormBuilder 0.13.3
http://www.pasosdejesus.org/parches/formbuilder0-13-3-filter-array2date.patch