Page 1 of 1

problem with widget:type=hidden

PostPosted: Tue Sep 02, 2008 6:08 am
by fantomasdm
using widget:type=hidden with field type enumarete don't work!!

PostPosted: Mon Sep 08, 2008 12:11 pm
by fantomasdm
No news? Is a bug or is not possible to replicate the error?

PostPosted: Mon Sep 08, 2008 12:44 pm
by shannah
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

PostPosted: Tue Sep 09, 2008 7:55 am
by fantomasdm
Thank you very much!!

PostPosted: Sun Mar 15, 2009 12:12 am
by rwzhao
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?

PostPosted: Tue Mar 17, 2009 3:05 pm
by shannah
Evidently not. Please use workaround described in this thread until it is fixed.

PostPosted: Sun Mar 29, 2009 11:51 pm
by fantomasdm
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!!

PostPosted: Wed Apr 01, 2009 12:16 am
by fantomasdm
with

Code: Select all
[Allegato_mimetype]
visibility:list=0


it's working

Re: problem with widget:type=hidden

PostPosted: Thu May 10, 2012 2:51 am
by zabelle_motte
What about the functionnality "widget type=hidden" in the xataface current version ?

It still seems not to work.

Thanks in advance.

Zabelle

Re: problem with widget:type=hidden

PostPosted: Mon May 14, 2012 2:10 am
by zabelle_motte
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