Hi team,
One of my PCF controls (for Model Driven app) displays many-to-many relationship available records as checkbox (or toggle).
One user reported issue with data loading when having two many-to-many relationships between the same records.
I reproduced the error. To do so:
- Added two subgrids for each relationship on the form
- Configured them to use my PCF control
- Publish form
- Load the form for a record
What we can see is that all linked records for both relationships are ticked in the PCF for the first relationship. The second PCF see no ticked checkboxes (see attached picture)
![]()
It seems to me that the PCF control receives data from all many-to-many relationships in the first control, then nothing is send to the second control.
The fact that the name of the relationship is not passed to PCF makes me think the records are retrieved based on all relationships
Any thoughts? @HemantG ?
Thanks