I realized to do what I want, I could do:

  (setf (view-field-presentation (field-info-field (cadr (get-object-
view-fields (dataform-data widget) (find-view (dataform-form-view
widget)))))) (make-instance 'input-presentation))

But I realized that because presentations are singletons, this causes
the presentation to change for everyone, which is not what I want.  So
my solution is a hybrid of this and what Divia said - I can get the
field-info structure from the fields in the current view, switch the
view of the widget to a different view, and set the fields of the new
view to the field-info structures I got earlier, and then re-render
the widget.


On Mar 11, 5:58 pm, Saikat Chakrabarti <[email protected]> wrote:
> That worked great!  The only problem is that when I do this, I lose
> the values that had been entered into the form - is there a way to
> retain these?
>
> On Mar 11, 5:31 pm, Divia <[email protected]> wrote:
>
> > On Mar 11, 5:18 pm, Saikat Chakrabarti <[email protected]> wrote:
>
> > > Is it possible to access the slots in views?  Right now, I am trying
> > > to make an action that changes the presentation for a slot in a view -
> > > is this possible?  Of course I can always just scrap the view and have
> > > the render-widget-body handle it, but just curious.
>
> > > Thanks,
> > > Saikat
>
> > Would it make any sense to make another view on the fly that inherits
> > from the view you're trying to modify and change the slot there?
--~--~---------~--~----~------------~-------~--~----~
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