Post code if you have it (paste.lisp.org).

If you are using a gridedit, one (best?) solution is to have different
forms (and different views) in the dataedit-create-widget and dataedit-
add-widget (dunno what the exact fn. names are) functions. One of the
views can have the disabled presentation for the relevant field, and
the other the regular one.

IOW

(defview common-view (:scaffold foo-class))
(defview modify-view (:inherit-from 'common-view)
  (email (:present-as (disabled-input :args 1))))
(defview newitem-view (:inherit-from 'common-view))


Of course, in the pseudo-code above newitem-view is not really
necessary.

--

You received this message because you are subscribed to the Google Groups 
"weblocks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/weblocks?hl=en.


Reply via email to