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

Showing selected items

Hi,

 

I have created an app with several customers, machine controls and machines. If I click through the app, I can navigate from a customer to the machines. Is it possible to show only the machines beloning to one customer instead of showing all exisisting machines? In my database I have a foreign key in table machine for machine control and customer.

 

Many thanks in advance!

 

Tobi

3 REPLIES 3
Anonymous
Not applicable

Hi @Tobi_1

 

Sounds like you need to use one of these functions: https://powerapps.microsoft.com/en-us/tutorials/function-filter-lookup/

 

Depending on how you are selecting your customer and how you are displaying the machines data, if for example you are using a drop down or a gallery to select the customer, then you can use DropDown.Selected.Value or Gallery.Selected.Employee as the selected employee in your filter formula.

 

If you need more exact explanation, please share some more info about your scenario.

 

Hope this helps 🙂

v-monli-msft
Community Support
Community Support

Hi @Tobi_1,

 

Here is an example. For your reference:

https://community.powerapps.com/t5/PowerApps-Forum/Filter-Gallery-by-Dropdown-and-or-Search-Box/m-p/...

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Tobi_1
Regular Visitor

Thank you!

 

another question, because somehow I can´t post a new article to the forum?! (I have no idea why) But maybe you can help me with this as well 🙂

 

I want to write the two following functions within a TemplateGalleryList:

 

SortByColumns(Search('[dbo].[Maschine]'; TextInput2_2.Text; "Bezeichnung";"Maschinennummer"); "Bezeichnung"; If(SortDescending1; Descending; Ascending));; Search('[dbo].[Maschine]';TemplateGalleryList1.Selected.Name;"Kundenname")

If I use just one of the two functions, it works well. So I thougt I have to separate them by ";;", but this does not work. Can somebody help me with this?

 

 

Many thanks in advance!

 

Tobi

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (1,804)