Hi, In my timesheet application I have a form which looks like a spreadsheet, where each cell has a drop-down list of time-measures in 15min increments up to 9 hours, the idea being for the user to set the time he works against each job on the timesheet. The function below generates these "Hours Input Cells", and works fine except that it won't set the selected option to the value as obtained from the assignment to Val in the second line of code.
HOWEVER, if I assign a new value to Val (see commented-out line), then it selects the drop-down option to that value for each cell... Note that I am obtaining a valid value for Val, I can display it in the form for testing purposes (see TD in last line), and if when I assign one of those values to Val as per the commented-out line, it correctly sets it as selected in the drop-down list. def HoursInputCell(TSE, field): Val = TSE[field] FieldName = GetHoursCellName(TSE, field) Values = DayTimeIncrements #Val= 2.5 return TD( Val , SELECT(value=Val , *Values, _name=FieldName, _width='20', _class='TimesheetHoursInput'), _class='TimesheetTableDayCell') Could this have anything to do with cache?