2 votes

How to select the default picklist value for lightning-combobox in lwc?

The default value, if any, will be in data.defaultValue. To avoid possible race conditions, store the value in a property: if(data) { if(!this.comboboxValue) { this.comboboxValue = data....
sfdcfox's user avatar
  • 487k
1 vote

SOQL - Relationship extract json from child object and join picklist label

You can get something close to this using an Aggregate Query. Your query would be: SELECT Market__r.Name, toLabel(Role__c), COUNT(Id) FROM Person__c GROUP BY Market__r.Name, Role__c (I'm guessing what ...
fred's user avatar
  • 3,215

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