cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

hi, Search two tables with one textinput box

Hi, 

 

I have a gallery that displays information from one table, PurchaseOrder Table, with labels inside each gallery item to look up information about the vendor on a VendorInformationTable.  The two tables are linked with a VendorID field. 

 

How can I seach/filter both tables for values in a TextInput box?  

ei:  Allow the user to enter the company name, the invoice value or the PO# to return hits in the gallery. 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User II
Dual Super User II

Hi @ColinM 

 

Instead of adding the lookup function on individual labels, you can also create a column using AddColumns function and then use it.

 

Expression: Search(AddColumns(PurchaseOrder, "VendorTableCustColumn",LookUp(VendorInformationTable, VendorID = ID).ColumntoFetch), TextInput1.Text, "Column1","Column2", "VandorTableCustColumn")

 

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

1 REPLY 1
Dual Super User II
Dual Super User II

Hi @ColinM 

 

Instead of adding the lookup function on individual labels, you can also create a column using AddColumns function and then use it.

 

Expression: Search(AddColumns(PurchaseOrder, "VendorTableCustColumn",LookUp(VendorInformationTable, VendorID = ID).ColumntoFetch), TextInput1.Text, "Column1","Column2", "VandorTableCustColumn")

 

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

Helpful resources

Announcements
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (2,892)