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

 Cambiar los valores de un ListBox por Codigo

Print topic Send  topic

Author Message
ggarciat

Posts: 4
Posted: 09/25/2007, 6:35 AM

Hola.

Estoy tratando de cambiar los valores de un ListBox por codigo con el siguiente ejemplo :

Set Tasks.Status.DataSource = CCCreateDataSource(dsListOfValues, Empty, _
Array(Array("1","2","3"),Array("High","Normal","Low")))

Pero no me lo esta tomando.

Que podra ser?

Agradezco de antemano cualquier indicacion.

Muchas Gracias

View profile  Send private message
zolw


Posts: 51
Posted: 10/29/2007, 2:14 PM

Lo estas poniendo en el BeforeShow del ListBox?
Y estas haciendo referencia al nombre correcto del formulario y control en el Set?

Set TuForma,TuCampo.DataSource

Saludos,

_________________
Zolw
http://www.xlso.com
View profile  Send private message
ggarciat

Posts: 4
Posted: 10/30/2007, 3:43 PM

Hola gracias por responder.

Te cuento que tuve que optar por crear una tabla y parametrizar el Query por una variable.

De ninguna manera me funciono haciéndolo manualmente.

Lo que hice fue lo siguiente;

Function GridSearch_ListBox1_BeforeShow(Sender) 'GridSearch_ListBox1_BeforeShow @121-D2DC5A9A

'Custom Code @122-73254650
' -------------------------
Set GridSearch.ListBox1.DataSource = CCCreateDataSource(dsListOfValues, Empty, Array(Array("1","2","3"),Array("High","Normal","Low")))
' -------------------------
'End Custom Code

End Function 'Close GridSearch_ListBox1_BeforeShow @121-54C34B28

El DataSource es ListOfValues y le adicione un valor de prueba

El tipo de dato del Listbox es TEXT

Solo me muestra "Seleccionar valor" y el valor que le adicione de prueba.

Te cuento que tuve que crear una tabla para este proceso.

Cualquier recomendación... muchas 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.