On Thu, Dec 06, 2001 at 06:29:47AM +0100, Gerald Richter wrote:
> > is there any way for dbix '!Filter' to get one field in the database
> > to correspond to multiple keys in the assoc array, or vice versa?
> > 
> 
> Sorry, I don't understand what you mean. Can you give a short example ?

in the database you have a "full name" field, 
but in your html form, you have "first name",
"middle initial", and "last name".

or in addition to reformatting dates,
you'd like to create an "age" field,
so that mothers_bday = 1931-12-01
and fathers_bday = 1921-12-01
could come out to:
mothers_bday = 'dec 1, 1931'
fathers_bday = 'dec 1, 1921'
mothers_bday_age = '70'
fathers_bday_age = '80'

you could certainly do it in some other place (perl, javascript),
but it seems consistent to put it in !Filter.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to