Hans,

The model is kind of long, but SQLFORM (I don't know how to only show
fields using SQLFORMS), as well as the Custom Update CRUD, works
fine.  It's only the Read CRUD that is giving me a problem.  In other
words, the input tag works fine but the field display is showing the
'id' value rather than the 'lookup' value.

Is this helpful or do you need more?

Thanks.

On Jun 9, 3:51 pm, Hans Donner <hans.don...@pobox.com> wrote:
> Gary,
> how dows your model look like?
> And how does it show when you are just using SQLFORM?
>
> On Tue, Jun 9, 2009 at 9:40 PM, Gary<gary.k.ma...@gmail.com> wrote:
>
> > Thank you Fran and Massimo for the info.
>
> > I downloaded the trunk using:
>
> > bzr branch lp:~mdipierro/web2py/devel web2py-devel
>
> > and installed the application.  The error message went away, but
> > {{=form.custom.widget.town_id}} still displayed '1' vs. the 'lookup'
> > value.  It also didn't display a checkbox where indicated.
>
> > Appreciate the help.
>
> > On Jun 9, 2:24 pm, mdipierro <mdipie...@cs.depaul.edu> wrote:
> >> By trunk we mean "not officially released yet" and "not guaranteed to
> >> work".
>
> >> Massimo
>
> >> On Jun 9, 12:41 pm, Gary <gary.k.ma...@gmail.com> wrote:
>
> >> > I tried {{=form.custom.widget.town_id}} in 1.63.5 and got an error
> >> > "AttributeError: 'NoneType' object has no attribute 'town_id'".
> >> > Using {{=form.custom.inpval.town_id}} returns a '1', the value of the
> >> > id in the 'Location' file pointing to the 'Town' file.
>
> >> > For clarification, does 'new trunk' mean something other than the
> >> > current release?
>
> >> > Thanks.
>
> >> > On Jun 9, 12:38 pm, mdipierro <mdipie...@cs.depaul.edu> wrote:
>
> >> > > with the new trunk you can do
>
> >> > > {{=form.custom.widget.fieldname}}
>
> >> > > On Jun 9, 11:06 am, Gary <gary.k.ma...@gmail.com> wrote:
>
> >> > > > I'm using crud to interact with a custom view.
> >> > > > form.custom.inpval.fieldname and form.custom.dspval.fieldname display
> >> > > > the proper value for most field types, but not files, select boxes 
> >> > > > and
> >> > > > checkboxes.  The download easily fixes the file display, but I've 
> >> > > > been
> >> > > > unable to find a similar solution to displaying the 'lookup' value of
> >> > > > the select rather than the 'id' of the target?  Ditto for the 
> >> > > > checkbox
> >> > > > rather that 'True/False'.
>
> >> > > > Thanks in advance for any help.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to