CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> CodeCharge Studio -> ASP

 Listbox Modify at RunTime..

Print topic Send  topic

Author Message
jimmyLeander

Posts: 4
Posted: 08/12/2004, 7:24 AM

I am trying to modify the contents of a listbox at runtime. The listbox is named s_week and is part of a search routine named tbl_MaintenanceSearch. I am using WinXP, IIS5.0 and ASP Templates. I am generating a list of dates in the variables named DateArrayVar1 and DateArrayVar2 and the values are listed below. I then am attempting to use these variables in the listbox modification routine that I copied from help and is listed below. I put the modification routine in the BeforeShow event for the listbox named s_week and I am generating DateArrayVar1 and DateArrayVar2 in the BeforeShow event for the search record. I know that DateArrayVar1 and DateArrayVar2 contain what I have below through the use of response.write. Any help would be appreciated.

s_week properties are as follows:

Control Source Type = Code Expression
DataSourceType = ListOfValues
Data Source = Yes;Yes I read on the Forum that even though list will be modified the Data Source needs an initial value.
Data Type = Text

All other properties are empty


Function where I am attempting to modify the s_week values.

Function tbl_MaintenanceSearch_s_week_BeforeShow() 'tbl_MaintenanceSearch_s_week_BeforeShow @54-69AF1429

'Custom Code @57-73254650
Set tbl_MaintenanceSearch.s_week.DataSource = CCCreateDataSource(dsListOfValues, Empty, Array( _
Array(DateArrayVar1), _
Array(DateArrayVar2)))
'End Custom Code

End Function 'Close tbl_MaintenanceSearch_s_week_BeforeShow @54-54C34B28


Variables and their values that I am using to modify s_week values.

DateArrayVar1 = "8/11/2004","8/4/2004","7/28/2004","7/21/2004"
DateArrayVar2 = "8/11/2004","8/4/2004","7/28/2004","7/21/2004"
_________________
Jimmy
View profile  Send private message
jimmyLeander

Posts: 4
Posted: 08/12/2004, 7:35 AM

Oh yes a very important addition. The out put I get is -
1st option "Select Value"
2nd option is "Yes".....
_________________
Jimmy
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.