enum and set field_type doesn't work
- Single Page
Posted 18 May 2012 - 20:18 PM
I try like this:
$crud->change_field_type('test','enum', array('test','test1','test2'));
$crud->change_field_type('test','set', array('test','test1','test2'));
but it didn't work!
Posted 18 May 2012 - 21:45 PM
Posted 19 May 2012 - 14:56 PM
Posted 19 May 2012 - 18:22 PM
Posted 19 May 2012 - 18:31 PM
Posted 19 May 2012 - 22:43 PM
grocery CRUD auto-generates the select and multiselect for enum and set fields
Posted 20 May 2012 - 15:59 PM
for example when I type in name field "Product Xyz" , seo_name automatically filled by "product_xyz".
Posted 11 September 2012 - 21:33 PM
$crud->change_field_type('Enabled', 'enum', array( 0 => 'Disabled', 1 => 'Enabled' ));
Posted 15 September 2012 - 19:09 PM
This looks like it works in 1.3.1 but fails to save in database. When will this be supported?
$crud->change_field_type('Enabled', 'enum', array( 0 => 'Disabled', 1 => 'Enabled' ));
[/quote]
This will be the "dropdown" field type but there is not such a feature right now so you can only use the "enum" for now and then add a callback_insert and callback_update