cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
John742
Level: Powered On

Fieldless Component

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? 

1 ACCEPTED SOLUTION

Accepted Solutions
a33ik
Level: Powered On

Re: Fieldless Component

@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.

View solution in original post

3 REPLIES 3
DanzMaverick
Level: Powered On

Re: Fieldless Component

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.

John742
Level: Powered On

Re: Fieldless Component

@DanzMaverick  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!

a33ik
Level: Powered On

Re: Fieldless Component

@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.

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 133 members 5,336 guests
Please welcome our newest community members: