On Tue, Mar 10, 2009 at 7:30 PM, DavidV <[email protected]> wrote:
> > In the webapp I'm working on, I have three separate forms (snippets) > linked to three separate objects. I would like to maintain a link > between the objects through ID fields, since all three forms contain > information pertinent to one individual record. The problem is, after > I submit the first form I can no longer access its ID field from the > second form. So, when I try to use a MappedLongForeignKey to link the > two objects, the field is blank in the database. Is there any way to > either access the ID field value from the first form after it has > already been submitted and saved? After a Mapper object is saved, you should be able to access its ID field. You can put that in a SessionVar if you want. > Is there a way to save the values > after submission of the form without using a StatefulSnippet? SessionVars come to mind. > > If this is unclear let me know and I'll include some actual code to > better explain what I am trying to do. Talking in code is a good thing(tm) Thanks, David > > Thanks, > David > > > > -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Git some: http://github.com/dpp --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" 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/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---
