Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

The tag has no usage guidance.

0
votes
1answer
30 views

Is it possible to use Lightning Data Services \ <force:recordData without sharing rules \ field level security?

It is possible to declare a Apex controller class as public without sharing class noSharing { } Is it possible to use Lightning Data Services <force:recordData Without sharing \ field level ...
2
votes
0answers
14 views

Picklists values and lookups for force:recordData

Is there any option to render some input with picklist values in order to use it with force:recordData? I know that lightning:recordEditForm with lightning:inputField can do this (see here: Can I ...
1
vote
1answer
68 views

Lightning: Fields on Record loaded via force:recordData appear to be read-only / unwriteable

Scenario: I am loading an existing record using force:recordData, but since this component isn't on a record page, it cannot/does not implement force:hasRecordId. Instead, I created an attribute ...
2
votes
1answer
40 views

Lightning Component: Custom Fields Not Being Stored when saving force:recordData

I've been following the Salesforce documentation on using the force:recordData component to instantiate a new instance of a Case object (targetRecord) using component.getNewRecord, then pushing data ...
0
votes
0answers
126 views

force:inputField not able to set new value in force:recordData

I am creating a component for our lead users to reassign cases and I am running into issues. Firstly, I am not able to use lightning:input as it does not work with lookup fields. So switched to ...
2
votes
1answer
72 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 ...
3
votes
1answer
318 views

lightning:recordViewForm and force:recordData refresh issues

I'm having TestObject as parent object and New Custom Object having M-D relationship to it. TestObject having Min and Max Rollup summary fields which will rollup number field in child object. I was ...
2
votes
1answer
31 views

How to deal with users without permission while using Lightning Data Services?

To be more specific, I have the following scenario that just happened: I developed a component on a sandbox (development environment). This component uses force:recordData to retrieve some field data ...
1
vote
2answers
232 views

When does force:recordData execute?

I am using force:recordData to pull data for a Campaign on load of the component. The component is triggered by a quick action. I understand that force:recordData is an asynchronous process. ...
0
votes
1answer
259 views

force:recordData not updating targetFields on reloadRecord

Working on the lightning component framework specialist superbadge, stage 6, and getting the following error: The BoatDetails component must use force:recordData to load the appropriate list of ...
1
vote
1answer
170 views

Cannot load custom object records from Lightning Data Service due to Users Permissions

I'm struggling to load my custom object record using LDS and i got a object privilegies error : You don't have access to this record. Ask your administrator for help or to request access. I've ...
2
votes
1answer
328 views

Cannot load data using force:recordData from my component

I'm struggling to get fetch data from my component using Lightning Data Service. My component is linked to a custom action to create a new record for a custom object. Below is the error i get when the ...
0
votes
1answer
282 views

Using <force:recordData> in a community does not show/edit all records

I have a community and I am developing a lightning component page to display a custom object record Grant__c in this community. The custom object Grant__c is in Private sharing mode so only owners ...
0
votes
1answer
423 views

How to use standard layout with force:recordData?

I'm trying to use the force:recordData to clone a record with some fields changed in the backend. I am able to retrieve it to the front-end. But unfortunately it seems force:recordData doesn't refresh ...
7
votes
1answer
480 views

Show form with page layouts && intercept save … Lightning:recordForm / force:recordData

Somewhat flummoxed with this lightning component. The use case is simple: Intercept the save event on a record edit, grab the new field values and do 'stuff' before saving the record. Example User ...
1
vote
1answer
329 views

Lightning record edit form issues with Person Account

I was rendering the person contact details using lightning record edit form. Updating the person contact details using force:recordData lightning data service. If i'm updating the person contact ...
0
votes
1answer
243 views

<force:recordData> not getting called

I'm facing trouble with <force:recordData>. I have a list of custom objects displayed in the form of table over <Aura:iteration> Out of that list, when a button is clicked, a certain ...
0
votes
1answer
47 views

I'm unable to get private attribute from a component to use in force:recordData

<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,force:hasRecordId" access="global" >     <aura:attribute name="boatReview" type="BoatReview__c" access="global"...
0
votes
2answers
387 views

Lightning Data Service - empty error message

Today I'm struggling with something I really do not understand. I'm trying to make simple lightning component for creating new record of custom sObject. Problem appears on the save method. Result ...
2
votes
1answer
287 views

Error calling apex controller from Lightning component

This is my first subject since I'm very new to Salesforce. My problem is that I'm trying to create simple Lightning component which could clone record with custom logic. This component suppose to be ...
0
votes
1answer
61 views

entity is not currently supported by force:recordData

I have two lightning components on a product detail object page within my community. These two components have the standard force:recordData stuff in them: <aura:attribute name="record" type="...
0
votes
1answer
45 views

Retrieve Community Contact fields in force:recordData

Is there a way to retrieve Community user's contact fields in force:recordData? This is my first lightning coming, and I'm not finding proper information on this. I'm trying to display the logged in ...
0
votes
1answer
376 views

force:recordData for Update OR Create

I can't seem to allow force:recordData to update records. I am able to make it create new records without any problem. I think the problem is in the attribute of the component? Or perhaps I am not ...
5
votes
1answer
553 views

force:recordData on user object

I am just trying to get the user details on the page using LDS. <force:recordData aura:id="userRecord" recordId="{!v.userrecordId}" targetRecord="{!v....
0
votes
2answers
359 views

force:recordData issue with the lookup value

I am using the force:recordData and trying to get the field values from the recordData in JS. Component: <aura:attribute name="recordId" type="String" /> <aura:attribute name="record" ...
1
vote
1answer
917 views

force:recordData Individual Fields Access

I cannot seem to get the fields from force:recordData available to my component. I'm fairly confident I have the syntax wrong, but I can't find the proper way to reference the data. This code in the ...
5
votes
2answers
4k views

get the value from force:RecordData on Init handler

Is there a way we can get the value from force:RecordData on init ? I am getting the onclick event of a button. <aura:handler name="init" value="{!this}" action="{!c.doInit}"/> <aura:...
0
votes
0answers
193 views

pre-populate a modal form in a lightning component with data already entered on the record, for editing purposes

Note: This is for a community, I already have this functionality working as an admin, but will not work no matter what as specified user/profile I am trying with. What I am trying to do here is have ...
0
votes
2answers
301 views

Trailhead challenge passed but unable to use the edit component

From the Manipulate Records with force:recordData module https://trailhead.salesforce.com/modules/lightning_data_service/units/lightning_data_service_manipulate_records, I passed the challenge using ...
4
votes
2answers
2k views

Attributes and Field clarification from Lightning data service trailhead module

Below lightning component is from Lightning data service module in trailhead Questions 1: Why there are two object attributes used - record , simpleRecord, when one attribute can serve the purpose. ...
1
vote
1answer
354 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 ...
0
votes
2answers
2k views

In <force:recordData> not able to set it's recordId Attribute from client-side controller

Whenever I click on the <lightning:button> inside <aura:iteration>, I need to delete that particular record using <force:recordData> but When I click on <lightning:button>, ...
5
votes
1answer
2k views

Can force:recordData query related parent fields?

Anyone found a way to select parent fields with force:recordData? It would be great to have something like this: <force:recordData recordId="{!v.recordId}" targetRecord="{!v.child}" ...