cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MannyGrewal
Level: Powered On

How to pass static string to the control

Simple requirement. Want the consumer of the control to specify a hardcoded string e.g. relationship_name during configuration time.

 

Have tried setting the usage="input" on the property but this way the control does not appear at all.

 

What the is the recommended way to achieve this?

2 ACCEPTED SOLUTIONS

Accepted Solutions
Highlighted
PowerApps Staff HemantG
PowerApps Staff

Re: How to pass static string to the control

Since we do not have the unbound controls supported yet you will need to have one dummy bound field to b able to show he control in config UI. So net net two properties in manifest, one bound and another input.

Hemant

View solution in original post

Re: How to pass static string to the control

sample.pngI am assuming you want something like this

I am passing a hardcoded value through input.

 

<property name="addressLatitude" display-name-key="Your_Display_key" description-key="Your_Display_key_Description" of-type="SingleLine.Text" usage="input"/>

View solution in original post

3 REPLIES 3
Highlighted
PowerApps Staff HemantG
PowerApps Staff

Re: How to pass static string to the control

Since we do not have the unbound controls supported yet you will need to have one dummy bound field to b able to show he control in config UI. So net net two properties in manifest, one bound and another input.

Hemant

View solution in original post

Yawer
Level: Powered On

Re: How to pass static string to the control

I did a custom control which asks for a JS regex to be passed as a string on form design while configuring the control. My control was ok and I used this regex for data validation. I may be incorrectly understanding you but looks like using a  property of type "SingleLine.Text" with "input" as usage we can do it. So it may be another thing stopping your control to appear. One more thing that was helpful was after initial (basic) testing, I started testing in D365 form. 

Re: How to pass static string to the control

sample.pngI am assuming you want something like this

I am passing a hardcoded value through input.

 

<property name="addressLatitude" display-name-key="Your_Display_key" description-key="Your_Display_key_Description" of-type="SingleLine.Text" usage="input"/>

View solution in original post

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

Top Kudoed Authors
Users Online
Currently online: 272 members 5,292 guests
Please welcome our newest community members: