Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE » How To » Insert Multiple, Delete Multiple and parent keys
Insert Multiple, Delete Multiple and parent keys [message #1217] Sun, 13 January 2008 05:31 Go to previous message
melvinsdb is currently offline  melvinsdb
Messages: 16
Registered: November 2006
Location: Philippines
Junior Member

I am trying to write a code that would do Inserting or Deleting multiple records which will come from another table. I seem to be lost in setting parent table information in the $fieldarray before calling the InsertMutliple or DeleteMultiple.
Scenario ::
(in Relation to CLASSROOM-sample. Extending Student-Lesson to have records for all students and not only those without classids.)
When a new class-lesson gets created, I try to read all (getData) Students with the given classid, and want to insert it in Student-lesson with the lessonid from class-lesson. How do I add the lessonid in the $fieldarray returned by getData before doing the InsertMultiple or DeleteMultiple?

Thanks in advance.

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Redirect or Link
Next Topic: creating list items
Goto Forum:
  


Current Time: Fri Nov 22 04:04:51 EST 2024

Total time taken to generate the page: 0.07280 seconds