Hi guys,
How can I create a new common data upon RB creation i currently have this:
class TPN_SalesManagement_BPro extends RBO_Recordset {
function fields() { // - here you choose the fields to add to the record browser
$fields = array();
$fields[] = array('name' => _M('Group'), 'type'=>'multiselect', 'required'=>false, 'visible'=>true, 'param' => Utils_RecordBrowserCommon::multiselect_from_common('BPro_Status'), 'extra'=>false, 'filter'=>true);
return $fields;
}
}
My install has then:
Utils_CommonDataCommon::new_array('BPro_Status',array('completed'=>'Completed','lost'=>'Lost','canceled'=>'Canceled'),true,true);
When i try to install i get this:
Type: E_ERROR (1)
Message: Call to a member function get_definition() on a non-object
File: C:\inetpub\wwwroot\sales\modules\Utils\RecordBrowser\object_wrapper\Recordset.php
Line=369
error backtrace:
[PHP core called function]
function called: check_for_fatal()
Any ideas? Thanks