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 / Repeating Table- Dropd...
Power Apps
Answered

Repeating Table- Dropdown Values go back to the first value of the item

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

When I save the item in the repeating table, the value of dropdown Value go back to the first value of the items. I know i need to update something on Default ( property) but adding item values on default doesn't work or at least I don't know how to update it.

 

Salejalil_0-1643129359397.png

Salejalil_1-1643129462280.png

Salejalil_2-1643129505322.png

this is my collection

Salejalil_0-1643130172433.png

 

Categories:
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Anonymous 

    If that item is in a collection and this is part of the gallery for your repeating items and it is truly a Dropdown and not a Combobox, then set the Default to:

    ThisItem.'Asset Type Being Transferred'

     

    I hope this is helpful for you.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Salejalil_0-1643130738596.png

    I set the Default as attached, but doesn't work. how should I update my collection?

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Anonymous 

    Please let me know what "doesn't work" means?  

    What is the Items property of your Gallery?

     

    The bigger issue (not replated to the Default of the Dropdown) is that you are using ThisItem in the patch statement and your collection appears to only have one column in the collection.  For "ThisItem" to match, there has to be some level of identity.  ThisItem, does not match the exact record you are on.  Especially with Collections!

    With ThisItem, Patch will try to find a record that matches the current record.  If the record has one column, and there are multiple records that may have that value, then it will just patch the first one it finds.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I added another field as below screen and updated the patch and collect function ( i have other dropdown fields to be added and now just testing)

    Salejalil_0-1643132530246.png

    Salejalil_1-1643132586186.png

    and now confused which Default section should be updated? did you mean Gallery Default?

     

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Anonymous 

    No, in this case we are focused on the Default property of the DropDown.  That is what will determine what is shown.

    The Default of the Gallery will only set what is the default selected row in the gallery.

    What is the Items property of the Gallery?  I am assuming it is AssetCollection !?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you @RandyHayes  it did worked, but now the values don't get patched to the collection

    Salejalil_0-1643143681191.png

     

    Salejalil_2-1643144009221.png

    Any idea where I might be missing?

     

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Anonymous 

    Yes, as mentioned, your ThisItem has no context!  There is nothing that will link ThisItem to the row in your collection as ThisItem is an empty record when you start.  So, how then could it match and Patch?

     

    I would suggest utilizing an identification column in your collection so that you can match and patch properly.

    It is as simple as a row even.

    So, since you are doing a ClearCollect when you start all of this activity, I would add an additional column called row and set the value to 1. 

       ClearCollect(AssetCollection, {row:1, 'Asset Type Bei.....

     

    Then in your Patch statement...change to:

    UpdateIf(AssetCollections, row=ThisItem.row, {'Asset type Bein.......Value});
    Collect(AssetCollection, {row: Max(AssetCollection, row)+1})

    Since the schema is already defined for the collection, you will not need to repeat all the empty columns in your collet statement above...as it is written would be all you need.  But, obviously, fill in the dots in the first line.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @RandyHayes It does work ( values get patched to collection), but I'm back to 1st place, Dropdown Values go back to the first value of the item. I sat the default on property for each Dropdown as well but still the same problem 😞 

     

     

    Salejalil_0-1643148381516.png

    Salejalil_1-1643148404342.png

    Salejalil_2-1643148549268.png

     

     

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Anonymous 

    Just noticing two things:

    1) Get rid of the .SelectedText property references.  That property has been deprecated and should not be used.  IN your case, change them all to .Selected.Value

    2) I see "Derivatives" in your collection picture, but when looking at your Items property for the Dropdown, I do not see that value.  I am going to assume that since you have it in the collection and it came from the Dropdown, then it must be in the Items.

    To verify the value in your row, place a test label in your Gallery and set the Text property to: ThisItem.'Asset Type Being Transferred'

    Does that label then show the correct value?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Ni, It doesn't show any value just the text.

     

    Salejalil_0-1643163752204.png

     

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard