problem with widget:type=hidden
Archived from the Xataface Users forum.
fantomasdm — Tue Sep 02, 2008 6:08 am
using widget:type=hidden with field type enumarete don’t work!!
fantomasdm — Mon Sep 08, 2008 12:11 pm
No news? Is a bug or is not possible to replicate the error?
shannah — Mon Sep 08, 2008 12:44 pm
This is a bug. It will be fixed in a later version, but in the meantime, here is a work around.
In the delegate class’s init() method:
- Code: Select all
function init(&$table){ $myfield =& $table->getField('my_enum_field'); $myfield['widget']['type'] = 'hidden'; }
Where ‘my_enum_field’ is an enum field.
-Steve
fantomasdm — Tue Sep 09, 2008 7:55 am
Thank you very much!!
rwzhao — Sun Mar 15, 2009 12:12 am
I am using version 1.1.5r2 and still have the problem to hide enum field or make enum field static.
Is the bug solved?
shannah — Tue Mar 17, 2009 3:05 pm
Evidently not. Please use workaround described in this thread until it is fixed.
fantomasdm — Sun Mar 29, 2009 11:51 pm
Sorry for reopen this topic but I try to add this:
function init(&$table){
$myfield =& $table->getField(‘Allegato_mimetype’);
$myfield[‘widget’][‘type’] = ‘hidden’;
}
and
in fields.ini
[Allegato_mimetype]
widget:type=hidden
but the in list view field Allegato_mimetype is still visible!!
fantomasdm — Wed Apr 01, 2009 12:16 am
with
- Code: Select all
[Allegato_mimetype] visibility:list=0
it’s working
zabelle_motte — Thu May 10, 2012 2:51 am
What about the functionnality “widget type=hidden” in the xataface current version ?
It still seems not to work.
Thanks in advance.
Zabelle
zabelle_motte — Mon May 14, 2012 2:10 am
Hello !
I had a try with this code in the delegate class :
- Code: Select all
function init(&$table){ $myfield =& $table->getField('my_enum_field'); $myfield['widget']['type'] = 'hidden'; }
and it works fine.
Hope the actual implementation of the widget type hidden will come a day …
Zabelle