Checkbox groups

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

Postby cinocino » Tue Jun 27, 2006 4:19 am

Some questions about checkbox groups:

- What's the function used to store the multiple value in the DB? (I'll use it to print into an e-mail the submitted values)

- In wich php template or file are they generated? (trying to fix the blank lines problem in Explorer)

thanks
Cino
cinocino
 
Posts: 8
Joined: Wed Dec 31, 1969 5:00 pm

Postby cinocino » Tue Jul 11, 2006 7:20 am

hi,

solved the strange "Internet explore blank lines before checkbox group" problem.

in file Dataface.php in HTML/QuickForm/Renderer/Dataface around line 108

changed this way

//$separator = ' ';
$separator = '';

hope is useful for someone

Cino
cinocino
 
Posts: 8
Joined: Wed Dec 31, 1969 5:00 pm

Postby shannah » Tue Jul 11, 2006 10:32 am

Thanks for this, cino.

I have applied this to the source for both 0.5.x and 0.6, so that any future releases will incorporate this.
--
Steve Hannah
@shannah78 (on twitter)
sjhannah.com blog
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Postby jitu » Wed Oct 03, 2007 12:46 am

hi steve
i solved my problem on export csv

let i want check box with multiple things
than wat to do

like eg

checkbox sign file-server,localserver,printer
checkbox sign file-server1,localserver1,printer1
checkbox sign file-server2,localserver2,printer2
checkbox sign file-server3,localserver3,printer3



ican get one option like
checkbox sign file-server
checkbox sign file-server1

in field.ini

i given
[service_port_range]
widget:type = checkbox
vocabulary = service_port_range
widget:label = "Access Map"


valuelists.ini
[service_port_range]
__sql__ = "select device_ip_address, device_name,name_of_service from device_details where type_of_device !=1 and type_of_device != 5"

check box appears with
device_name but wat about other parameter like name_of_service


thanks
Jitendra Dinanath Thakur
jitendra_forum2006@yahoo.co.in
jitu
 
Posts: 6
Joined: Wed Dec 31, 1969 5:00 pm

Postby shannah » Fri Oct 05, 2007 11:32 am

Hi Jitendra,

What kind of field are you using for the service_port_range field? If you want to store multiple values it should be a varchar or a text field. If it is any other type of field, then it can only be either "on" or "off" rather than containing multiple values checked.

-Steve
--
Steve Hannah
@shannah78 (on twitter)
sjhannah.com blog
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 24 guests

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