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

Home » RADICORE development » Framework » post insert function
post insert function [message #2858] Tue, 27 December 2011 11:55 Go to next message
MajoryR is currently offline  MajoryR
Messages: 2
Registered: December 2011
Junior Member
// create initial entries on PLACE table
require_once 'classes/wf_place.class.inc';
$dbobject =& RDCsingleton::getInstance('wf_place');

// create entry for START place
$place_array[0]['workflow_id'] = $rowdata['workflow_id'];
$place_array[0]['place_id'] = 1;
$place_array[0]['place_name'] = 'START';
$place_array[0]['place_type'] = '1';

// create entry for END place
$place_array[1]['workflow_id'] = $rowdata['workflow_id'];
$place_array[1]['place_id'] = 2;
$place_array[1]['place_name'] = 'END';
$place_array[1]['place_type'] = '9';

$place_array = $dbobject->insertMultiple($place_array);
if ($dbobject->errors) {
$this->errors = $dbobject->errors;
} // if

return $rowdata;

I want to get parent data automatic into child table, i don't know which function exact to use. So I use the function above
But I don't get useful result. Can someone give me some advise?
Re: post insert function [message #2860 is a reply to message #2858] Tue, 27 December 2011 12:27 Go to previous messageGo to next message
AJM is currently offline  AJM
Messages: 2363
Registered: April 2006
Location: Surrey, UK
Senior Member
"I don't get a useful result" is not much of a description. What result are you getting? What are you expecting?

Re: post insert function [message #2864 is a reply to message #2860] Fri, 30 December 2011 08:48 Go to previous messageGo to next message
MajoryR is currently offline  MajoryR
Messages: 2
Registered: December 2011
Junior Member
I want to get parent data automatically into child table

[Updated on: Fri, 30 December 2011 08:49]

Report message to a moderator

Re: post insert function [message #2865 is a reply to message #2864] Fri, 30 December 2011 09:22 Go to previous message
AJM is currently offline  AJM
Messages: 2363
Registered: April 2006
Location: Surrey, UK
Senior Member
You have to ccpy the data manually from the parent to each child.

You still have not described the exact nature of the problem, so it is impossible for me to advise on a solution.


Previous Topic: my SubSystem files
Next Topic: Problem with Numeric Field
Goto Forum:
  


Current Time: Thu Oct 31 19:49:05 EDT 2024

Total time taken to generate the page: 0.01220 seconds