Good morning @Harshad
Today, itâs not clicking for me. Maybe I need another coffee. hahahaâŚ
So I uploaded the file, reset the readonly in the custom/Extension/modules/Opportunities/Ext/Vardefs/editviewdefs.php to normal. Then I did a Quick Repair and Restore and cleared the cache as requested.
Before, I tried to figure out the name of the field and row index thing you described, but I stuck at this point. Can you shortly give me a hint?
Here the code of my editviewdefs.php (which is the same like the detailviewdefs.php:
<?php
$viewdefs ['Opportunities'] =
array (
'EditView' =>
array (
'templateMeta' =>
array (
'maxColumns' => '2',
'widths' =>
array (
0 =>
array (
'label' => '10',
'field' => '30',
),
1 =>
array (
'label' => '10',
'field' => '30',
),
),
'javascript' => '{$PROBABILITY_SCRIPT}',
'useTabs' => false,
'tabDefs' =>
array (
'DEFAULT' =>
array (
'newTab' => false,
'panelDefault' => 'expanded',
),
'LBL_EDITVIEW_PANEL1' =>
array (
'newTab' => false,
'panelDefault' => 'expanded',
),
'LBL_PANEL_ASSIGNMENT' =>
array (
'newTab' => false,
'panelDefault' => 'collapsed',
),
),
'syncDetailEditViews' => true,
),
'panels' =>
array (
'default' =>
array (
0 =>
array (
0 =>
array (
'name' => 'opty_no_c',
'label' => 'LBL_OPTY_NO_C',
),
1 =>
array (
'name' => 'date_closed',
),
),
1 =>
array (
0 =>
array (
'name' => 'name',
),
1 =>
array (
'name' => 'opt_pro_start_c',
'label' => 'LBL_OPT_PRO_START_C',
),
),
2 =>
array (
0 => 'description',
1 =>
array (
'name' => 'opt_pro_end_c',
'label' => 'LBL_OPT_PRO_END_C',
),
),
3 =>
array (
0 => 'account_name',
),
4 =>
array (
0 =>
array (
'name' => 'opt_contract_type_c',
'studio' => 'visible',
'label' => 'LBL_OPT_CONTRACT_TYPE_C',
),
1 =>
array (
'name' => 'opty_estimated_efforts_c',
'label' => 'LBL_OPTY_ESTIMATED_EFFORTS_C',
),
),
5 =>
array (
0 => 'sales_stage',
1 =>
array (
'name' => 'opty_probability_c',
'label' => 'LBL_OPTY_PROBABILITY_C',
),
),
6 =>
array (
0 =>
array (
'name' => 'opty_lost_reason_c',
'studio' => 'visible',
'label' => 'LBL_OPTY_LOST_REASON',
'display' => 'none',
'displayLogic' =>
array (
'show_on_lost01' =>
array (
'key' => 'displayType',
'modes' =>
array (
0 => 'create',
1 => 'edit',
2 => 'detail',
),
'params' =>
array (
'fieldDependencies' =>
array (
0 => 'sales_stage',
),
'activeOnFields' =>
array (
'sales_stage' =>
array (
0 =>
array (
'operator' => 'is-equal',
'values' =>
array (
0 => 'Closed Lost',
),
),
),
),
),
),
),
),
1 =>
array (
'name' => 'opty_lost_description_c',
'studio' => 'visible',
'label' => 'LBL_OPTY_LOST_DESCRIPTION',
'display' => 'none',
'displayLogic' =>
array (
'show_on_lost02' =>
array (
'key' => 'displayType',
'modes' =>
array (
0 => 'create',
1 => 'edit',
2 => 'detail',
),
'params' =>
array (
'fieldDependencies' =>
array (
0 => 'sales_stage',
),
'activeOnFields' =>
array (
'sales_stage' =>
array (
0 =>
array (
'operator' => 'is-equal',
'values' =>
array (
0 => 'Closed Lost',
),
),
),
),
),
),
),
),
),
),
'lbl_editview_panel1' =>
array (
0 =>
array (
0 =>
array (
'name' => 'opt_tcv_c',
'label' => 'LBL_OPT_TCV_C',
),
1 =>
array (
'studio' => 'visible',
'name' => 'opt_tcv_weighted_c',
'label' => 'LBL_OPT_TCV_WEIGHTED_C',
),
),
1 =>
array (
0 =>
array (
'name' => 'opt_tco_c',
'label' => 'LBL_OPT_TCO_C',
),
1 =>
array (
'studio' => 'visible',
'name' => 'opt_tcv_100_c',
'label' => 'LBL_OPT_TCV_100_C',
),
),
),
'LBL_PANEL_ASSIGNMENT' =>
array (
0 =>
array (
0 =>
array (
'name' => 'rec_status_c',
'studio' => 'visible',
'label' => 'LBL_REC_STATUS',
),
1 => 'assigned_user_name',
),
1 =>
array (
0 =>
array (
'name' => 'created_by_name',
'label' => 'LBL_CREATED',
),
1 =>
array (
'name' => 'date_entered',
'comment' => 'Date record created',
'label' => 'LBL_DATE_ENTERED',
),
),
2 =>
array (
0 =>
array (
'name' => 'modified_by_name',
'label' => 'LBL_MODIFIED_NAME',
),
1 =>
array (
'name' => 'date_modified',
'comment' => 'Date record last modified',
'label' => 'LBL_DATE_MODIFIED',
),
),
),
),
),
);
;
?>
We are talking about the two fields: opt_tcv_weighted_c and opt_tcv_100_c in the panel âlbl_editview_panel1â.
Which row and col shall I set in the mapper file?
Sorry for bothering you, but it seems, I am still on the Monday mood. 