for { set i 0 }{$i < [ns_set size $selection]}{ incr i }{
set var [lindex$col_names $i]
set val [ns_set value $selection$i]
# fraber 100519: I don't remember why index columns shouldn't be part of the
# returned fields in the first place. But now we need them in the Timesheet
# REST application.
# if {[lsearch$index_columns $var] >= 0}{ continue }
set result_hash($var)$val
}
}
}
db_release_unused_handles
if {{} == [array get result_hash]}{ return [im_rest_error -format $format -http_status 404 -message "Generic: Did not find object '$rest_otype' with the ID '$rest_oid'."]}
if {{} == [array get result_hash]}{
return [im_rest_error -format $format -http_status 404 -message "Generic: Did not find object '$rest_otype' with the ID '$rest_oid'."]
im_rest_error -format $format -http_status 500 -message "Invalid DynField configuration: Object type '$rest_otype' doesn't have a table_name specified in table acs_object_types."