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 |
 |
 |
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 |
 |
 |
|