cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Continued Contributor
Continued Contributor

onselect not working for icon

I have a textbox called Filter_Supplier 

I have an icon 

 

for the OnSelect in the icon i'm trying to use:

Filter_Supplier.Text = Gallery1.Selected.Supplier_Number

to bring a value over from another form.

 

but nothing happens when I click on the Icon  ?

Dave

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Dual Super User III
Dual Super User III

Re: onselect not working for icon

Hi @DAVIDPOWELL 

 

This way of referencing, "Filter_Supplier.Text = Gallery1.Selected.Supplier_Number" doesnot work in PowerApps. You have to go to properties to set the value.
 
You can update the configuration as:
Button OnSelect -> Set(MyVar, Gallery1.Selected.Supplier_Number)
 
Is this textbox, a label or TextInput?
 
If label -> Text property -> MyVar
 
If Text Input ->
Button OnSelect -> Set(MyVar, Gallery1.Selected.Supplier_Number);Set(ResetInput,true);Set(ResetInput,false)
Text Input -> Default -> MyVar
Text Input -> Reset -> ResetInput
 
Hope this Helps!
 
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

4 REPLIES 4
Highlighted
Super User III
Super User III

Re: onselect not working for icon

I assume that the form and the gallery are in one place and the icon and the textbox are also on one form.

Try this;

1. Onselect of Icon button: Navigate (form1); Set(SupplierNo,Filter_Supplier.Text)

2. Gallery1 items: Filter(Datasource, Supplier_Number =SupplierNo)

3. Form items: Gallery1 .Selected

 

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

 

Highlighted
Super User II
Super User II

Re: onselect not working for icon

Hi,

Set the Text property of your label to:

supplierTextVar

Set the OnSelect property of your icon to:

Set(supplierTestVar, Filter_Supplier.Text = Gallery1.Selected.Supplier_Number)

Let me know if this helps.

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution.

Thanks!
Hardit Bhatia
The Power Addict
https://thepoweraddict.com
Highlighted
Dual Super User III
Dual Super User III

Re: onselect not working for icon

Hi @DAVIDPOWELL 

 

This way of referencing, "Filter_Supplier.Text = Gallery1.Selected.Supplier_Number" doesnot work in PowerApps. You have to go to properties to set the value.
 
You can update the configuration as:
Button OnSelect -> Set(MyVar, Gallery1.Selected.Supplier_Number)
 
Is this textbox, a label or TextInput?
 
If label -> Text property -> MyVar
 
If Text Input ->
Button OnSelect -> Set(MyVar, Gallery1.Selected.Supplier_Number);Set(ResetInput,true);Set(ResetInput,false)
Text Input -> Default -> MyVar
Text Input -> Reset -> ResetInput
 
Hope this Helps!
 
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

Highlighted
Continued Contributor
Continued Contributor

Re: onselect not working for icon

@yashag2255 

 

Thank You very very Much !!

 

David

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (6,712)