Forum OpenACS Development: Response to ad_form for new and edit requests

Collapse
Posted by Jeff Davis on
I accidently clicked on rejected  instead of accept only. no way to change.  Damn that SDM.
Collapse
Posted by Joel Aufrecht on
Could somebody explain how to accomplish the following behavior.  It feels just out of reach with ad_form.

0) a page called "object-edit"

1) A single block of code that includes
  a) sql code or tcl api calls to retrieve a record, update a record, or create a record
  b) description of the fields to display and the html elements to use

2) browsing to "object-edit" displays a form to add an object, with a button labelled "Add" (or using the acs-kernel message key for Add).
2a) After clicking "Add", page redirects to "object-edit?id=47" and shows the object in a read-only version of the form

3) browsing to "object-edit?id=47" shows object 47 in read-only mode

4) browsing to "object-edit?id=47&mode=edit" shows object 47 in edit mode