CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> Español

 arreglos

Print topic Send  topic

Author Message
eagleblack

Posts: 11
Posted: 03/20/2007, 5:11 AM

Buenas.. una consulta..
Tengo un combo list... con seleccion multiple... como hago para pasar esos datos multiples por una variable url??

Gracias...
View profile  Send private message
lvalverdeb

Posts: 299
Posted: 03/23/2007, 7:32 AM

Creo que este ejemplo hace lo que quieres:

http://examples.codecharge.com/ExamplePack/MultiSelectS...electSearch.php
Usas un formulario tipo Search los valores multiples se agregar al url automaticamente siempre y cuando el listbox tenga la propiedad multiple seleccionada.

Observa que el url contiene multiples s_project[ ] y es preciso convertirlos en un array en la página que los recibe. En el ejemplo se utiliza el Evento BeforeBuildSelect de un grid y se agrega al Where del SQL asi:

  
$arr = $Component->DataSource->wp->Parameters["1"]->Text;  
    if (is_array($arr) && count($arr)) {  
	  $result = array();  
	  foreach ($arr as $val)  
	    if (CCValidateNumber($val, ""))  
		  $result[] = $val;  
	  $Component->DataSource->wp->Parameters["1"]->SetText(implode(",", $result));  
	} else {  
	  $Component->DataSource->wp->Parameters["1"]->SetText("0");  
	}  

Luis
_________________
lvalverdeb
CR, GMT-6
XAMPP/Ubuntu/CCS3.2/4
View profile  Send private message
eagleblack

Posts: 11
Posted: 03/23/2007, 10:36 AM

muchisimas gracias...!!
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.