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 Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

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.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (2,588)