Skip to main content

Questions tagged [lds]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
-1 votes
1 answer
41 views

Getting error while creating account with the help of LDS function createRecord

error is : enhancedErrorType : "RecordError" message : "An error occurred while trying to update the record. Please try again." Code is js code: import { api, LightningElement } ...
Adil Syed's user avatar
-2 votes
3 answers
68 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 ...
Sundi Chaithanya Reddy's user avatar
0 votes
1 answer
293 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 ...
naticap's user avatar
  • 121
3 votes
0 answers
1k 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="...
SBB's user avatar
  • 173
3 votes
1 answer
3k 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-...
Randy's user avatar
  • 33
1 vote
1 answer
3k 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 ...
MehSF's user avatar
  • 35
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 ...
T. Rivet's user avatar
0 votes
0 answers
24 views

Cannot access Lightning Data Service API

I want to use LDS record forms but cannot not access the api . Error message - Unauthorized access .
Shubham Pandey's user avatar
0 votes
1 answer
654 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 ...
user3685852's user avatar
2 votes
1 answer
2k 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?
mdanish9's user avatar
0 votes
1 answer
402 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 ...
Akash's user avatar
  • 363
2 votes
1 answer
909 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 ...
Dead_end_Developer's user avatar
0 votes
1 answer
3k 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?
Rahul Allada's user avatar
1 vote
1 answer
434 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 ...
salesforce Developer's user avatar
3 votes
1 answer
546 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 ...
vino's user avatar
  • 143
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 ...
Tina's user avatar
  • 3
0 votes
1 answer
20 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....
ANKIT SHARMA's user avatar
1 vote
1 answer
1k 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 ...
Bobbygllh's user avatar
  • 731
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> <...
Oumaima's user avatar
  • 35
0 votes
1 answer
138 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 ...
lambad's user avatar
  • 385
0 votes
0 answers
111 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 ...
user905's user avatar
  • 261
0 votes
1 answer
100 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 ...
Ashish Nigam's user avatar
-2 votes
1 answer
7k 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.
ramatbis's user avatar
0 votes
1 answer
98 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. ...
Lakshmi's user avatar
0 votes
1 answer
986 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 ...
MAYANK SINGH's user avatar
1 vote
0 answers
351 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 ...
Rajesh's user avatar
  • 31