5

Currently, no. That @wire adapter does not allow relative parent (flexipage record Id). On the roadmap (no ETA) is the lightning:relatedList base component, so whenever that is released we might be also supplied the corresponding @wire adapter for custom use. See it near the bottom here: https://help.salesforce.com/apex/HTViewHelpDoc?id=...


3

singleAccount is declared by initialising to null. So even before wired function gets back the data, the template is trying to display singleAccount.Name which is throwing error. Change it to: @track singleAccount = {}; Now its initialised Object, so you will not get error. As Martin Lezer, pointed, you can also include empty check <template if:true={...


2

I need to change v.selectedView.DeveloperName couple for times so that actual record propagates. I suspect this due to how @api get reusult works - it returns previous record It's caching behavior plus some odd data propagation happening here. You'll want to fire a custom event for your aura component to listen to, and react accordingly. To do this, use a ...


1

I don't think you can use getListUi for custom metadata. The closest I got was: message: INVALID_FIELD: SELECT LastModifiedDate, CreatedDate, Id ^ ERROR at Row:1:Column:8 No such column 'LastModifiedDate' on entity 'myns__mycmt__mdt'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your ...


1

You need to re-visit how Javascript Promises work. The Apex method call getPriceBookEntry({productId: this.allProductColumns[i].id}) returns a Promise. Logic in the then block is guaranteed to execute after the Promise is resolved. A Promise is basically an asynchronous method call, which will finish execution some time after your current method is executed. ...


1

You did not declare the sobjectResult in your js and that was the cause of unexpected behavior. You just need to add it to your js. Also, note since the Spring '20 Release, the @track decorator is no longer required. export default class ShowListView extends LightningElement { @track allListViews; @track Value; sobjectResult; ...


1

As I understand your question, you have a combo box populated with all list view names and that upon change in that you need to re-render your component with the records related to that list view. In order for your wired service to fetch the new data, you will need to mark the property progressValue as dynamic and reactive. So your wired service declaration ...


1

Welcome to SF Stack Exchange. You are likely getting this error because an error must have occurred during your wire process. From the documentation: data (Any type)—The value supplied by the adapter. error (Error)—An error if the adapter wasn’t able to supply the requested data or if the adapter wasn’t found. Otherwise, this property is undefined. In ...


1

Thanks for letting us know about this. Based on the symptoms you describe this sounds like a known bug that has been fixed in the in-development version of Salesforce. If you can report the issue through the normal support channels it will help us correctly prioritize backporting the fix. For anyone else that runs across this, the underlying issue prevents ...


1

The problem is that the view tries to load your variable, namely singleAccount, before the Apex method is called by the wire service. The variable being undefined, it raises the error. For this reason, it is always necessary to check that the data is present before trying to load it in the view. You just have to replace your code by the below code in your ...


1

this is not a direct Web Component Issue. Most WebRTC Apis are not supported in Lockerservice which is enforced on all LWCs. The only "workaround" is to do it via an Aura Component nailed down to Api V.39, do it externally and embed it via lightning:container or do it via Visualforce (and iframing the page somewhere else if required). Regards


Only top voted, non community-wiki answers of a minimum length are eligible