The Lighting Component Campaign Items Related List has a couple of default settings defined which a technical administrator can change according to the following documentation.
...
Replace "Name" with any field API you like to default the sorting to.
Feature Name | Feature Setting Name | default value |
---|
CampaignItemRelatedList | SortByField | Code Block |
---|
{"Field":["ADvendio__SortOrder__c"],"Order":"asc"} |
|
Default Columns
Additionally, you can define individual columns for the component. Create new feature setting records in the following way:
Feature Name | Feature Setting Name | default value |
---|
CampaignItemRelatedList | TableFields | Code Block |
---|
{
"TableFields":[
"Name",
"ADvendio__Period__c",
"ADvendio__Quantity__c",
"ADvendio__Sales_Price__c",
"ADvendio__Billing_category__c",
"ADvendio__Amount_net3__c",
"ADvendio__Available__c",
"ADvendio__PositionNumber__c",
"ADvendio__PositionNumberAppendix__c"
]
} |
|
This entry in JSON format as an array is used to define what fields from the CampaignItem object can be shown into the ResultTable. List API names of Campaign Item fields only.
...
on your visual force page please create a feature setting with the following values:
Feature Name | Feature Setting Name | Default Filter Value |
---|
CampaignItemRelatedList | FilterButtons | Code Block |
---|
{
"Buttons":[
{
"title":"Don't Show Cancelled Item",
"label":"Don't Show Cancelled Item",
"filter":"ADvendio__ConnectedItem__c = null",
"variant":"neutral",
"isActive":"false"
},
{
"title":"Don't Show Optimized Item",
"label":"Don't Show Optimized Item",
"filter":"ADvendio__OptimizationExclusion__c = null",
"variant":"neutral",
"isActive":"true"
}
]
} |
|
This entry in JSON format as an array of map objects is used to define the custom filter buttons, where we can define the
...
To modify the action buttons on the component create or edit the following feature setting:
Feature Name | Feature Setting Name | Default Filter Value |
---|
CampaignItemRelatedList | ActionButtons | |
{
"action":"/apex/ADvendio__SelectSearch?Id=$mcId$",
|
|
"type":"vf"
},
{
"title":"Change Items",
|
|
},
{
"label":"Change Items",
"componentDefinition":{
"componentDef":"ADvendio:campaignBuilderWrapper",
"attributes":{
"mode":"edititems",
"recordId":"$mcId$",
"campaignItemIds":"$recordIds$"
}
},
"type":"lwc"
},
{
"title":"Edit Items",
|
|
"action":"/apex/ADvendio__MediaConfiguration?id=$mcId$&selected=$recordIds$",
|
|
{
{
"title":"Optimize Items",
|
|
"label":"Optimize Items",
|
|
"action":"/apex/ADvendio__NavigateToOptimizer?id=$mcId$&selected=$recordIds$",
|
|
{
{
"title":"Delete Items",
|
|
"action":"/apex/ADvendio__DeleteCampaignItems?id=$mcId$&selectedIds=$recordIds$",
|
|
{
"action":"/apex/ADvendio__SortCampaignItems?Id=$mcId$",
|
|
{
{
"title":"Show Recommendations",
|
|
"label":"Show Recommendations",
|
|
"action":"/apex/ADvendio__ProductRecomm?id=$mcId$",
|
|
{
{
"title":"Check Availability",
|
|
"label":"Check Availability",
|
|
"action":"/apex/ADvendio__CheckAvailabilityCi?id=$mcId$&selectedIds=$recordIds$",
|
|
{
{
"title":"Submit to AdServer",
|
|
"label":"Submit to AdServer",
|
|
"action":"/apex/ADvendio__SubmitToAdServer?id=$mcId$&selectedIds=$recordIds$",
|
|
{
{
"title":"Creative Upload",
|
|
"label":"Creative Upload",
|
|
"action":"/apex/ADvendio__CreativeUploadCi?id=$mcId$&selectedIds=$recordIds$",
|
|
{
{
"title":"Update Ad-Status in AdServer",
|
|
"label":"Update Ad-Status in AdServer",
|
|
"action":"/apex/ADvendio__UpdateAdServerAdStatus?id=$mcId$&selectedIds=$recordIds$",
|
|
{
{
"title":"Get Delivered Clicks/Impressions",
|
|
"label":"Get Delivered Clicks/Impressions",
|
|
"action":"/apex/ADvendio__DeliveredClicksAndImpressionsImport?id=$mcId$&selectedIds=$recordIds$",
|
|
This entry in JSON format as an array of map objects is used to define the default action buttons, where we can define the
...