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

Highlighted
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
thirdimage

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

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

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