I haven't done this exact thing but something similar. You'll want to copy how assigned_user_id, assigned_user_link, and assigned_user_name works. In your case it would be parent_task_id, parent_task_link, and parent_task_name. Check out the vardefs.php file in that module's folder to get a feel for it:
PHP Code:
'assigned_user_link' =>
array (
'name' => 'assigned_user_link',
'type' => 'link',
'relationship' => 'project_tasks_assigned_user',
'vname' => 'LBL_ASSIGNED_TO_USER',
'link_type' => 'one',
'module'=>'Users',
'bean_name'=>'User',
'source'=>'non-db',
),
'assigned_user_name' =>
array (
'name' => 'assigned_user_name',
'rname' => 'user_name',
'id_name' => 'assigned_user_id',
'vname' => 'LBL_ASSIGNED_USER_NAME',
'type' => 'relate',
'table' => 'users',
'module' => 'Users',
'dbType' => 'varchar',
'link'=>'users',
'len' => '255',
'source'=>'non-db',
),
Changing this around should eventually get what you need.
Good luck!
Bookmarks