web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Apps
Answered

Edit Form help

(0) ShareShare
ReportReport
Posted on by 98

Hello,

 

I'm hoping someone can help.

 

I have the following SQL DB

Customer

Devices

Peripherals

Available Peripherals

Installations

 

A customer is create, a device is added to the customer and then the customer is allocated an installation. The app is allowing users to enter a serial number for the device and also add peripheral/serial numbesr should it be required. 

 

From the app I can selected an installation which has the customer and device assigned and then from an edit form which is filtering devices against the customer I can enter a serial number for that device.

 

This is the filter being used: Filter('[dbo].[Device]',CustomerId=TemplateGalleryList1.Selected.CustomerId)

 

I'm trying to add another edit form which will allow me to assign a peripheral to a device - So far I have created the edit form with a drop down using the 'available peripherals' DB but I'm struggling to get the filter right so that the whole thing links back to the customer and device.

 

Hope this make sense, any help would be much appreciated.

 

 

Categories:
  • Verified answer
    WarrenBelz Profile Picture
    156,921 Most Valuable Professional on at

    Hi @dandandsan ,

    I assume you have a field in Peripherals that identifies the device that the peripheral belongs to. I will call it DeviceID - change to your field name. So the Item of the edit form

    Lookup(
     '[dbo].[Peripherals]
     DeviceID = Gallery1.Selected.DeviceID
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @dandandsan ,

    Could you please describe the more intuitive scenario with some screenshots and codes?

    Sik

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard