cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Power Apps Staff HemantG
Power Apps 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
Power Apps Staff HemantG
Power Apps 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
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Users online (5,243)