
Originally Posted by
somaggio 'account_id' => array (
'name' => 'account_id',
'reportable'=>false,
'dbtype' => 'id',
'required'=>false,
),
'account_name' => array (
'name' => 'account_name',
'type'=>'relate',
'id_name' => 'account_id',
'source' => non-db',
'table'=>'account'
),
thanks.
Hi,
If you're translating your account_id into account_name by looking into the accounts table, you may need to define as below. The 'rname' is the field name of the accounts table where an account name is stored. The 'table' name needs to be correct like 'accounts' (plural).
PHP Code:
'account_name' =>
array (
'name' => 'account_name',
'rname' => 'name',
'id_name' => 'account_id',
'vname' => 'LBL_ACCOUNT_NAME',
'type' => 'relate',
'table' => 'accounts',
'isnull' => 'true',
'module' => 'Accounts',
'dbType' => 'varchar',
'len' => '255',
'source' => 'non-db',
),
Bookmarks