You need to sign in to do that
Don't have an account?
The new Learner
how to show the related list along with pageniation
Hi Experts,
I have requirement as follows , need to create a dropdown of accounts and on selecting specific account get a related list of contact with a specific field of that account with pagination
I have requirement as follows , need to create a dropdown of accounts and on selecting specific account get a related list of contact with a specific field of that account with pagination
Try Below Code Pleaser Mark It As Best Answer If It Helps
Thank You!
Thanks for the reply, However, I need to create a dropdown of accounts and on selecting specific account get a related list of contact with a specific field of that account with pagination, I have tried ur code, in the search box I have tried to open the record but it was showing below error.
Just make small modification as below because it throwing an error that LwcCtrl.controller is not there so i commented and added below lines kindly correct me
import fetchRecords from '@salesforce/apex/LookupController.Contact';
//import controller from '@salesforce/apex/LwcCtrl.controller';
wiredActivities;
searchRecords(event) {
this.searchString = event.target.value;
const inputVal = this.searchString;
const obj = "Account";//this.selectedObject;
Contact({
objectName: obj,
searchString: inputVal
})
.