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

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

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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (45,973)