cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sheldoncopper73
Resolver I
Resolver I

Bug when single quote/apostrophe in property-set description

We came across a bug, because of which we were not able to add or remove our PCF control from the Grid.

 

Repo Steps –

 

Step 1 - Add one property-set in Control Manifest when I added a single quote in the 
description key and then build the solution (no error is thrown).

 

Example -  <property-set name="sampleproperty" display-name-key="sampleproperty" description-key="Issue when using single quote example: card's " of-type-group="SupportedFields" usage="bound" required="false" />

 

Step 2 - Then import the solution in your environment

 

Step 3 – Navigate to customization to add control to your Entity Grid.

 

propertysetImage.png

 

 

 

Default Read-only grid doesn’t show and Add control click event is also not working leading to which we can’t add or remove control.

 

If we add the control without single quote in property-set description-key and then select our PCF control everything will work as expected, but again you update the property-set description-key by adding single quote then import the updated solution then control will work as fine but in control configuration same issue which was mentioned above occurs i.e can’t add or remove control from form.

 

And as this workaround is not stable we would not able to use it in our PCF control development.

 

Thanks!

 

Sheldon

1 ACCEPTED SOLUTION

Accepted Solutions
jopursle
Power Apps
Power Apps

Hi Sheldon,

 

Display-name-key and description-key aren't really meant to be used to store full strings with single quotes.  The actual purpose is to map to the value in a resx file to display the value in the resx file based on language.

 

If you want to use strings with ' in them, I would add a resx file to the control by referencing the file in the manifest.  An example of how to do this can be found here - https://docs.microsoft.com/en-us/powerapps/developer/component-framework/sample-controls/localizatio...

View solution in original post

3 REPLIES 3
jopursle
Power Apps
Power Apps

Hi Sheldon,

 

Display-name-key and description-key aren't really meant to be used to store full strings with single quotes.  The actual purpose is to map to the value in a resx file to display the value in the resx file based on language.

 

If you want to use strings with ' in them, I would add a resx file to the control by referencing the file in the manifest.  An example of how to do this can be found here - https://docs.microsoft.com/en-us/powerapps/developer/component-framework/sample-controls/localizatio...

View solution in original post

Thanks for the reply

Hi @sheldoncopper73 ,

Have you solved your problem?

 

The description-key attribute within the <property-set> node is used in customization screens as localized strings that describe the description of the property, which would retrieve the correspondind value from the data resource defined within a .resx file.

 

More details about the .resx file in Compoent App, please refer to the following link:

https://docs.microsoft.com/en-us/powerapps/developer/component-framework/manifest-schema-reference/r...

 

If you have solved your problem, please consider go ahead to click "Accept as Solution" to identify this thread has been solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

secondImage

Power Apps Community Call

Please join us on Wednesday, October 20th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (1,808)