AnsweredAssumed Answered

Sugar 7.2.1 how to populate parent_name from Sales Opportunities, in a customized bwc Meeting module?

Question asked by Orlando Briceno on Oct 4, 2015
I have a custom Meetings module in Sugar 7.2.1 enterprise.

I have ax Flex Relate parent_name field that I want it to be auto populated depending on which module 'invokes' the Meetings module, this works for Accounts, Project Opportunities (A from scratch module of us), but not for standard Sales Opportunities.

I enabled the Meetings subpanel in the Sales Opportunities module, so when I go to a Sales Opp I am able to go and create a new meeting, but the Sales Opp name, doesn't get populated in the Meeting.

../custom/modules/Meetings/metadata/editviewdefs.php
array (      'name' => 'parent_name',
  'customLabel' => '{sugar_translate label=\'LBL_MODULE_NAME\' module=$fields.parent_type.value}:',
  //'customCode' => '<input type="text" value="ORLY - {$fields.parent_type.value}"',
  'displayParams' =>
    array (
    'class' => 'sqsEnabled sqsNoAutofill orly',
  ),
),


../custom/Extension/modules/Meetings/Ext/Vardefs/sugarfield_parent_id.php
<?php
 // created: 2014-02-18 23:19:08
$dictionary['Meeting']['fields']['parent_id']['audited']=true;
//$dictionary['Meeting']['fields']['parent_name']['type']='id';
?>
../custom/Extension/modules/Meetings/Ext/Vardefs/sugarfield_parent_name.php
  <?php
 // created: 2014-02-18 23:19:08
$dictionary['Meeting']['fields']['parent_name']['len']=25;
$dictionary['Meeting']['fields']['parent_name']['audited']=true;
$dictionary['Meeting']['fields']['parent_name']['massupdate']=false;
$dictionary['Meeting']['fields']['parent_name']['merge_filter']='disabled';
$dictionary['Meeting']['fields']['parent_name']['calculated']=false;
//$dictionary['Meeting']['fields']['parent_name']['type']='parent';

?>
../custom/Extension/modules/Meetings/Ext/Vardefs/sugarfield_parent_type.php
<?php
 // created: 2014-02-18 23:19:08
$dictionary['Meeting']['fields']['parent_type']['audited']=true;
//$dictionary['Meeting']['fields']['parent_name']['type']='parent_type';

?>

I can't find anywhere where the parent_name, parent_type, parent_id parameters get assigned explicitly to the input field or to a property anywhere, any advice on where to find it?

This should be an out of the box behavior? 

thanks in advance!

Outcomes