cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Power Apps
Power Apps

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

I am assuming you want something like thisI 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
Power Apps
Power Apps

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

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. 

Highlighted
Resolver I
Resolver I

I am assuming you want something like thisI 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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Users online (9,011)