Hot answers tagged

4

Since " is a reserved character, it is necessary to encode it inside attributes. In given scenario, &quot; should be used For example, <aura:if isTrue="{!v.currentStage == '&quot;General_Stage&quot;'}"> </aura:if>


2

You can try below code setTimeout(function(){ $A.get('e.force:refreshView').fire(); }, 3000);


2

There is a small mistake. In js, where you are creating the array "accountIds" just update the accounts[i].id to accounts[i].Id because javascript is a case sensitive language thus 'id' and 'Id' differs. for(var i=0;i<accounts.length;i++){ accountIds.push(accounts[i].Id); } Note - You can also pass the array of account ids itself to apex as List&...


2

The reason for this ended up being the component was depending on another piece of invalid metadata. Because Salesforce only returns a few metadata errors instead of all of them, it took a while for us to find the underlying issue. So the error isn't actually checking for access global, it just thinks it can't find the component because it has an error. ...


1

Component events can't travel "down" the hierarchy directly, beyond the point where the event is fired. Usually, the parent component would just set an attribute on the child, which would trigger an aura:valueChange event on the child component, which it then handles. This is why your component event does not work. Application event handlers must ...


1

You are right that the header behaves like that because card header is not supposed to be much longer. However, in exceptional cases like yours, you can override that by using style="white-space:normal;" to override parent div width style like truncate or fixed width. You can check example here <template> <lightning-card> <p slot=...


1

Strictly speaking, no, it is not possible. Depending on if you're talking about components that will be bound to a page, or used within other components, you'll generally want to have an attribute that a developer or designer can set that will uniquely identify the component by a given name, then you can use localStorage/sessionStorage/cookies/etc to ...


1

Check out the following link: https://medium.com/@strusov/working-with-cookies-from-lightning-79073b2649f9 It discusses a potential cookie-based approach that might help you.


Only top voted, non community-wiki answers of a minimum length are eligible