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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / select Id column in va...
Power Apps
Unanswered

select Id column in variable when select name from dropdown

(0) ShareShare
ReportReport
Posted on by

Hi

 

I have two entity Chemical and Lab and have two dropdown. Chemical table have (Chemical_Id and Chemical Name) and  Lab table have (Lab_Id and Lab_Name).

dropdown1 showing Chemical name and dropdown2 showing Lab_Name.

Here I want to set Chemical_Id into variable(varchemical) when I select Chemical_Name from dropdown1.

and I want to set LAB_Id into variable(varLab) when I select LAB_Name from dropdown2.e

and both variable will be send to Secondscreen on button click and  both variable will be use to filter collection(chemicalorder).

 

Please suggest.

 

Regards,

Lalit Kadam

Categories:
I have the same question (0)
  • eka24 Profile Picture
    20,923 on at

    Here I want to set Chemical_Id into variable(varchemical) when I select Chemical_Name from dropdown1.

      Set(varChemical_Id ,LookUp(Chemical,Chemical_Name=Dropdown.Selected.Value,Chemical_Id)

    Then use the variable: varChemical_Id

     

    I want to set LAB_Id into variable(varLab) when I select LAB_Name from dropdown2

      Set(varLAB_Id ,LookUp(Lab,LAB_Name=Dropdown.Selected.Value,LAB_Id)

    Then use the variable: varLAB_Id

     

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

    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.

     

     

  • v-siky-msft Profile Picture
    on at

    Hi @Anonymous,

     

    set Dropdown1.Item: Chemical

    set Dropdown2. Item: Lab

    set Button.OnSelect: Set(varchemical, Dropdown1.Selected.Chemical_Id); Set(varLab, Dropdown2.Selected.LAB_Id)

     

    Then you are able to apply both variables into Filter function.

    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard