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

Home » RADICORE » How To » Insert Multiple, Delete Multiple and parent keys
Re: Insert Multiple, Delete Multiple and parent keys [message #1219 is a reply to message #1217] Sun, 13 January 2008 06:18 Go to previous messageGo to previous message
AJM is currently offline  AJM
Messages: 2352
Registered: April 2006
Location: Surrey, UK
Senior Member
You cannot get the framework to perform such a complex operation just by modifying the contents of $fieldarray. You are reading from one table and updating another, but by default each controller can only read and update a single table. The way around this would be to identify one of the tables to the controller, then within that table's class you insert custom code (in the relevant custom method) to access the other table(s).

For example, you could use the UPDATE 5 pattern to update the STUDENT_LESSON table, which would require you to create the array of relevant records within the initialise() method. You would put the necessary code to retrieve data from the STUDENT table in the _cm_initialise() method.


 
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: Wed Jul 17 17:29:30 EDT 2024

Total time taken to generate the page: 0.00975 seconds