Friday, October 2, 2020

LWC checkbox-group Example:

 Scenario: 

Create a checkbox-group in LWC which will display list of Object with CHECK-BOX selection in your ORG.

Solution:
Check combobox example in my previous post (LWC combobox Example:) and create LWC component and it's controller class same as describe on that post. Once done just modify the full .html file with below line of codes,
<template>
    <lightning-card title="checkbox-group Example"> 
        <p>Object selection are:: {selectedObjValue}</p>
        <br/>
        <lightning-checkbox-group name="objects"
            label="Please Select The Object(s)."
            options={objectOptions}
            value={selectedObjValue}
            onchange={handleObjectChange}>
        </lightning-checkbox-group>    
    </lightning-card>
</template>


OUTPUT:


After selection of Checkbox




Data Cloud Part 6: Practical (Ingest Physical Store's Customer details and Sales details)

Hope you have already created your Data Cloud Org and also downloaded the Customer's details and Sales details from previous posts.  Now...