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 / Pass a value as someth...
Power Apps
Unanswered

Pass a value as something else in a gallery

(0) ShareShare
ReportReport
Posted on by 1,168

Hi,

I have a gallery with an arrow that points to the edit page where another lookup is completed to get all the data.

My arrows has the following On Select

Set(
 varFormData,
 Gallery3.Selected
);
Navigate(scrDetail);

Problem with his gallery is that we don't need the id field but a seperate field called QuoteID

 

so I guess you could say that we need to pass QuoteID as ID

 

I tried adding .QuotedID after selected (which intellisense showed) but it then gave error message Incompatible type

 

Thank in advance

 

Todd 

Categories:
  • Ash13 Profile Picture
    576 on at

    Hi @Tango 

    The incompatible type error is likely because the variable is being used elsewhere - you need to change all instances. For example, in your LookUp on your edit page you are likely using something like ...ID=varFormData.ID...

    If you set varFormData as Gallery3.Selected.QuotedID, it is probably now a number variable, not a record. In your LookUp, you'd need to change varFormData.ID to just varFormData

  • Ethan_009 Profile Picture
    4,840 Moderator on at

    Hi @Tango ,

     

    Gallery.Selected gives you entire record data into the variable. 

    If you need any specific data from the variable then you have to use 'varFormData.<columnName>'

    Now based on the table, you can get all fields present in the record.

     

    To get QuoteID then you will see varFormData.Quote or similar in you App. That will be GUID type data.

    You can also pass contextual arguments in Navigate function. 

    Reference Documentation

     

    Hope this helps

     

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