Employee Center - Activity Configuration

Vegard S
Kilo Sage

I'm looking through the activity config for Employee Center and I can't figure out where the card layout on primary items comes from. 

VegardS_0-1725882799536.png


In my instance there's no buttons to approve or reject directly from this widget:

VegardS_1-1725882836968.png

 

 

2 REPLIES 2

anchal1234
Tera Contributor

Hi @Vegard S ,

 

you can check the My item widget for getting the card configurations which is included using ng-template(card template)

Right, so it comes from line 59 in the card-template ng-template:

 

 

<div ng-if="item.isActionWidgetVisible" ng-class="{'my-item-actions' : (c.data.card_behaviour=='wrap'),'my-item-actions-carousel' : (c.data.card_behaviour=='single')}">
      <sp-widget widget="item.actionsWidget"></sp-widget>
    </div>
    <div ng-if="!item.isActionWidgetVisible && c.data.showViewDetails == 'true'" ng-class="{'view-details-container' : (c.data.card_behaviour=='wrap'),'view-details-container-carousel' : (c.data.card_behaviour=='single')}">
      <button tabindex="0" ng-class="{'btn-sm' : c.data.card_behaviour == 'single'}" class="btn btn-default view-details" ng-click="c.redirect($event, item.itemUrl, item.target)" ec-multiline-ellipsis-tooltip ec-ellipsis-tooltip-title="${View details}">
        ${View details}
      </button>
    </div>

 

 

Guess it means that item.isActionWidgetVisible is false for some reason. 

Digging through the script include ActivityConfigurationUtilSNC, I can see on line 265 that it loads actionsWidgetDetail, if actionGroup is true.

And it gets data from the sn_ex_sp_activity_config_detail table, which is blank in my instance. 
It's working on another instance that is also OOTB set up. And the only record in this table on that instance is a walkup config detail, which shouldn't have anything to do with Tasks. 

I gotta say, this thing is incredibly badly documented.