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 Platform Community / Forums / Power Apps / Navigate from a galler...
Power Apps
Answered

Navigate from a gallery to a form and set the forms recordset based on a variable passed having the gallery and form using different datasources

(0) ShareShare
ReportReport
Posted on by 9

Hi All, 

To explain my challenge:

Screen1 has gallery 'gal_1' Datasource is a SQL view

Screen2 has 'frm1' Datasource = 'table1'

table1.ID is included in the SQL view so it has the exact same field I'm passing to frm1 

How can I navigate to Screen2 and set the frm1 recordset to the ID selected from Screen1?

I can set a global or context variable but can't seem to get the form set to the record I select in gal1

I'd appreciate any thoughts... Thanks! 😉

Categories:
  • Verified answer
    eka24 Profile Picture
    20,925 on at

    Use this approach.

    1. Onselect of the Icon or button inside the Gallery, set a variable;

    Set(VarSelected,ThisItem.ID)

     

    2. On the Items of the form put:

    LookUp (Table1,ID=VarSelected)

     

    Table 1 is connected to the form.

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Greg_1429 Profile Picture
    9 on at

    I went out and back into the dev environment as the lookup solution I'd been trying seemed like the right solution.

     

    'Solution'

    In 'Items' of frm1:

    LookUp('tbl1',ID= globalvariableID)

    Got an error: "Service call was successful. However, there was a problem processing the server response. Please refresh your data source and republish the app"

     

    frm1 - error:

     

    Greg_1429_0-1596120855564.png

     

    'Solution'

    Refresh links, save, publish, close and log back in flushed the error.

     

    All working 😉

     

  • Greg_1429 Profile Picture
    9 on at

    Thanks eka24!

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 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard