Questions tagged [lightning-components]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
4
votes
3answers
344 views

Difference in using Lightning Component <lightning:badge/> and Normal DOM with slds <span class=“slds-badge”></span>? Which is Better and Why?

Example: <lightning:badge label="Lightning Component"/> <span class="slds-badge">DOM Tag</span> Which is better? Which is faster? And why should I use Lightning component if I am ...
1
vote
2answers
88 views

Case Save and Close button in Lightning Experience

We use Save & Close button while creating a case so basically we are creating and closing the case at the same button. But I can't seem to find this button in LEX. Whats the solution here please ...
1
vote
1answer
99 views

Apex/Lightning component - How to access owner field label using getDescribe

In a lightning component, we have to display some records in a datatable with selectable rows and where the table header will display each column field label. To cater for multi-language, the header ...
1
vote
0answers
19 views

Customise Standard lightning Component from custom lightning component

I have a custom feed filter visualforce page created with the help of this link. And then I added the vf page in lightning component with iframe and in case page layout. After the page is loded main-...
1
vote
0answers
94 views

Platform event subscribers on Visualforce page not being called always when platform event is published

We have an implementation in which there are multiple Visualforce pages(seven pages). These pages are using platform events to communicate between each other. The JavaScript code to subscribe to ...
0
votes
1answer
25 views

Loading/ View records of Account using Lightning data service (force:recordData component)? [closed]

I have been practicing the examples given in Lightning developes Guide and the topic is Display Record Data in a Custom User Interface Using force:recordData I copied and pasted the below code ...
0
votes
1answer
63 views

Get Custom Setting's field value in Lightning Component

I have a custom setting with API Name: Company_Setting__c. I need to access the value stored in this custom setting in lightning component. I got a field with API Name: Company_Phone__c. Below is my ...
0
votes
1answer
43 views

Lightning Component in VF Page not working with Force.com Sites

