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 / Click in the buttom NE...
Power Apps
Answered

Click in the buttom NEW and immediately returns to the first topic

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

In the right top i have a gallery with my buttons (Geral, I, II, ...). I would like to clik in the buttom Novo (NEW), Editar (EDIT), and the (>) button in the gallery in the left and immediately the form returns in the fist tab (Geral). How can i do it?

 

FORMpng.png

 

Categories:
  • Ethan_009 Profile Picture
    4,840 Moderator on at

    Hi @Anonymous ,

     

    I hope the Buttons as "Geral", "I", "II".... so on are part of a Gallery control with repeated items. 

    If so, then when you click on "Novo" and others set this formula on OnSelect for buttons

    //Assuming Gallery for your Tabs are GalleryCommands
    //Asssuming Name is your Button Text Name
    //Assuming Button1 is your Button control Name
    
    LoookUp(
     GalleryCommands,
     Name = "Geral",
     Select(Button1)
    )

     

    Give this a try, hope this works as I haven't tried it just a guess for now. 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @Ethan_R !

     

    The code didn't worked. For me, it shows that the code "LookUp" is not supported. I'm newbie in PowerApps and coding. This is the code from my Novo and the gallery.

     

    Novo.png

     

    Gallery.png

     

  • Ethan_009 Profile Picture
    4,840 Moderator on at

    Hi @Anonymous ,

     

    Can you tell me how are you selecting the Buttons? 

    Are you setting some variable?

     

    Can you try this formula instead:

    Select(Gallery, 1)
    //OR
    Select(Gallery.AllItems, 1)

     

    Hope this helps

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @Ethan_R ,

     

    With your suggestion, i tried changing the Select formula, now it worked with the buttons NEW and EDIT.

     

    dda22e0c-f0a3-4890-a135-970a21e7f162.png

    Unfortunatelly, when I click in a option in the gallery in the left I would like that the same  happens, but it seens it's not supported "nest columns" (I don't if i translet right). 

    Captura de tela 2023-06-06 082020.png

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Do u know if there is other path to solve this?

  • Verified answer
    Ethan_009 Profile Picture
    4,840 Moderator on at

    Hi @Anonymous ,

     

    Great to see that worked!

    Now coming to nested Gallery, do 1 thing.

    Step 1: Create a button that contains Select() formula in OnSelect property on button

    Step 2: For the control in your nested Gallery, attach the following code in the control inside your Gallery as :

    //Assuming the new button you create will be named as follows:
    Select(HiddenButton1)

    Step 3: Set the button to invisible

     

    Hope this helps

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    It worked! Thaaaanks 🙃

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 340

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard