Questions tagged [getfieldvalue]
The getfieldvalue tag has no usage guidance.
9
questions
0
votes
1
answer
23
views
LWC js controller getFieldValue() on parent field, I still get the whole record and have to reference the object and field again
Below is a portion of my LWC js controller. I'm trying to write a function to see if a field in a parent record of an Event record has a certain value. I'm baffled by what is returned by ...
0
votes
1
answer
130
views
LWC Unable to Import Record Field Values
I am creating a Lightning Component for a Case Record page to display a banner. I want to import some of the Case fields so I can conditionally show and hide the banner.
There are no actions to ...
0
votes
1
answer
39
views
How can I get the field information by its name in static method?
I tried to write my code like this:
public static string getPicklistValues(String fieldApi) {
List<String> picklistValue = new List<String>();
Schema.DescribeFieldResult picklist = ...
-4
votes
1
answer
94
views
Using @wire and getFieldValue is returning undefined [closed]
import { LightningElement, wire, api, track } from 'lwc';
import { getRecord, getFieldValue } from 'lightning/uiRecordApi';
import getAcc from '@salesforce/apex/Controller.getAcc';
import F1 from '@...
0
votes
1
answer
2k
views
Get record field values from onchange lightning-input-field lookup input
I have a lightning-record-edit-form for Job__c with a lookup input to Labor_Category__c. Once a Labor_Category__c record is selected, I'd like to obtain the Labor_Category__r.Exempt__c value to then ...
0
votes
1
answer
166
views
Null Data in my columns
With this code I don't get any value , I get the column with the name but their are no value , I don't now what is the mistake .
Some help please .
public with sharing class Action {
@AuraEnabled(...
1
vote
1
answer
1k
views
Pass Lightning input iteration value by index of String array
I have a lightning component where I dynamically generate some columns and some input fields. I have a String Array as attribute. How do I get the index of the array to pass the value. I tried below ...
1
vote
2
answers
564
views
Cannot use an Id retreived by getFieldValue into @wire getRecord
I have an Account lookup field which gets Account ID, and need to get its Account Name on field change. (This is a Home tab component using Opportunity Form)
HTML (lightning-record-edit-form; object-...
3
votes
1
answer
4k
views
LWC Dual Listbox field failing to populate values when using getFieldValue
I'm struggling to obtain the values that are part of the Selected list on a lightning-dual-box field.
This is the field:
<lightning-dual-listbox
name="Mass_Payments__c"
...