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 / Need help with power apps
Power Apps
Unanswered

Need help with power apps

(1) ShareShare
ReportReport
Posted on by 12

Hi 

I have created a Canvas app for our campaigns. I need help with having view and edit buttons for all the submitted forms instead of having an individual, as it has messed up the design. Also, I selected the date from the date picker while submitting the form. It does not show up while viewing the form. However, the details are reflected in the SharePoint list. If someone can help me with this, I would appreciate it.

 

anubha007_0-1720121232915.png

anubha007_1-1720121396507.png

 

 

Categories:
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,960 Moderator on at

    Hi @anubha007 

     

    I am confused on part one but let me start with part 2

     

    For Part 2.

    For the Data Fields for Dates, it tells me the Default values for these are not set and therefore blank. please take a picture of the DefaultDate Property, I bet its blank. That or your Filter or Query for getting the data is not including these.

     

    For Part 1.

    You said

    I have created a Canvas app for our campaigns. I need help with having view and edit buttons for all the submitted forms instead of having an individual, as it has messed up the design

     

    I believe what you are asking for is a Single Button outside of the Gallery, that as long as you have a row selected, you want them to be able to click View or Edit and it goes to the form.

     

    So the Code you already have in your buttons, would be exactly (unless you wrote something weird), as it would be outside.

     

    Please provide details on how you are getting to the Edit or View Form. Are you passing the Entire Row or just a Row Idea. Are the Forms DataSource the same as the Gallery? What is the Expression in the Item property

     

    From outside in a Button I would do

    OnSelect

    Navigate(MyViewOrEditScreen, Transition.None, {_RowId: GalleryName.Selected.RowId })
    
    I am assuming you have some row id that can be filtered on.
    
    That or you can pass the whole record
    Navigate(MyViewOrEditScreen, Transition.None, {_Row: GalleryName.Selected})
    
    Now in the Item Property you either do
    LookUp(DataSource, RowId = _RowId)
    Or
    _Row if you passed the row
    
    Thats all there is too it 🙂

     

    P.S. if you are using the same screen for the View or Edit then you can adapt what I said and do this

    Navigate(MyViewOrEditScreen, Transition.None, {_RowId: GalleryName.Selected.RowId, _FormMode: "VieworEditGoeshere" })
    
    I am assuming you have some row id that can be filtered on.
    
    That or you can pass the whole record
    Navigate(MyViewOrEditScreen, Transition.None, {_Row: GalleryName.Selected, _FormMode: "VieworEditHere"})
    
    Now in the Item Property you either do
    LookUp(DataSource, RowId = _RowId)
    Or
    _Row if you passed the row
    
    Thats all there is too it :-)
    
    Forms, DefaultMode property
    Switch(_FormMode,
     "View",
     FormMode.View,
     "Edit",
     FormMode.Edit
    );
    
    This way you are passing Context Variables to your Screens and not Global Variables or accessing the Gallery from Another Screen.
    
    Nice... and... Clean...

     


    If I have helped you, I would really appreciate if you please Mark my answer as Resolved/Answered, and give it a thumbs up, so it can help others

    Cheers

    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

  • anubha007 Profile Picture
    12 on at

    @FLMike sorry for the confusion, 

    I would like to enhance the user experience by introducing a more streamlined approach. Specifically, I want to add a single 'View' button and a single 'Edit' button at the top of the gallery screen. These buttons should not be limited to interacting with a specific row.

    The intended functionality is as follows:

    • When a user clicks on the 'View' button, they should be able to view any form in the gallery. This action should allow users to select and view the details of any submitted form.
    • Similarly, when a user clicks on the 'Edit' button, they should be able to select and edit any form in the gallery. This should enable users to choose any row and make necessary modifications.

    In summary, the goal is to have centralized 'View' and 'Edit' buttons that facilitate the viewing and editing of any form within the gallery, without being tied to a specific row

     

    Right now the view button is 

     

    anubha007_0-1720196117816.png

     

  • Michael E. Gernaey Profile Picture
    53,960 Moderator on at

    Thats what I gave you

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 525 Most Valuable Professional

#2
Haque Profile Picture

Haque 273

#3
Kalathiya Profile Picture

Kalathiya 232 Super User 2026 Season 1

Last 30 days Overall leaderboard