Skip to main content
Community site session details

Community site session details

Session Id : U9agxkkLANOPy1YIE3b4dZ
Power Apps - Power Apps Pro Dev & ISV

What does CC_ means inside a PCF propery ?

Like (0) ShareShare
ReportReport
Posted on 20 Mar 2020 11:40:17 by 8

Hi,

 

I am new in using PCF and i need the possibility to create a Two Option to be inserted in input by client when configure a PCF.

For example: 

 

I have a table and if the user want to sort it by columns then he should select 'Yes' in a two option property present on PCF.

I have used this code here:

 

<property name="EnableFiltering" display-name-key="CC_Allow_Filtering" description-key="CC_Allow_Filtering_Desc" usage="input" of-type="Enum" required="false" default-value="no">
<value name="Yes" display-name-key="CC_Enable_Filtering" description-key="CC_Enable_Filtering_Desc">yes</value>
<value name="No" display-name-key="CC_Disable_Filtering" description-key="CC_Disable_Filtering_Desc" default="true">no</value>
</property>

Found it in another answer about pcf and it works, now I am able to select the property:

sorting field.PNG

And modify it like this:

 

sorting pop up.PNG

 

But what I don't understant is, from where all this labels are comming ?

 

For example : 'Allow the user to filer data by any column from current view' was not specified anywhere in my code... I think that regards the 'CC_' that stay in front of all words.

 

Can anyone explain me how this labels are populated and how to modify them. Or what CC means ?

 

Thank you.

 

Best regards.

  • CU25051655-0 Profile Picture
    8 on 24 Mar 2020 at 12:44:45
    Re: What does CC_ means inside a PCF propery ?

    Hi @jopursle ,

     

    I don't have any resx file included in my project, this is a sample of my manifest

     

     

    <?xml version="1.0" encoding="utf-8" ?>
    <manifest>
     <control namespace="myDataSetName" constructor="KanbanBoard" version="1.1.7" display-name-key="myDataSetName" description-key="myDataSetName" preview-image="assets/img/logo.png" control-type="standard">
    
     <data-set name="myDataSetName" display-name-key="myDataSetName" cds-data-set-options="displayCommandBar:true;displayViewSelector:true;displayQuickFindSearch:true">
     <property-set name="title" display-name-key="Title" description-key="Description" of-type="SingleLine.Text" usage="bound" required="true" />
     <property-set name="date" display-name-key="Date and Time" description-key="Date Time field" of-type="DateAndTime.DateAndTime" usage="bound" required="false" />
     </data-set>
    
     <property name="EnableFiltering" display-name-key="CC_Allow_Filtering" description-key="CC_Allow_Filtering_Desc" usage="input" of-type="Enum" required="false" default-value="no">
     <value name="Yes" display-name-key="CC_Enable_Filtering" description-key="CC_Enable_Filtering_Desc">yes</value>
     <value name="No" display-name-key="CC_Disable_Filtering" description-key="CC_Disable_Filtering_Desc" default="true">no</value>
     </property>
    
     <resources>
     <css path="second.css" order="1"/>
     <css path="main.css" order="2"/>
     <code path="index.ts" order="1"/>
     </resources>
     </control>
    </manifest>

     

     

     

    Thank you for your response, but i think the cause is another one.

  • JP-09110045-0 Profile Picture
    on 23 Mar 2020 at 17:03:49
    Re: What does CC_ means inside a PCF propery ?

    Hi @EduardAndreiC 

    I think that CC_ prefix is just a label for "Custom Control", and there isn't anything unique about it.

    display-name-key and description-key are just used as keys to find the actual text strings to use in the .resx file for the user's language, and if the key isn't found in the resx file, then the raw string is used instead.

    An example of this localization happening for control and property can be found here: https://docs.microsoft.com/en-us/powerapps/developer/component-framework/sample-controls/localization-api-control

     

    Does your control have a resx file where the "Allow filtering" string is coming from?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Loading complete