Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [data-service]

Questions related to Lightning Data Service.

Filter by
Sorted by
Tagged with
5
votes
2answers
268 views

lwc dataservice architecture best practices

While developing lwc components and lightning apps I always run into this design dilemma: When I have two children components that uses the same set of source data but in different forms what is the ...
4
votes
1answer
340 views

Lightning Data Service - Dynamic Fields

I am creating a dynamic navigation (button) component to be used throughout the org. I am trying to provide system admins the ability to specify the data (field/fields) to be retrieved by the force:...
2
votes
1answer
761 views

Deleting record associated with a lightning:datatable row - Use LDS or APEX Controller?

What is the recommended method of deleting a record associated with a row in a lightning:datatable? All the examples I see show to make a call to an Apex controller to do the delete (maybe I should ...
1
vote
1answer
541 views

How to add pick-list field while using LDS

I am not able to display the salutation pick-list field on the lightning component, I have tried lightning:recordEditForm and force:recordData Can someone please suggest the right path to show the ...
0
votes
0answers
477 views

How to Re-submit the lightning:recordEditForm after event.preventDefault()

I am stuck in a issue where i have to add custom validation on fields in lightning:recordEditForm. I am using the onsubmit method of lightning:recordEditForm to check the fields values and if the ...
2
votes
1answer
422 views

Lightning Data Service to clear Lookup field

Using the LDS native functionality we can modify the contents of a lookup field using a lightning:inputfield element, however clearing the field out and saving has no effect. See the inputfield ...
5
votes
1answer
3k views

Can Lightning Data Service include data from Parent-Child relationships?

In a SOQL query, I can get data for two different but related record types by combining the query, e.g.: SELECT Id, Height__c, Width__c, ( SELECT Id, X__c, Y__c FROM Cells__r ) FROM ...
1
vote
1answer
509 views

Can we save list of OpportunityLineItems using lightning data service <force:recordData?

I am trying to create multiple opportunity products and quotelineitems for respective opportunities and quote. I have already inserted the opportuity and quote using lightning data service. But I ...
2
votes
2answers
1k views

This entity is not currently supported by force:recordData

Does anyone know if case are supported by force:recordData ? If recordId is a case one then : <aura:attribute name="simpleRecord" type="Object"/> <!--case record--> <aura:attribute ...
2
votes
2answers
666 views

Get username using Lightning Data Service

Is there a way to get current running user name(email, id, whatever) using only data service?