problem with widget:type=hidden

A place for users and developers of the Xataface to discuss and receive support.

problem with widget:type=hidden

Postby fantomasdm » Tue Sep 02, 2008 6:08 am

using widget:type=hidden with field type enumarete don't work!!
fantomasdm
 
Posts: 114
Joined: Thu Mar 13, 2008 2:35 pm

Postby fantomasdm » Mon Sep 08, 2008 12:11 pm

No news? Is a bug or is not possible to replicate the error?
fantomasdm
 
Posts: 114
Joined: Thu Mar 13, 2008 2:35 pm

Postby 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
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Postby fantomasdm » Tue Sep 09, 2008 7:55 am

Thank you very much!!
fantomasdm
 
Posts: 114
Joined: Thu Mar 13, 2008 2:35 pm

Postby 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?
rwzhao
 
Posts: 14
Joined: Mon Sep 01, 2008 10:04 pm

Postby shannah » Tue Mar 17, 2009 3:05 pm

Evidently not. Please use workaround described in this thread until it is fixed.
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Postby 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
 
Posts: 114
Joined: Thu Mar 13, 2008 2:35 pm

Postby fantomasdm » Wed Apr 01, 2009 12:16 am

with

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


it's working
fantomasdm
 
Posts: 114
Joined: Thu Mar 13, 2008 2:35 pm

Re: problem with widget:type=hidden

Postby 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
 
Posts: 19
Joined: Tue Sep 01, 2009 6:18 am

Re: problem with widget:type=hidden

Postby 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
zabelle_motte
 
Posts: 19
Joined: Tue Sep 01, 2009 6:18 am


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 2 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved