I have a use case to create a component that would enable users to create related records based on the current record. All I really need to do this is the entity guid. Is there a way to create a component that does not have field bond to it?
@John742 , alternatively you can use "field" type component but not implement any logic that does anything with the attribute so this field will be used as a usual placeholder.
@PowerMaverick Thank you that does help. I have been looking into the dataset type more and was curious if you would be able to add buttons to it. The reason I do not want to use OOB is because I will be creating several related entities based on one another which include a N:N relationship. Thanks!
Hi @John742
To create a code component for related records you would want to use "dataset" as the template when initializing the pcf project. There is no binding to an attribute but rather you would bind to a subgrid when you use "dataset" as a template.
Look at this control where subgrid is transformed to appear as a contact cards --> https://pcf.gallery/contact-cards/
You could also add buttons and additional screen inside the same component that can enable creation of related records (if you don't want to use OOB features - not sure why you don't want to do that though).
Hope this helps.
WarrenBelz
81
Most Valuable Professional
mmbr1606
53
Super User 2025 Season 1
stampcoin
48