for all the dummies, here is the how-toI added the following code in this file /www/crm/custom/Espo/Custom/Resources/layouts/XXX/list.json and the button YYY appears in Enabled column in list section of Layout manager for XXX entity
Code:
{
"name": "YYY"
},
Code:
<?php
namespace Espo\Custom\Services;
class Quote extends \Espo\Core\Templates\Services\Base
{
public function loadAdditionalFieldsForList(Entity $entity)
{
parent::loadAdditionalFieldsForList($entity);
$entity->loadLinkMultipleField('YYY');
}
}
Code:
<?php
namespace Espo\Custom\Services;
class Quote extends \Espo\Core\Templates\Services\Base
{
public function loadAdditionalFieldsForList(Entity $entity)
{
parent::loadAdditionalFieldsForList($entity);
$entity->loadLinkMultipleField('YYY');
$entity->loadLinkMultipleField('WWW');
$entity->loadLinkMultipleField('ZZZ');
}
}

Leave a comment: