Employee Center - Activity Configuration
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2024 04:54 AM
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.
In my instance there's no buttons to approve or reject directly from this widget:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2024 05:30 AM
Hi @Vegard S ,
you can check the My item widget for getting the card configurations which is included using ng-template(card template)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2024 05:59 AM
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.