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

Catch changing input

Hello! 

I'm developing a PowerApp based on PowerBI integration. 

I need to be able to catch whenever the value i'm getting changes. 

So when the input changes from one string to another, i need to automatically change the value of a variable. 

Is there anyone that could give me some advice on how to approach this? 

1 ACCEPTED SOLUTION

Accepted Solutions
Frequent Visitor

I know this is an old post, but since it hasn't been solved, I thought I'd share what I was able to do. It may be a bug in PowerApps, as I stumbled over this by accident, but a combo box OnChange() event is triggered by a change in PowerBIIntegration.Data change. I added a hidden one that set a few variables when it was changed and it's all working well now. 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

You can for example use the OnChange of a Text input to set the variable:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/controls/properties-core

 

Set( nameofvariable, valueofvariable )

 

And set the DisplayMode of the Text input to View if the information is not input of a user, but simply displaying information.

That was my first thought as well but i couldnt get it to work. 

I set the Default of the Text input to:

Last([@PowerBIIntegration].Data).'Dimension'

Then the onChange to:

Set( name, value )

The value clearly changed but the onChange control did not set off and change the variable...
Any clues?

Frequent Visitor

I know this is an old post, but since it hasn't been solved, I thought I'd share what I was able to do. It may be a bug in PowerApps, as I stumbled over this by accident, but a combo box OnChange() event is triggered by a change in PowerBIIntegration.Data change. I added a hidden one that set a few variables when it was changed and it's all working well now. 

View solution in original post

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (74,850)