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 / gallery - edit icon on...
Power Apps
Answered

gallery - edit icon on select to only open the row not the whole records.. how??

(0) ShareShare
ReportReport
Posted on by 1,994

Hi

 

I have an edit icon when I click on it it open all rows of input box that I want user to edit.

 

how to only allow to open the selected rows instead of the whole gallery?

 

the edit - onselect is UpdateContext({EditDes:true})

 

 

Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @bbsin ,

     

    Could you please share more details about your scenario? Where is the edit icon, in a Gallery or just on the screen?

    Where are those input box?

     

    Please share more information, screenshots would be helpful.

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

  • bbsin Profile Picture
    1,994 on at

    @v-jefferni 

     

    HI

     

    1) how to when user select the icon to open up only one record and the box will be grey so that they know?

    edit icon is UpdateContext({EditDes:true})

     

    I want to hide the button ; only show when the edit icon is select.. If(EditDes,!EditDes) .. is not working?

     

     

     

    1.png

     

    the button is to patch , when select, how to show it is success and close off?

     

     

    2) is there any way to patch the attachment too as there is attachment in the row of data.

     

    3) how to not sure the icon pen and copy , trash when it's on X?? and the rest the same??

     

    Thank you

     

     

     

     

  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @bbsin ,

     

    If the edit icon is in the Gallery, then OnSelect of the icon set to Select(Parent), and the selected record is Gallery.Selected. For example, in a TextInput box, Default should be set to Gallery.Selected.textColumnName

     

    Speaking of Visible of the icons, please refer to below video, start from 5:30:

    https://www.youtube.com/watch?v=Y5G5p84mD84

     

    In short words:

    1\ OnVisible of the screen:

     

    Set(ItemID,0)

     

     

    2\ OnSelect of edit icon:

     

    Select(Parent);Set(ItemID,ThisItem.ID)

     

     

    3\ Visible of other icons you would like to show after edit icon is clicked:

     

    If(ItemID = ThisItem.ID, true,false)

     

     

    4\ Visible of edit icon:

     

    Select(Parent);Set(ItemID,ThisItem.ID)

     

     

    5\ OnSelect of other icons:

     

    Set(ItemID,0)

     

     

    The question of patching attachment is not related to this post but in another post I can see, please provide more details there and wait for reply.

     

    Hope this helps.

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

     

     

  • bbsin Profile Picture
    1,994 on at

    @v-jefferni 

     

    This is great.. I didnt put in #3 and 4.. cos not too sure, but it's working.. Thanks for your great help.

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @bbsin ,

     

    Step 4 should be OnSelect of the edit icon.

    Select(Parent);Set(ItemID,ThisItem.ID)

     

    Sorry for the typo.

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

     

  • bbsin Profile Picture
    1,994 on at

    ok. thanks

  • bbsin Profile Picture
    1,994 on at

    @v-jefferni 

     

    Question now I have a problem.. 

    the row of record edit is fine, then when I select the next row of edit icon to edit one, my first edit box went hiding.. how to display is as view for all edited and patched. 

     

    when I edit.. ok.. then.. below

    1.png

    when I click next item to edit.. the updated record that was first done didn't display 

    Also I need the update changes button to hidden when it's not click that is link to with the pen..

     

    those earlier edited need to be display. thx

     

    2.png

     

    Thanks

     

  • v-jefferni Profile Picture
    Microsoft Employee on at

    @bbsin ,

     

    Have you set any fomulas in the Visible of the TextInput?

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

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 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard