cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper I
Helper I

Update property error on combobox

Hello,

 

I am trying to do the following and it seems so simple but got stucked. Any help is greatly appreciated. Thanks in advance!

 

  1. I’d like to be able to select an item on “Promo on” (image 1). Based on that selection, it should cascade to combobox “Promo_on_ItemsCategory” (image 2).
  2. If you look at the “Items” property on combobox “Promo_on_ItemsCategory” (image 3), I am trying to use different sql tables(views) based on “Promo on” selection.
  3. Now, I have an issue in “Update” property (image 4). I’m not sure what to do at this point. 

 

 

image1.pngimage2.pngimage3.pngimage4.png

18 REPLIES 18

@mdevaney 

 

Yes, one-column table with the header being Product_Category. Worth to mention, it is a view in SQL. Not sure if that is a game changer?

 

image8.png

My current theory is because each of your SQL tables has a different column name. See post 10. Column names Product, Product_Category and Product_SubCategory should all be the same name your_column_name.

Then the update code would become
ComboBoxPromoItems.Selected.your_column_name

Of course you’d have to update your Switch() function to reflect this as well.

View solution in original post

@mdevaney 

 

Ok, I fixed the column names to match in SQL (all three views) . This was done in SQL not the Rename() function.  All read like this "Promo_on_ItemsCategoryName". I also changed the Switch() function to reflect the changes. Now, the combobox drops down and it looks like there is something in it but blank, sort of like a white font if that makes sense?

 

image9.png

@mdevaney 

 

Ok, here's the scoop. This is strange.

Based on my last reply about the blank/white font stuff. I tried selecting one even though I can't see it. Smiley Indifferent

I then submitted the form, went to SQL and checked the data. Guess what? It is there! Wow! Now, I have a different issue. Smiley LOL

 

Do you know what that might be?

 

@baller72 

You are seeing blank options because you also have to change these properties of your ComboBox.  PowerApps is not smart enough to do it automatically

 

DisplayFields

["your_column_name"]

 

SearchFields

["your_column_name"]

 

@mdevaney 

 

Just checking on couple of things. I'll mark as solution once I am done checking.

 

Thank you for your time. Will update soon.

@mdevaney 

 

Just an fyi, I am new to PowerApps and I can't thank you enough for getting my project going. You helped a lot and solved my problem. 

 

Let me know how I can buy you a drink. Thank you so much!! 

 

 

 

 

@baller72 

No problem at all!  I'm just happy to help people solve their problems with PowerApps.  I do love beer but your gratitude is payment enough.

 

Once you feel comfortable in PowerApps you shoul jump right in and start answering questions too!  I have found participating in the forum and answering questions is an excellent way to learn.

 

@mdevaney 

 

So much to learn and I love it.

I will start helping out once I am very comfortable with it.

 

Thanks, again! 

 

 

Helpful resources

Announcements
secondImage

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

Top Kudoed Authors
Users online (21,490)