Can anybody here tell me why these simple codes don't seems to work? I need to have my combobox (Supervisor) comes from the list from rpt_supervisor table. But what has came out is the '$query_sup' itself in my combo box instead of the list of the data. These are the codes.
set query_sup [db_list_of_lists sup_loop "select sup_fullname, sup_id from rpt_supervisor"]
form create add_project -elements {
project_sup -label "Supervisor" -datatype text -widget select \
-options {$query_sup}
}
Why my-$query_sup variable is not read as the variable but then it is displayed as if only a normal string. Did I missed something there?
Thnx in advance.