Bit by bit I understand more of what goes on inside maypole.  But for
every success I have, I get stumped on the next thing.

What I would like to do, is after a record as added, update one of the
fields based on a info in the new record for a foreign key.  So if the
user fills in the form for a new "server" record:

Hostname:
Vendor:            (drop down list for the "has_a" from the vendor table)

I want to then update the (not displayed) field "Comment" with
something like: "for problems contact vendor: Dell"

The way I'm trying to do it now, is to override the "addnew" model
method (this is FormBuilder).  I am able to change fields, but what I
can't figure how to do is get the stringified name "Dell".  The user
chooses "Dell" from the select box, but the value passed back is
ID field, something like 1034.  

So I'm sitting in my Addnew method, I have the variables $self, and
$r, how can I get "Dell" from 1034 out of the Vendor table.

Any help appreciated.
Jim

PS: Is there a way to use Maypole::CLI with Formbuilder?

-- 
Jim Mintha                                       Email: [EMAIL PROTECTED]
System Administrator                              Work: +31 20 525-4919
Informatiseringscentrum                           Home: +31 20 662-3892
University of Amsterdam               Debian GNU/Linux: [EMAIL PROTECTED]
_There are always Possibilities_                  http://www.mintha.com


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Maypole-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/maypole-users

Reply via email to