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 / Combobox, Variable, lo...
Power Apps
Unanswered

Combobox, Variable, lookup Colum

(0) ShareShare
ReportReport
Posted on by 33

Hi, There I'm trying to set the combo box to each value by 2 different buttons.

 

Booking Reference Number is a Lookup Colum

 

combobox items = Choices('Meal Orders Tables'.'Booking Reference Number')

this gives a drop-down with two choices, 10Q3L7Q0 and 11V0V7H7

 

I set Default selected items = varUser

 

here is the problem making the button to select the particular reference number

 

I tried in the onselect of the button

 

Set(
varUser,
LookUp(
Choices('Meal Orders Tables'.'Booking Reference Number'),
Value = ImpBooknumLogin.Text

 

 

the ImpBooknumLogin is text input where the user can put there reference number.

 

but I'm getting errors on the on select field of the button.????

Categories:
  • v-liwei-msft Profile Picture
    Microsoft Employee on at

    Hi @AtmaDharma 

     

    Based on the formula you provided, I see two parentheses are missing in your formula.
    When I add two parentheses and test it, there is no error.

    1.

    vliweimsft_0-1666925453558.jpeg

    2.

    vliweimsft_1-1666925469462.png

    3.

    vliweimsft_2-1666925480071.jpeg

    4.

    vliweimsft_3-1666925491647.png

    Set(
    varUser,
    LookUp(
    Choices('Meal Orders Tables'.'Booking Reference Number'),
    Value = ImpBooknumLogin.Text
    )
    )

     

    Best Regards,

    Levi

  • AtmaDharma Profile Picture
    33 on at

    I tried exactly that , even in a new canvas app, im still getting a red line under Value saying Name isnt valid 'Value' isnt recognised, and = say incompatible types for comparison.

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

    Hi @AtmaDharma 

     

    Please click the formula in the items property of the ComboBox to check whether the table returned by the Choice function contains the Value field.

    vliweimsft_0-1666939450449.jpeg

     

     

    Best Regards,

    Levi

  • AtmaDharma Profile Picture
    33 on at

    I don't see Value dasa_referencenumber

    2022-10-28 (3).png
  • v-liwei-msft Profile Picture
    Microsoft Employee on at

    Hi @AtmaDharma 

     

    According to the screenshot, the data you need is provided by dasa_referencenumber.
    Try replacing Value with dasa_referencenumber.

     

    Best Regards,

    Levi

  • AtmaDharma Profile Picture
    33 on at

    I just did that and there is no longer errors in the code, but it doesn't update the combo box on select

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

    Hi @AtmaDharma 

     

    Do you want to change the display of the ComboBox based on the text input box?

    The default value of the ComboBox is provided by a variable, so you need to click the button after the text input box is entered.

     

    Best Regards,

    Levi

  • AtmaDharma Profile Picture
    33 on at

    Yes the text input is populated

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

    Hi @AtmaDharma 

     

    Please click the button after text input is populated.

     

    Best Regards,

    Levi

  • AtmaDharma Profile Picture
    33 on at

    Yes but the Combobox doesn't update even when I click the button after the text input is populated.

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

#2
WarrenBelz Profile Picture

WarrenBelz 194 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 150

Last 30 days Overall leaderboard