• Sergey Volinets
  • NEWBIE
  • 20 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 5
    Questions
  • 3
    Replies
I need to add button wich will open Lighting Application, to Compact Layout or Highlights panel of Opportunity. I found that I can only add fields and there is no way to add button. Where can I create this button? See screenshot below to clearly understand the idea.

Maybe it is not possible
User-added image
How does map type of attribute work? How can I receive the list of keys and list of values from the map in JavaScript?

I receive data from apex method, and I would like to use aura:attribute with map type to keep Id and Quantity, Is it possible to keep it on the client side using map type of attribute?
<aura:attribute name="OpportunityLineItem" type="Map" default="{ '0065800000CINW0': 'name1', '0065800000CINWP': 'name2' }" />

I have created Lightning SVG Icon Component Helper as described here(https://www.lightningdesignsystem.com/resources/lightning-svg-icon-component-helper/), but in the end, I have rounded square instead of my icon.

I did not add anything to Static Resources. But there is no any word about it.
Should I download and add salesforce icon to static resources in order to use it? Or what`s wrong?

P.S. By standard icon I mean - https://www.lightningdesignsystem.com/icons/
I can't add custom apex class to type of aura:attribute.

I have no idea what happens.
<aura:component controller="CVP.TestTypes">
    
    <aura:attribute name="products" type="CVP.TestClass[]"/>

</aura:component>

And Apex
 
public class TestTypes {
    public class TestClass {
        @AuraEnabled
        public String name = 'Stan';
        @AuraEnabled
    	public Integer age = 12;
    }
}

 
I have read a apex trigger. This trigger must set change time zone of new user. But I recived error message, I don`t know what casuses the problem and how to do it properly.
My trigger:
trigger TimeZone on User (before insert) {
    for (User u : Trigger.new) {
        u.TimeZoneSidKey = '(GMT+02:00) Central European Summer Time (Europe/Paris)';
    }
}
Error:
User-added image

 
I have created Lightning SVG Icon Component Helper as described here(https://www.lightningdesignsystem.com/resources/lightning-svg-icon-component-helper/), but in the end, I have rounded square instead of my icon.

I did not add anything to Static Resources. But there is no any word about it.
Should I download and add salesforce icon to static resources in order to use it? Or what`s wrong?

P.S. By standard icon I mean - https://www.lightningdesignsystem.com/icons/
I can't add custom apex class to type of aura:attribute.

I have no idea what happens.
<aura:component controller="CVP.TestTypes">
    
    <aura:attribute name="products" type="CVP.TestClass[]"/>

</aura:component>

And Apex
 
public class TestTypes {
    public class TestClass {
        @AuraEnabled
        public String name = 'Stan';
        @AuraEnabled
    	public Integer age = 12;
    }
}