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
secondImage

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Power Apps Community Call

Power Apps Community Call: February

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

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

Top Kudoed Authors
Users online (19,162)