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

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

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

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

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (11,058)