Forum OpenACS Q&A: Re: template::form::set_values not working?!

Collapse
Posted by tammy m on
Ok

This seems to be related to Templating code throwing undocumented errors again...

It looks like template::element::get_reference throws an error (this is documented, however this is a private helper proc and all procs that call it don't document that they throw errors) that template::element::set_properties passes on up to template::form::set_values.

The part I haven't figured out yet is why a call to template::element::set_properties throws the error and shows up in my adp output. But a call to template::form::set_values with the same basic parameters, does not throw the error, I can't see where it catches it... but seems that it just returns without setting any other values in my FORM.

Besides my obvious desire to get this working for me, my question in the related thread still remains unanswered... How do we get little code +/or documentation fixes for things like this into the code distribution so that other newbie OACS users won't get unexpected errors/results from proc calls? ;)