cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
DAVIDPOWELL
Level: Powered On

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

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
eka24
Level 10

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.

 

Super User
Super User

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

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

DAVIDPOWELL
Level: Powered On

Re: onselect not working for icon

@yashag2255 

 

Thank You very very Much !!

 

David

Helpful resources

Announcements
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (8,924)