I have a template using for:each to display multiple records. I need to display the current values of a multi select picklist in that template. Can someone guide me in getting the current values populated in the lightning-dual-listbox? I am able to get the available options by using the wire service / getPicklistValues but I can't figure out how to populate the current values from the array. Here is the html:
<template for:each={clonedGroupStructures} for:item="cgs">
<div key={cgs.Id}>
<div class="slds-box slds-p-left_medium slds-p-right_medium" >
<div class="slds-grid ">
<div class="slds-col">
<lightning:layoutItem class="customMain" >
<template if:true={StatusValues.data}>
<lightning-combobox name="Status"
label="Status"
value={cgs.Status__c}
placeholder="-Select-"
options={StatusValues.data.values}
onchange={handleFundingTypeChange} >
</lightning-combobox>
</template><br/>
</lightning:layoutItem>
</div>
<div class="slds-col">
<lightning:layoutItem class="customMain" >
<template if:true={CcatValues.data}>
<lightning-dual-listbox name="Coverage Category"
label="Coverage Category"
placeholder="-Select-"
options={CcatValues.data.values}
onchange={handleFundingTypeChange} >
</lightning-dual-listbox >
</template><br/>
</lightning:layoutItem>
</div>
</div>
</div>
</template