cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dennisb88
Responsive Resident
Responsive Resident

multi select pcf control

Hi all,

 

I'm trying to implement this N To N MultiSelect | PCF Gallery pcf control in to my model driven app but it's not working at me.

That it's not working is (I guess) because I'm not importing it correctly, so hopefully someone knows how to achieve this.

 

When I add the custom control to a text field, I need to bind some data to the control but I don't know what exactly.

 

I had the follow scenario:

Table 1, named as: Companies has a column 'Name' that stores company names.

In Table 2, named as: Campagne has a text column called 'Name' and a Text column named 'LinkedEntity' where I added the custom control.

Between table 1 and 2 I add an many to many relationship.

 

The follow information should be entered for the PCF control:

dennisb88_0-1635427506845.png

I don't know what should be entered as values: I was try the following but that isn't work:

Linked Entity Name: Pref_Companieses
Linked Entity Name Attribute: Name
Linked Entity ID Attribute: Text
Relationship Name: Pref_Companies_Pref_Campagne_Test
Relationship Entity: Pref_Companies_Pref_Test
FetchXml WebResource: 

 

Above is not working but I don't know what is exactly required in this. 

 

Anyone know how to achieve this?

1 ACCEPTED SOLUTION

Accepted Solutions
dennisb88
Responsive Resident
Responsive Resident

I Just found out how to fix this, for anyone who doesn't know how to fix it:

Linked Entity Name: Tablename of the goal table. (In my case: pref_companies)
Linked Entity Name Attribute: Columnname of the goal table. (In my case: pref_name)
Linked Entity ID Attribute: table id of the goal table. (in my case pref_companiesid)
Relationship Name: Pref_Companies_Pref_Campagne_Test (Relationshipname)
Relationship Entity: Pref_Companies_Pref_Test (Relationship table name).
FetchXml WebResource: (Not required to fill in.)

 

View solution in original post

4 REPLIES 4
dennisb88
Responsive Resident
Responsive Resident

I Just found out how to fix this, for anyone who doesn't know how to fix it:

Linked Entity Name: Tablename of the goal table. (In my case: pref_companies)
Linked Entity Name Attribute: Columnname of the goal table. (In my case: pref_name)
Linked Entity ID Attribute: table id of the goal table. (in my case pref_companiesid)
Relationship Name: Pref_Companies_Pref_Campagne_Test (Relationshipname)
Relationship Entity: Pref_Companies_Pref_Test (Relationship table name).
FetchXml WebResource: (Not required to fill in.)

 

Hello @dennisb88, I tried to import and implement the multi-select custom control PCF and it worked fine but unfortunately whenever I want to edit a record where the PCF has been used with no errors, the options selected previously are not visible, in other words, the field where I add the PCF is empty.

 

Thus, did you encounter this issue, or on edit, the field is working properly and all the selected data previously are being shown?

 

Any reply would be highly appreciated.

 

Thank you.

Hi @Roberto_el_Hajj ,

 

As said I've make it working as described but before we go live we decide to don't use the Multi Select solution anymore so I'm sorry. I don't know if it's something wrong on your side or it's something in the pcf control it self.

Roberto_el_Hajj
Super User
Super User

thank you @dennisb88 

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Users online (3,578)