Ed Leafe wrote: > On Mar 11, 2008, at 3:19 PM, Paul M¢Nett wrote: > >> And the problem appears to be that when I call bizOpenings.new(), the >> bizSubopenings record is added but the bizStiles and bizRails records >> are not. There is overridden code in I need to do testing to confirm >> it, >> but our problems sound like they could be related. >> >> Code in bizOpenings.afterNew() is responsible for adding the >> subopening >> record by calling code in bizSubopenings, which in turn does some >> bizStiles.new() and bizRails.new() call. So, all the new records get >> added manually in the bizOpenings.afterNew() method. > > Why did you add code to create the new subopening record? Why not set > the NewChildOnNew/NewRecordOnNewParent props so that the child records > are auto-added?
Because depending on other factors in the opening, more than one subopening will need to be added. Plus, I need to add the minimum of two rail and minimum of two stile records to each subopening. Paul _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev Searchable Archives: http://leafe.com/archives/search/dabo-dev This message: http://leafe.com/archives/byMID/dabo-dev/[EMAIL PROTECTED]
