Am i doing something wrong?
In my .tcl file I have a line that reads:
set existing_id_l [sdb_qi_project_id_l -threed "0" $qi_project_id]
In a procs file I have the following:
ad_proc -public sdb_qi_project_id_l {
-threed
-available:boolean
-name:boolean
qi_project_id
} {
}
...
set threed_sql ""
if { [exists_and_not_null threed] } {
if $threed {
set threed_sql "AND data_type = '3D OUTLINE'"
} else {
set threed_sql "AND data_type != '3D OUTLINE'"
}
}
...
But if i load my page, I get the following error:
Invalid switch: "-threed"
while executing
"sdb_qi_project_id_l__arg_parser"
(procedure "sdb_qi_project_id_l" line 1)
invoked from within
"sdb_qi_project_id_l -threed "1" $qi_project_id"
invoked from within
"set existing_id_l [sdb_qi_project_id_l -threed "1" $qi_project_id]"
("uplevel" body line 134)
invoked from within
"uplevel {
#sdb/www/sdb-mapview.tcl
ad_page_contract {
Display a map of the selected area
...
What am i doing wrong?