New answers tagged

0

Doesn't look like there is support for this right now in Salesforce. The closest thing I could think of is use the "Display in existing window without sidebar or header" and make the content source a Visualforce page. You can then embed your aura component into the Visualforce page. Certainly wouldn't be the standard lightning look and feel but it should ...


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

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&...


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.


0

It looks like component.getGlobalId() should do the trick. See the official Component Id options here and their examples below: HTML <div id="{!globalId + '_footer'}"></div> Controller Code var globalId = cmp.getGlobalId();


0

Can you try checking if the issue is present even when google sheets or another spreadsheet software? As mentioned in https://success.salesforce.com/answers?id=90630000000i9brAAAit could be excel issue can you try checking the above and also can you try if you format the column in Excel to text, you'll see the actual number instead as mentioned in the above ...


0

You can do it dynamically by harnessing Custom Permissions. Define a Custom Permission in your org and gate component visibility on that Permission: As you test and roll out, assign the Custom Permission to one or more Profiles or Permission Sets for users who should have access. You can even define a Permission Set that does nothing but assign this Custom ...


1

After contacting Salesforce support, this issue ended up fixed.


0

In the end, I solved this issue by setting the cache control to public.


1

aura:if can have other html markup as body and not anything else. aura:method is like api layer for component so that parent component can communicate with this component. So, when you use aura:method as body of aura:if, it basically is thinking that it is html which ofcourse is invalid - there is no html tag aura:method Solution: You should have that ...


0

Use a wrapper that has a string property that holds the Profile Id/Name.


0

Per this Salesforce Developer forum question, be sure to add a handler event to your aura component, such as: <aura:handler event="force:refreshView" action="{!c.isRefreshed}" /> with the controller like: saveAccount : function(component,event,helper){ var saveAccountAction = component.get("c.accountSaved"); // your code to send contact ...


1

From the lightning:map documentation, under Usage Considerations, emphasis mine: The lightning:map component relies on data from Google for geocoding and mapping imagery. Inaccuracies or geocoding errors in the data can't be fixed by Salesforce. You can specify a maximum of 10 geocoded address lookups per map. Lookups for both the mapMarkers and ...


1

There's no need for such an event, because you can write a wire handler: @wire(getRecord, { recordId: '$recordId' }) someRecordWireHandler({data,error}) { if(data) { if(this.record) { // We're getting an update // // We can compare deltas to figure out what changed // } else { // This is the first time we got data //...


0

Following works fine for me var data = "ab \",\"{ cd"; var ex=new RegExp("\"","g"); console.log(data.replace(ex,"")); also Single Quote not getting replaced with Blank in lightning


0

You should try Lightning:DataTable with standard table features. You can use this generic component as well. CmAp_LightningDataTable.Cmp <aura:component > <!-- Attrubutes Definations Start here --> <aura:attribute type="boolean" name="enableSearchonRow" description="This attribute is used to ...


0

Generate a WSDL and then check the WSDL for any references to lightning web components. If you can find it there you can query it. Otherwise you may have to use the Tooling API Spoiler Alert: My wsdl does not contain references to any objects indicating lightning components are directly queryable. Edit: This is the documentation for lightning web ...


3

Not sure if there is way to completely stop loading the /aura logs, but you can use the filter box at the bottom of the logs tab. See screenshots below. you can get rid of the other logs just by typing out the operation type you want examine.


Top 50 recent answers are included