cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

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
Power Apps Staff jopursle
Power Apps Staff

Re: Bug when single quote/apostrophe in property-set description

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
Power Apps Staff jopursle
Power Apps Staff

Re: Bug when single quote/apostrophe in property-set description

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

Re: Bug when single quote/apostrophe in property-set description

Thanks for the reply

Community Support Team
Community Support Team

Re: Bug when single quote/apostrophe in property-set description

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
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps 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

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Users online (5,691)