web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Binding PCF Field to a...
Power Apps
Answered

Binding PCF Field to a Floating Point

(0) ShareShare
ReportReport
Posted on by 20

Hi,

 

I'm trying to create a PCF control, and I have a field from type Floating Point Number, I set the type of my field as FP, but that field (address1_longitude) is not showing in the options to bind it, any ideas

I have the same question (0)
  • Abbod Hamwi Profile Picture
    20 on at

    @a33ik Thanks a lot for your support

  • a33ik Profile Picture
    3,306 Most Valuable Professional on at

    Somehow I missed that.

  • Abbod Hamwi Profile Picture
    20 on at

    Hi @a33ik ,

     

    i get to know what is the issue, in the manifest file, I have set the usage as input and not bound, even though that I'm bounding it in the form but actually it's not doing, so now it' working, thanks a lot for you support

     

    <property name="Latitude" display-name-key="Latitude Field" description-key="The latitude value" of-type-group="numbers" usage="bound" required="true" />
    <property name="Longitude" display-name-key="Longitude Field" description-key="The longitude value" of-type-group="numbers" usage="bound" required="true" />

     

  • Abbod Hamwi Profile Picture
    20 on at

    Hi,

    it's a normal string value

     

     

  • a33ik Profile Picture
    3,306 Most Valuable Professional on at

    What type of the field is msdyn_externalaccountid?

  • Abbod Hamwi Profile Picture
    20 on at
    Hi,

    I'm using the control in Account form, also for msdyn_externalaccountid it usles field, initially I tried to use my control without any field with usage=bound and that caused that the control is not appearing once I tried to use, so I'm using it only to make it appear
  • a33ik Profile Picture
    3,306 Most Valuable Professional on at

    Hello,

    That looks good for me. What is the type of msdyn_externalaccountid field? Also what's the type of the form you want to use your control on?

  • Abbod Hamwi Profile Picture
    20 on at
    <manifest> <control namespace="hamwi" constructor="GoogleMapLocation" version="0.0.13" display-name-key="GoogleMapLocation" description-key="GoogleMapLocation description" control-type="standard"> <type-group name="numbers"> <type>Whole.None</type> <type>Currency</type> <type>FP</type> <type>Decimal</type> </type-group> <property name="Field" display-name-key="Field Name" description-key="The name of field value" of-type="SingleLine.Text" usage="bound" required="true" /> <property name="Latitude" display-name-key="Latitude Field" description-key="The latitude value" of-type-group="numbers" usage="input" required="true" /> <property name="Longitude" display-name-key="Longitude Field" description-key="The longitude value" of-type-group="numbers" usage="input" required="true" /> <property name="GoogleAPIKey" display-name-key="Google Map API Key" description-key="The Key for Google Map API" of-type="SingleLine.Text" usage="input" required="true" /> <property name="ButtonColor" display-name-key="Button Color" description-key="The color of the button for saving" of-type="SingleLine.Text" usage="input" required="false" /> <resources> <code path="index.ts" order="1" /> <css path="css/MapHandler.css" order="1" /> </resources> <feature-usage> <uses-feature name="Device.getCurrentPosition" required="true" /> </feature-usage> </control> </manifest>

     

    this is the form XML

     <controlDescription forControl="{a33744be-9e66-d04c-9d14-318eb0679c35}">
     <customControl id="{4273EDBD-AC1D-40D3-9FB2-095C621B552D}">
     <parameters>
     <datafieldname>msdyn_externalaccountid</datafieldname>
     </parameters>
     </customControl>
     <customControl name="ha_hamwi.GoogleMapLocation" formFactor="0">
     <parameters>
     <Field>msdyn_externalaccountid</Field>
     <Latitude type="FP">address1_latitude</Latitude>
     <Longitude type="FP">address1_longitude</Longitude>
     <GoogleAPIKey static="true" type="SingleLine.Text">asdasd</GoogleAPIKey>
     <msinternal.isvisibleinmocaonly static="true">true</msinternal.isvisibleinmocaonly>
     </parameters>
     </customControl>
     <customControl name="ha_hamwi.GoogleMapLocation" formFactor="1">
     <parameters>
     <Field>msdyn_externalaccountid</Field>
     <Latitude type="FP">address1_latitude</Latitude>
     <Longitude type="FP">address1_longitude</Longitude>
     <GoogleAPIKey static="true" type="SingleLine.Text">asdasd</GoogleAPIKey>
     <msinternal.isvisibleinmocaonly static="true">true</msinternal.isvisibleinmocaonly>
     </parameters>
     </customControl>
     <customControl name="ha_hamwi.GoogleMapLocation" formFactor="2">
     <parameters>
     <Field>msdyn_externalaccountid</Field>
     <Latitude type="FP">address1_latitude</Latitude>
     <Longitude type="FP">address1_longitude</Longitude>
     <GoogleAPIKey static="true" type="SingleLine.Text">asdasd</GoogleAPIKey>
     <msinternal.isvisibleinmocaonly static="true">true</msinternal.isvisibleinmocaonly>
     </parameters>
     </customControl>
     </controlDescription>

    Hi @a33ik ,

     

    This is the control manifest

    <?xml version="1.0" encoding="utf-8" ?>
                          
  • a33ik Profile Picture
    3,306 Most Valuable Professional on at

    Can you please post your Manifest File and piece of customizations.xml where you configure your control - I mean full control - not only longitude/latitude chunk?

  • Abbod Hamwi Profile Picture
    20 on at
    I tried that but It didn't work

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 422

#2
WarrenBelz Profile Picture

WarrenBelz 380 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 325 Super User 2025 Season 2

Last 30 days Overall leaderboard