Version 2.104 and up
...
Feature Name | Feature Setting Name | default value |
---|---|---|
CampaignItemRelatedList | SortByField | {"Field": ["Name"]} |
Replace "Name" with any field API you like to default the sorting to. Default sorting order is descending.
...
Feature Name | Feature Setting Name | default value |
---|---|---|
CampaignItemRelatedList | TableFields | {"TableFields" : ["Name","ADvendio__Period__c","ADvendio__Quantity__c","ADvendio__Sales_Price__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.
...
Feature Name | Feature Setting Name | Default Filter Value |
---|---|---|
CampaignItemRelatedList | FilterButtons | { "Buttons": [ { "title":"Don't Show Cancelled Items", "label":"Don't Show Cancelled Items", "filter":"ADvendio__ConnectedItem__c = null", "variant":"neutral", "isActive":"false" }, { "title":"Don't Show Optimized Items", "label":"Don't Show Optimized Items", "filter":"ADvendio__OptimizationExclusion__c = null", "variant":"neutral", "isActive":"false" } ] } |
This entry in JSON format as an array of map objects is used to define the custom filter buttons, where we can define the
- title: sets the text for the mouse over
- label: is shown on the button and
- define the filter values. You can add multiple using brackets.
By default the values for the properties are as above. They can be set as follows;
- 'variantisActive' should be set to "neutral"false, if the user should see it in a neutral color. Set it to "brand" if clicked and match with the next value: isActive.the button disabled when opening the component. When 'is Active' is set to false, variant will be set to neutral, meaning the button appears as not selected
- 'isActive' set to falsetrue, if the user should see the button disabled enabled when opening the component. When 'is Active' is set to true, variant will be set to brand, meaning the button appears blue/as selected by default
Create and manage Action Buttons
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 | {"Buttons": [{ "title":"Add Items", "label":"Add Items", "action":"/apex/ADvendio__SelectSearch?Id=$mcId$", "type":"vf"},{ "title":"Edit Items", "label":"Edit Items", "action":"/apex/ADvendio__MediaConfiguration?id=$mcId$&selected=$recordIds$", "type":"vf"},{ "title":"Optimize Items", "label":"Optimize Items", "action":"/apex/ADvendio__NavigateToOptimizer?id=$mcId$&selected=$recordIds$", "type":"vf"},{ "title":"Delete Items", "label":"Delete Items", "action":"/apex/ADvendio__DeleteCampaignItems?id=$mcId$&selectedIds=$recordIds$", "type":"vf"},{ "title":"Sort Items", "label":"Sort Items", "action":"/apex/ADvendio__SortCampaignItems?Id=$mcId$", "type":"vf"},{ "title":"Show Recommendations", "label":"Show Recommendations", "action":"/apex/ADvendio__ProductRecomm?id=$mcId$", "type":"vf"},{ "title":"Check Availability", "label":"Check Availability", "action":"/apex/ADvendio__CheckAvailabilityCi?id=$mcId$&selectedIds=$recordIds$", "type":"vf"},{ "title":"Submit to AdServer", "label":"Submit to AdServer", "action":"/apex/ADvendio__SubmitToAdServer?id=$mcId$&selectedIds=$recordIds$", "type":"vf"},{ "title":"Creative Upload", "label":"Creative Upload", "action":"/apex/ADvendio__CreativeUploadCi?id=$mcId$&selectedIds=$recordIds$", "type":"vf"},{ "title":"Update Ad-Status in AdServer", "label":"Update Ad-Status in AdServer", "action":"/apex/ADvendio__UpdateAdServerAdStatus?id=$mcId$&selectedIds=$recordIds$", "type":"vf"},{ "title":"Get Delivered Clicks/Impressions", "label":"Get Delivered Clicks/Impressions", "action":"/apex/ADvendio__DeliveredClicksAndImpressionsImport?id=$mcId$&selectedIds=$recordIds$", "type":"vf"}]} |
This entry in JSON format as an array of map objects is used to define the default action buttons, where we can define the
...