Trying to modify the notes package to use ad_form, I stumbled
over the following problem: how does one deal with pages that need to
distinguish wether the current request is
and item-edit or an item-add operation, while displaying the form?
over the following problem: how does one deal with pages that need to
distinguish wether the current request is
and item-edit or an item-add operation, while displaying the form?
It is of course possible to distinguish that in -edit_data and
-new_data, but they won't be called until the form was sucessfully
committed.
What if I need to set the page title depending on the request type to
"Edit Item" or "New Item", like currently in
packages/notes/www/add-edit.tcl? Also that page does a permission check
before displaying the form - when editing a note it checks for write
on that object, when adding a new one it checks for create on the
package. Can that be done with the current ad_form?
Request notifications