web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Gallery Button -> Navi...
Power Apps
Unanswered

Gallery Button -> Navigate to Form

(0) ShareShare
ReportReport
Posted on by 52

Hello everyone,

 

I would like your help on the following scenario:

I have started building an application, where I have several fields and those fields are Patched into a SP List. I don't use the SP list as a source, I patch the data there. On a different screen, I have a gallery, where the source of data is the above SP List. At the end of it, I have a button "View CMF". Each row here represents one row from the SP list.

 

What I want is "on select" of this button to be redirecting me to the screen of the form, where the respective entries are shown from the SP list.

 

- Do I need to create another screen, where here I pull data this time from the SP list?

- Could a solution with global variable work?

 

Thank you in advance!!

Categories:
I have the same question (0)
  • Joel CustomerEffective Profile Picture
    3,224 on at

    on the form, set the items property to Gallery1.Selected (where Gallery1 is the name of your gallery in step 2).

     

    Then on your gallery button

    Select(Parent);Navigate(Screen3); EditForm(Form_1)

    Another thing you could do is set a variable to ThisItem when selecting an item, and then set the item property of the form to the variable.

  • MadChemist Profile Picture
    52 on at

    Thank you for the reply jlindstrom,

     

    Your solution would work assuming that I have a "predefined" form, which is linked to a Sharepoint list.

    Instead, I am using the "patch" function to paste random fields to the columns of the sharepoint list.

     

    Is the only solution here to select the "customize form" from the Sharepoint? and then follow your advice?

    MadChemist_0-1595489286379.png

     

  • v-qiaqi@microsoft.com Profile Picture
    on at

    Hi@MadChemist,

    Based on the issue that you mentioned, you created a form to patch field value to SharePoint list and you want to click a button to navigate to Form where displays the corresponding record.

    I have a test on my side, please take a try as below.

    Set the OnSelect property of the Button as below.

     

     

    Navigate(Screen3);EditForm(EditForm2)

     

     

    Note:The EditForm2 represents the Edit Form within your Edit Screen (mine is Screen3).

     

    Set the Item property of the EditForm as below

     

     

    Gallery3.Selected

     

     

     Note: Gallery3 represents your gallery control within your app.

     

    Set the DefaultMode property of the Edit Form within your Edit Screen  to following formula:

     

     

    FormMode.Edit

     

     

    The operation above will solve the problem that you don't have a predefined form. 

    Best Regards,

    Qi

  • MadChemist Profile Picture
    52 on at

    @v-qiaqi-msft 

     

    Perfect, I will give it a shot, I believe that both solutions described would work.

    Just to recap, there is no way to both edit and view a set of predefined fields, unless I have grouped them under a form - whether this form is created based on a sharepoint list (solution A) or not (solution B)

     

    Can you confirm?

     

    Thank you!!

  • Joel CustomerEffective Profile Picture
    3,224 on at

    so both of us basically suggested the same thing which assumed you had a form

    for the cmf to display the selected records

     

    if that isn’t the case, you can still display the values without a form. When you select the “view cmf” button in the gallery, you can navigate to screen 2 and without a form, you would need to add controls to the canvas. You will still need to add a text control for each field you want to display. If the fields are in the records in the gallery where you click the view cmf button, you can use the Gallery1.Selected.fieldname.Text to show the field from the selected gallery item. If that field is not in the record in the gallery you will need to fetch it via LookUp

  • MadChemist Profile Picture
    52 on at

    Hi @jlindstrom 

     

    There was a mistake in the phrasing, you captured my question right.

    Not all the fields are part of the gallery.

     

    What about the text control field? Would I need to modify the DisplayMode of each text field i.e. Change Management Name, Project Type etc?

     

    I am attaching 2 screenshots, first one is the gallery, second one the template

    MadChemist_1-1595517610979.png

    MadChemist_0-1595514099409.png

     

    Thank you for the help 🙂

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 793 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 333 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard