cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
golfnutt82
Super User
Super User

Passing a datacard search box value to another form datacard

Hello,
I have a form that has a textbox and a dropdown box that is filtered by what is entered in the textbox.
These two boxes are not part of the form, they are outside the form. The datasource for the
I have a form that is connected to a datasource is called "Access Requests"

The control outside of the form is connected to a datasource called "Roles"

What I would like to do is pass the value I choose from the search box to the form "Access Requests"

golfnutt82_0-1640186791477.png

Is there a way to do what I am asking?

1 ACCEPTED SOLUTION

Accepted Solutions
RandyHayes
Super User
Super User

@golfnutt82 

Yes, SelectedText, first off, is a deprecated property and should not be used.

 

But, what it is that you want to have in the dropdown??  You are (in the picture) setting the Items property of the Dropdown...that needs to be a table, not text.

You would want to have the Items property of the dropdown set to your Roles datasource.

The Default of the dropdown should be set to Dropdown1_1.Selected.columnName

Just set the above columnName to the name of the column that has the value you are showing.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

5 REPLIES 5
RandyHayes
Super User
Super User

@golfnutt82 

You can simply reference that control outside of the form from inside of your form.

All controls are global in your app and you can access them from any place in the app...including your form.

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

Hi Randy, 
Thanks for your help!

I attempted to do the following without success.
Obviously, I am not doing this correctly. 
What am I missing?

golfnutt82_4-1640193374548.png

 

RandyHayes
Super User
Super User

@golfnutt82 

Yes, SelectedText, first off, is a deprecated property and should not be used.

 

But, what it is that you want to have in the dropdown??  You are (in the picture) setting the Items property of the Dropdown...that needs to be a table, not text.

You would want to have the Items property of the dropdown set to your Roles datasource.

The Default of the dropdown should be set to Dropdown1_1.Selected.columnName

Just set the above columnName to the name of the column that has the value you are showing.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

Ok great,
I clicked the datacard and selected the Default property and entere Dropdown1_1 and it now updates the datacard with what is selected from the search dropdown.
Thank you!
I was attempting to use the field default property but nothing happened

 

RandyHayes
Super User
Super User

@golfnutt82 

Yes, you don't want to change the datacard properties (the field) in order to do this.

Glad to help.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Top Kudoed Authors
Users online (2,331)