- Create a database which is having two tables in it, Account and Contact
- Accounts have fields: Id, Name, city, state.
- Id is the primary key and other fields are text fields.
- Contacts have fields: Id, FirstName, LastName, Email, Phone, AccountId.
- Id is the Primary key.
- AccountId is the foreignkey to Account Table.
- Other field are text fields
- Accounts have fields: Id, Name, city, state.
- Design an UI that will show all account information in a table. This table will name, city and State of the account Record.
- Once a user clicks on the Account Name, then it will show all the contact details in a separate table whose accountId is equals to the Account Record's Id.
2 件の回答
Hi @Lalit Patankar for outer Point 2 and 3 you should go with LWC. Please refer the following link to build component
lightning-datatable - example - Salesforce Lightning Component Library