You need to sign in to do that
Don't have an account?
SrinivasaRao Latchu
Can I use Lightning Data Service ( LDS ) in Lightning Communities?
Dear Developers,
Is there any way I can use LDS in Lighting Communities. I tried, but I am not able to load the record. In this URL location https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/data_service_considerations.htm
I see that Lightning Data Service is available in the following container 'Lightning Communities'. Can anyone advise me on this, please?
Is there any way I can use LDS in Lighting Communities. I tried, but I am not able to load the record. In this URL location https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/data_service_considerations.htm
I see that Lightning Data Service is available in the following container 'Lightning Communities'. Can anyone advise me on this, please?
Loading a record can be accomplished entirely in markup using lightning:recordForm. If you need a custom layout, use lightning:recordViewForm. If you need more customization than the form-based components allow for viewing record data, use force:recordData.
Sample code for loading a record:
COMPONENT:
For more please refer: https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/data_service_load_record.htm
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks,
Ajay Dubedi
But LDS is not working when the parent component ( containing LDS mark up ) used in Communities. is there any workaround. ?