Skip to main content

Notifications

Community site session details

Community site session details

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

Support for Multiple Data Types

Like (0) ShareShare
ReportReport
Posted on 7 Jan 2020 09:37:03 by 13

Can I add elements of different data types in a sing;e type group in ControlManifest.xml?  @HemantG 

<type-group name = "MultipleTypes">
      <type>SingleLine.Text</type>
      <type>SingleLine.URL</type>
      <type>SingleLine.TextArea</type>
      <type>Multiple</type>
<type> Whole.None </type>
<type> Float </type>
    </type-group>
  • v-xida-msft Profile Picture
    on 08 Jan 2020 at 03:27:55
    Re: Support for Multiple Data Types

    HI @navneet_singh ,

    Could you please share a bit more about your scenario?

    Do you want to specify different data type within the <type-group> node, e.g. Whole.None and SingleLine.Text in same type group?

     

    If you want to specify different data type within the <type-group> node, e.g. Whole.None and SingleLine.Text in same type group, I afraid that there would have some issue with it.

     

    When you specified Whole.None and SingleLine.Text in same type group, they would not be considered as compatible types. The types considered compatible as below:

    1. Strings: SingleLine.Text, Multiple, SingleLine.TextArea, SingleLine.Email, SingleLine.Phone, SingleLine.URL, SingleLine.Ticker.
    2. Numbers: Decimal, Floating Point, Whole.None, Currency.
    3. Dates: DateAndTime.DateAndTime, DateAndTime.DateOnly.

    Please check the following article for more details:

    https://docs.microsoft.com/en-us/powerapps/developer/component-framework/manifest-schema-reference/type-group#child-elements

     

    If the types listed in the group are not considered compatible, then the parameter will be treated as the first type listed in the type-group.

    Note: If you specified different data type within the <type-group> node, e.g. Whole.None and SingleLine.Text in same type group, there is no error with this configuration, but only the first type listed within this type group could be applied to current parameter.

     

    Best regards,

  • Ben Thompson Profile Picture
    1,400 on 07 Jan 2020 at 16:48:14
    Re: Support for Multiple Data Types

    Trust me to follow the out of date documentation. 

     

    Looking at my link it's a typo in list of types. Float is not an option it should be FP.

     

     

    <type-group name = "MultipleTypes">
     <type>SingleLine.Text</type>
     <type>SingleLine.URL</type>
     <type>SingleLine.TextArea</type>
     <type>Multiple</type>
     <type>Whole.None</type>
     <type>FP</type>
    </type-group>

     

  • a33ik Profile Picture
    3,304 Most Valuable Professional on 07 Jan 2020 at 15:51:26
    Re: Support for Multiple Data Types

    Hello,

    This definitely works. I used it in one of my controls - https://github.com/AndrewButenko/CompositeAddress_PCF/blob/master/CompositeAddress/ControlManifest.Input.xml

    Here is an example:

     <type-group name="StringOrOptionset">
     <type>SingleLine.Text</type>
     <type>OptionSet</type>
     </type-group>
     <property name="state" display-name-key="State/Province" description-key="State/Province" of-type-group="StringOrOptionset" usage="bound" required="false" />

     

    But which field type is bound to input you will have to analyze during runtime of the control.

  • Ben Thompson Profile Picture
    1,400 on 07 Jan 2020 at 12:41:15
    Re: Support for Multiple Data Types

    I suspect you would be better off with multiple controls as you can only bind to one type at a time see https://docs.microsoft.com/en-us/powerapps/developer/component-framework/manifest-schema-reference/property#remarks 

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Power Apps Pro Dev & ISV

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 6 Super User 2025 Season 1

#2
EE-04041031-0 Profile Picture

EE-04041031-0 4

#2
ronaldwalcott Profile Picture

ronaldwalcott 4

Overall leaderboard