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 / view a text item in a ...
Power Apps
Unanswered

view a text item in a column

(0) ShareShare
ReportReport
Posted on by 301

Hi,

 

I have a canvas app that connects to a database that each column is in text, in my canvas app i have built dropdowns that are filled from a collection made in the app, if i want to patch them i have a label that is invisible that displays the value of the dropdown. But how do i edit the value of the item (default gallery.selected.itemiwanttochange) when i select it from the gallery and for correct item to be displayed in the dropdown? ive done this before however i cannot remember how?

 

Cheers

Categories:
I have the same question (0)
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @ShaneITAutomate 

    If the control doing the patch is outside of the gallery:

     

    Patch(table,Lookup(table,ID=Gallery1.Selected.ID),{itemiwanttochange:Textinput1.Text})

     

    If it is inside the gallery

     

    Patch(table,Lookup(table,ThisItem,{itemiwanttochange:Textinput1.Text})

     

  • ShaneITAutomate Profile Picture
    301 on at

    Sorry im confused>?

     

    Im trying to edit my gallery data that is saved as Text back into a dropdown?

     

    Eg i have a dropdown with the items colItems, i view the itemname but i patch the itemcode

    ClearCollect(
     coltems,
     {
     Id: 0,
     itemcode: "",
     itemname: ""
     },
     {
     Id: 1,
     itemcode: "A1",
     itemname: "TESTNAME"
     },
     {
     Id: 2,
     itemcode: "A2",
     itemname: "TESTNAME2"
     }
     )


    i collect the dropdown to another collection ill call colAll (with many others)

     

    Collect(
     colAll,
     {ListItem:Text(dropdown1.Selected.itemcode))


    ColAll has yet to be patched back to sharepoint which is a text column,

    if i goto the gallery and decide to edit those values i wish to edit them back in a dropdown where i view the itemname again,

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard