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 previous 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?
Read Message
Read Message
Read Message
Read Message
Previous Topic: my SubSystem files
Next Topic: Problem with Numeric Field
Goto Forum:

Current Time: Tue Jun 28 15:37:57 EDT 2022

Total time taken to generate the page: 0.01499 seconds