Questions tagged [lwc-wire-getlistui]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
146 views

Get list of Account object using lightning ui* adaptor along with all record in list view without using apex class

I am trying to display Account list view just like we see in Salesforce standard list view so I am trying to use lightning ui* adaptor I have used this module - lightning/uiListsApi and adaptor config ...
Pragati Jain's user avatar
0 votes
1 answer
69 views

Calling child component dynamically until a condition is met

I have recently started coding in LWC and I have a use case that -> I need to call this c-component2 repeatedly from `mycomponent1.html until a condition is met. Is there something I can do to ...
monk's user avatar
  • 3
0 votes
1 answer
166 views

Getting tasks stored in List Views

I need to get the tasks that are stored in list views that are selected by the user. I've tried a couple things that I'll outline below: HTTP API request I've tried making a REST API call to get the ...
John S.'s user avatar
1 vote
0 answers
498 views

Toast is not showing in LWC in community

import { LightningElement, track,wire } from 'lwc'; import { ShowToastEvent } from 'lightning/platformShowToastEvent' import Lead_Object from '@salesforce/schema/Lead'; import {...
Vishal Kumar's user avatar
1 vote
1 answer
297 views

Get picklist values on record type(not a default) without hard-coding of record type id and object have more than one record type in Salesforce

I have a scenario where i have LWC component A and in its html it uses LWC component b (In this LWC component i have built the picklist dependency + record type). So that in component A in HTML i ...
Ajay's user avatar
  • 45
0 votes
0 answers
258 views

getListUi wire returns with 400 - ILLEGAL_QUERY_PARAMETER_VALUE

I query opportunity records using list view developer name, which is used for getListUi. But sometimes, randomly, when I go to the records page, I get this error: Here's the wire for getListUi: @api ...
LostSoul325's user avatar
0 votes
1 answer
805 views

getListUi for metadata in LWC

I need to fetch all records from metadata. But I am facing error like below. yc {status: 404, body: {…}, headers: {…}} body: errorCode: "NOT_FOUND" message: "The requested resource does ...
Adarsh Srinivasan's user avatar
0 votes
1 answer
279 views

How do I make a part of the code run after apex call?

I'm calling an Apex method imperatively inside a wire function. The wire function is used to retrieve listview and it's data. I'm using data from this listview to retrieve pricebookentry fields. ...
Santosh's user avatar
  • 73
0 votes
1 answer
286 views

Value picked from a combobox isn't getting updated to another wire adapter unless I select another value from the combobox

I have a combobox populated with listviews from an object. If I select a listview, those records have to be shown in the table. But the records of a selected object are not being updated unless I ...
Santosh's user avatar
  • 73
1 vote
1 answer
3k views

In LWC, How do I dynamically show the records of a listview if the listview is selected from a picklist

I obtained listviews using getListUi wire adapter. I populated these listviews into a picklist. What I'm trying to achieve is if I select a listview from the picklist, the records need to be updated ...
Santosh's user avatar
  • 73
2 votes
1 answer
34k views

I'm getting this error: LWC component's @wire target property or method threw an error during value provisioning

I'm using getListUi wire adapter to get listViews of an object and trying to put it into a picklist. But I'm getting the following error. render threw an error in 'c:showListView' [LWC component's @...
Santosh's user avatar
  • 73
0 votes
1 answer
408 views

Issue with LWC uiListAPI(Beta)

I am pretty new to using lwc and I was using the uiListApi to query records for the workorder object. A couple days ago the query was working just fine and I was able to query the records based on the ...
Franky Jiang's user avatar
1 vote
0 answers
1k views

how to pass field value to track variables in lwc and retrive the track variable in a function

Hello I want to pass the IsConverted value into a variable and retrieve it in a function import { LightningElement,track,api,wire} from 'lwc'; import { getRecord } from 'lightning/uiRecordApi'; ...
Aravind Babu B's user avatar
1 vote
2 answers
5k views

Accessing single element of List from Apex in LWC

I have an apex which return list of Account and related Contacts to it. Now that I KNOW how to iterate thru' list of account but I am interested in 1st element of the list.So,I am trying to display ...
LWC_Beginner's user avatar
1 vote
1 answer
2k views

navigator.getUserMedia is not working in Salesforce Lightning Web Component

We are trying to use lightning web component for a requirement in Salesforce where we try to capture the image of the user via webcam and this requirement is specifically for laptops and desktops. ...
Karthick Shanmugam's user avatar
2 votes
1 answer
2k views

Can I use getListUi method with Related List Views?

Apologies if this question doesn't make sense. I'm fairly new to Salesforce and LWC. I am creating a component for the Service Console on the Account page. Essentially I want it to return a list of ...
Thomas Sesselmann's user avatar
1 vote
1 answer
750 views

getListUi returns old list view

I am using following LWC wrapper in aura to get list views: LWC: import { LightningElement, wire, track, api } from 'lwc'; import { getListUi } from 'lightning/uiListApi'; export default class ...
dzh's user avatar
  • 4,016