cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MannyGrewal
Frequent Visitor

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

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

sheldoncopper73 Resolver I
Resolver I

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

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

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. 

sheldoncopper73 Resolver I
Resolver I

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
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Users online (9,268)