SmartGrid PCF control allows to create a new record directly from the subgrid without navigating to another screen.
Steps
- Import solution
- Add control to subgrid
- Give required parameters.
-
Primary Lookup: Logical name of the lookup field for the relationship. for example contact subgrid in the account is "*parentcustomerid_account",
-
Primary Entity Set: entity set name of the current entity where the subgrid is added .
This is to set the related lookup using web api, you can use Rest builder to get these parameter values correctly. for example if contact subgrid in account form is using parent customer relationship, to set the account lookup in contact following code is used var entity = {}; entity["[email protected]"] = "/accounts(xxxxx-xxxx-xxxx)";
Known bugs.
- Does not support N:N
- Validation for empty rows.
- Does not support composite(customer lookups).
- Poor CSS :)
Planned enahancements
- Inline editing.
- Validation for mandatory fields