Re: CDBI::AsForm select boxes ?
[prev]
[thread]
[next]
[Date index for 2005/01/31]
--- Peter Speltz <peterspeltz@xxxxx.xxx> wrote:
> From: Peter Speltz <peterspeltz@xxxxx.xxx>
> To: maypole@xxxxx.xxxxxxxx.xx.xx
> Subject: [Maypole] Re: CDBI::AsForm select boxes ?
> Date: Mon, 31 Jan 2005 12:30:37 -0800 (PST)
>
> You should see the stringified version of object as specified in
> columns("Stringify" => qw/col1 col2 . ../) or
> sub stringify_self { return shift->col2; } method if you want facier
> stringification.
>
> By default these just return the id so you probably haven't set any custom
> stringification for you object.
>
>
> --- raptor <raptor@xxxxxx.xxx> wrote:
>
> > anyone using AsForm,
> >
> > The select-boxes which are created for fields that has has_a relationship
> are
> > shown as ID's f.e.
> >
> > tableA : id, name
> > tableB : id, tableA_id_fk , blah
> >
> > So in the select box I get list of ID's but I want a list of name's from
> > tableA, instead of ID's.
> > What I see from AsForm module there is no way to specify which field to be
> > displayed,
> > so it is normal to see ID's !?
> > any idea how can I specify which field to be shown in the select box ?
> >
> > tia
> >
>
>
> =====
> pjs
>
>
>
> __________________________________
> Do you Yahoo!?
> The all-new My Yahoo! - What will yours do?
> http://my.yahoo.com
>
> _______________________________________________
> maypole mailing list
> maypole@xxxxx.xxxxxxxx.xx.xx
> http://lists.netthink.co.uk/listinfo/maypole
>
=====
pjs
__________________________________
Do you Yahoo!?
The all-new My Yahoo! - Get yours free!
http://my.yahoo.com
|
|
Re: CDBI::AsForm select boxes ?
Peter Speltz 20:37 on 31 Jan 2005
|