First time using Components - putting it in a VisualForce page to leverage on a Force.com Site. The Component works just find on the VF page accessing when logged in (https://mydomain/apex/Testpage). ...
0
votes
1answer
141 views

Searchable pick-list in Lightning Component? [closed]

I am trying to implement the searchable pick-list in lightning component. I followed this post to implement with help of external jQuery select2. But It's not working as expected the search result and ...
0
votes
1answer
23 views

Can I put actions tab on custom new object page?

I've created a Lightning Component to use for the 'new' action of my custom object. However, I've been asked to put the actions tab, particularly the 'new task' action on the page. I created the ...
0
votes
1answer
197 views

Opening a Lightning Component in a tab in Lightning Community

I am trying to open a Lightning component with a record id in new page / full screen from a Quick Action. Since, the component opens in a small popup, I used the approach mentioned here How to open ...
0
votes
1answer
96 views

lightning datatable: get additional records by enableInfiniteLoading

How can I get additional records by lightning datatable enableInfiniteLoading? I wanna get more 10 records when scroll lightning datatable, but the datatable shows only first 10 records when scroll ...
0
votes
1answer
352 views

Lightning component auto refresh to view the case record

In Detail-record page, where you can see (activityTracking page and related list) and on header of the page there is new case button to create a new case record. I have an activityTracking page(...
0
votes
1answer
20 views

force:createRecord Lightning Component that functions in one Sandbox fails in another

Background I have a Lightning Action that initiates a Flow. The flow gathers record data, collects one variable from the user that is selected via a radio-button choice, then launches a lightning ...
0
votes
1answer
14 views

Connected app components randomly not loading

Connected app components are not displaying in our customers' orgs. Randomly the components are not loaded into their respective divs. Roughly 95% of the time they AREN'T loaded. If we disable cache ...
0
votes
0answers
15 views

Lightning components in cross orgs not displaying occassionally

Connected app components are not displaying in our orgs. Randomly the components are not loaded into their respective divs. Roughly 95% of the time they AREN'T loaded. If we disable cache or in chrome ...
0
votes
0answers
20 views

Is there any document using lightning component with cms connect

I watched this video about cms connect: https://www.youtube.com/watch?v=f0FB6t4RuL8&t=838s . According to this diagram: I feel custom lightning component should be able to invoke the methods ...
0
votes
0answers
19 views

GA Tracking on Playing of Video in iFrame in Lightning Component

Google Tag Manager is not picking up that a video is clicked for playing in a Lightning component where the video is in an iFrame. Thoughts? <iframe src="{!'https://www.youtube.com/embed/' + v....
0
votes
0answers
14 views

How to override meta tag in lightning custom community?

I want to override the property of the meta tag user-scalable=no I have tried to achieve it by adding same meta tag with different props in head markup feature but it only adds another tag in the ...
0
votes
0answers
65 views

Launch Lightning Component or Flow in Modal from Custom Notification?

I'm loving the new Custom Notification feature. It includes a param called TargetId which is the record to which you are taken if you click on the Notification. I'm trying to figure out a way to ...
0
votes
0answers
18 views

If I click On add to Cart button it added in Cart Item and disable from page but after refreshing that button again show Enabl

If I click On add to Cart button it added in Cart Item and disable from the page but after refreshing that button again show Enable, so I want that button to disable after refreshing <div> &...
0
votes
0answers
46 views

Workspace tab is not refresh after closing subtab

I need to refresh the workspace tab after closing the current subtab. But it's not happening as expected. Below is my code. var workspaceAPI = component.find("workspace"); ...
0
votes
0answers
30 views

Salesforce Multi select Search box issue in ligtning component

We have a custom lightning component where a user would choose one of 5 objects. Then there is a search box where the user searches for the records and can add multiple records. while displaying ...
0
votes
1answer
26 views

can we have select2 behavior in lightning components

Is it possible to provide search mechanism in picklists with lightning component as shown in image? Please let me know if anyone has idea.
0
votes
1answer
31 views

Lightning Component in Flow Screen using IE11

I'm using a lightning component in a screen flow, in chrome it works, but not in IE11. Anyone has any Idea?
0
votes
2answers
160 views

call tooling API when using lightning component [duplicate]

When I make request tooling API from Apex by using lightning component, the error This session is not valid for use with the REST API is responsed. Also, the response status code is 401, and status is ...
0
votes
0answers
126 views

How to update child record from parent using LDS

My Requirement is whenever I want to change the close date or Engagement Start Date of Opportunity, Engagement Start Date is updated on Engagement Child Object records. Reason I am using here ...
0
votes
0answers
21 views

inline edit relational record aboout lightning datatable

How can we make it possible to edit relational record in the lightning datatable? Below is the current code, and I would like to you to correct this code to achive inline edit for relational reocrd. ...
0
votes
1answer
33 views

listName of lightning listView [closed]

How can we get the value of listName to use lightning listView? Should I check Salesforce setting? I wanna use listView for custom object, but I'm troubled with how to set listName. <lightning:...
0
votes
1answer
45 views

inline edit for the relational record in the lightning datatable

How can we make inline edit form features for relational record in the lightning datatable? Below is the current code, and I would like to you to correct this code to achive inline edit for ...
0
votes
1answer
42 views

put text by link style in lightning datatable [duplicate]

I want to put data in lightning datatable by url link style like attached to express the record of relationship. I tried header type "url", but it showed "http//" in the cells. How can we put data ...
0
votes
0answers
86 views

Lightning:treegrid ontoggle action triggers onrowselection

<lightning:treeGrid aura:id="accountsTreeComponent" columns="{!v.gridColumns}" data="{!v.gridData}" keyField="accountId" ...
0
votes
1answer
83 views

Slds brand band not appearing with custom component in visual force page

The slds brand band disappears after the component is loaded into the div. How do i fix this issue so that i can have the salesforce background with my custom component. Steps to reproduce: ...
0
votes
0answers
37 views

pass record data to lightning component in lightning page in salesforce community

How to pass record data to lightning component in lightning page in salesforce community? I want to create a button on A_Object's record detail page.It will be: click it → open the lightning page(...
0
votes
0answers
20 views

Is there a way to use a “Create New” lightning component to pre-populate a lookup once the record is created?

Here's my use case: I am creating a Quote. We have a custom field on the Quote called Listing. Sometimes, the listing doesn't exist and so we want them to be able to create the listing directly from ...