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:
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?
Solved! Go to Solution.
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.)
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.
User | Count |
---|---|
20 | |
11 | |
10 | |
5 | |
5 |
User | Count |
---|---|
32 | |
30 | |
15 | |
12 | |
9 |