Questions tagged [lds]
The lds tag has no usage guidance.
25
questions
-2
votes
3
answers
62
views
This error occurred while I am trying to execute this code
Apex Class:
public class updaterec {
@AuraEnabled(cacheable=true)
public static void updateContact(String recordId, String firstName, String lastName) {
Contact contactToUpdate=[Select ...
0
votes
1
answer
205
views
Can't test LWC component with getRelatedListRecords LDS?
I create LWC component that contains wire service with importing getRelatedListRecords function. and its work normal.
but the problem is when I create the test using jest-test
I don't know why I ...
3
votes
0
answers
603
views
LWC Native Modal + Issues with Overflow on Combobox
I am trying to swap out modals that were once pure LDS to the new native ones and I am having an issue with styling.
My Modal Component:
<template>
<lightning-modal-header label="...
2
votes
1
answer
2k
views
Can we use styling hooks on lightning-progress-indicator ? Or how to change background color of steps?
I have been trying to modify the standard color for the 'completed' steps on the lightning-progress-indicator LWC (path type): https://developer.salesforce.com/docs/component-library/bundle/lightning-...
1
vote
1
answer
2k
views
How to get Fixed footer (Save/Cancel) for lightning-record-form?
Using Lightning-record-form we get standard save and cancel buttons in UI. But these buttons appear to not have fixed docked footer. User needs to scroll down to see the buttons.
I am trying to ...
0
votes
1
answer
2k
views
Id not passing to LWC in Exp. Cloud
I'm attempting to make an LWC that lets an Experience Cloud user edit their own contact information, in theory on the same page as other, similar LWCs that let the user manage related records all in ...
0
votes
0
answers
22
views
Cannot access Lightning Data Service API
I want to use LDS record forms but cannot not access the api .
Error message - Unauthorized access .
0
votes
1
answer
559
views
Date formatting issue in LDS lightning-record-edit-form
We have built LDS forms using lightning-record-edit-form, lightning-input-field tag is used for date which displays standard locale date format as per documentation. The problem is, it is always ...
2
votes
1
answer
1k
views
LDS vs the @wire
I'm new to LWC and learning about LDS(lightning Data Service) and @wire adaptor. I'm totally confused in them. Can anyone please explain what is what and when to use them?
0
votes
1
answer
294
views
show record view/edit form from quick action component
I am trying to show a Record View/Edit forms in a modal from lightning quick action component. In this quickaction component I am using lightning data table to show list of records and beside the ...
2
votes
1
answer
744
views
Visualforce with responsive design
I have to make this vfp responsive for 320x480 resolution , cause there is lost content like the following image shows:
As you can see from bigger resolutions, the content that is lost is most of the ...
0
votes
1
answer
2k
views
Capturing Record Id in Lightning-datatable with a click
I have a lightning-datatable where there are many columns and one of the column is Record Name. Is there a way i get the Id of this record with a click or a click of a button on a row?
1
vote
1
answer
407
views
lightning:recordEditForm shows older value on Click of Button
I have a lightning component which has implemented lightning:isUrlAddressable interface. This component is called from a custom button present on Account and I'm also passing Account Id in the URL of ...
3
votes
1
answer
484
views
Format for specifying field value in updateRecord LDS call for mutiselect picklist in LWC js
I'm referring to the document to make use of out of box import { updateRecord, } from 'lightning/uiRecordApi'; It is straight forward to understand how to pass field values from the given example in ...
0
votes
1
answer
1k
views
Icon Size and color
Hi Kindly help me out for the below , i need to alligned the icon properly with the text next to it
and make it red color ,,, kindly help me out for this.
code:
<lightning-button-icon class='slds ...
0
votes
1
answer
18
views
Can we make a field readable on recordFrom Lightning component?
I have created a recordFrom by using
<lightning:recordForm recordId= "{!v.recordId}" objectApiName="Promotion__c" mode="view" columns="1" fields="{!v....
1
vote
1
answer
816
views
Refresh @wire getRecord Manually, refreshApex not working
I know this has been asked and appropriately answered HERE. However I am wondering if this is possibly done differently now as I can not get that structure to work. My code is almost exactly the same ...
0
votes
1
answer
2k
views
How to define size and zoom out of a google map in LWC?
HTML :
<label for="pays">Pays</label>
<lightning-output-field
field-name="Country__c" variant="label-hidden" id="pays"
></lightning-output-field> </br>
<...
0
votes
1
answer
131
views
LDS: targetFields in force:recordData not re-evaluating
So I have a very simple component that has force:recordData. Since it is not a synchronous operation, initially simpleRecord attribute shows null in init handler.
In updateRec method, I can see the ...
0
votes
0
answers
100
views
not able to create component using overlaylibrary component
I need to create a contract after getting confirmation from user like this:
I'm using simple lds to create a contract, when the user selects okay I should be able to create a contract.
I have used ...
0
votes
1
answer
98
views
force:inputField is not displaying String values in salesforce Lightning
I am facing a challenge, force:inputField contain string value is not displaying in output , while when i use lightning:input it display value.
here is my code
component code
<aura:component ...
-2
votes
1
answer
6k
views
What is the use of class="slds-truncate" in Lightning Web Components? [closed]
Long text field with many lines and truncation will look like this. Even though the text might go on for ages and ages.
0
votes
1
answer
95
views
Update relationship record in saverecord event of force:recorddata
I am trying the default the account Id when creating the contact. But I am unable to save the contact record. I am getting account id from console.log.
Please suggest me what am I doing wrong here.
...
0
votes
1
answer
960
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 ...
1
vote
0
answers
339
views
Handling Success Save Event for LDS new record
I am trying to handle the success save event of LDS saveRecord method. I need only proper Id from the new record response. In DESKTOP it's working fine whereas in Mobile/Tablet i am getting improper ...