Broken subpanel

Hello

I try to create Relate Subpanle use developer tools by Marnus van Niekerk
https://mjvn.com/index.php/sugarcrm-tools/
but after all, I see a broken subpanel.


Also sometime it’s return Database failure. Please refer to suitecrm.log for details.

In my SuiteCRm log error I have:

Mon Sep 21 13:02:32 2020 [51861][1][FATAL] Bad subpanel definition, it has incorrect value for get_subpanel_data property subpanel_exp_experience

It’s work wrong for two modules - Accouns Module and Contacts module

If I use this developer tools for any other module it works well

Is anybody this forum use Marnus van Niekerk developer tools for create relate subpanle?

btw my PHP file for this new relationship (from relate field) looks like:

<?php
$layout_defs['Contacts']['subpanel_setup']['subpanel_exp_experience'] = array(
			'order' => 100,
			'sort_order' => 'asc',
			'sort_by' => 'name',
			'module' => 'EXP_Experience',
			'subpanel_name' => 'default',
			'get_subpanel_data' => 'subpanel_exp_experience',
			'add_subpanel_data' => 'subpanel_exp_experience',
			'title_key' => 'LBL_SUBPANEL_CONTACTS2EXP_EXPERIENCE',
			'top_buttons' => array(
				array('widget_class' => 'SubPanelTopCreateButton'),
				array('widget_class' => 'SubPanelTopSelectButton', 'mode'=>'MultiSelect')
			),
		);

I double checked that get_subpanel_data is correct

I think @mvnrsa will be better to respond. But did you created the related field from the module before creating the subpanel with that tool?

Thanks,

BrozTechnologies

@BrozTechnologies
yes, sure I created “relate” field in separate module
and it’s work fine for other module. this in not work only for contacts and accounts

Because you are using a third party tool, I will recommend you to contact the author of the plugin for assistance. BTW try Marnus website or send him a message here @mvnrsa.

Thanks,

BrozTechnologies