cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
DAVIDPOWELL
Post Prodigy
Post Prodigy

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
yashag2255
Dual Super User II
Dual Super User II

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
eka24
Super User
Super User

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.

 

PowerAddict
Super User
Super User

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
yashag2255
Dual Super User II
Dual Super User II

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

@yashag2255 

 

Thank You very very Much !!

 

David

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (1,660)