Can anyone show the syntax for getting the parent ID from a record that I have just retrieved as a result of a search?
Related to my request, there's a great example on how to create a loop for adding child records to a parent on the slices website: http://www.web2pyslices.com/slice/show/1612/ajax-adding-child-records-to-parent. The slices example shows a looping child addition for all of the parents. I want to focus on just one parent record that is the result of a search. I'd like an example showing a parent record getting searched for, then having that one parent ID captured in a global variable, so I can pass it on as a FK for the children records. I'll use the slices example to add the child records. What is additionally confusing for me is knowing what parts go in the viewer and what parts go in the controller. Thanks, Alex Glaros -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

