Hi

I have created a suggest-presentation and parser that can be given an
alist or a function to that returns an alist to display a list of
options. If a function is supplied additional parameters may be passes
to the function via resultset-args.

It can be found here:

http://bitbucket.org/harag/weblocks-dev/changeset/859fdef75eff/

Example usage would be something like this:

(defun boolean-suggest (dummy-arg value)
  (declare (ignore  dummy-arg))
  (list (cons "Yes" "Yes") (cons "No" "No")))
  
;;; Form View
(defview company-form-view (:type form :inherit-from '(:scaffold
company))
  (active :present-as (suggest :resultset
#'boolean-suggest :resultset-args (list "dummy"))
         :parse-as (suggest-type :resultset #'boolean-suggest :resultset-args
(list "dummy"))))


Regards 

--

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