Forum .LRN Q&A: myFirstPackage

Collapse
Posted by Al Guyer on
Following along the myFirstPackage tutorial, at Chapter 10. Advanced Topics, (http://localhost/doc/tutorial-comments.html)
It says to add code to note-edit.tcl:

set comment_add_url "[general_comments_package_url]comment-add?[export_vars {
{ object_id $note_id }
{ object_name $title }
{ return_url "[ad_conn url]?[ad_conn query]"}
}]"

This causes server error:
Can't read "note_id": no such variable
while executing
"subst {$note_id}"
("uplevel" body line 1)
invoked from within
"uplevel subst \{[lindex $var_spec 1]\}"

etc, etc...