cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
RDJHUD
Frequent Visitor

Gallery navigate to display view screen

So, I created a new Canvas App. I am using a CDS table as my data source. I created all of the necessary columns in my table to store my data.  I added 2 dummy records to my data.  I have created 3 screens; 1 with my Gallery to view and select my records, 1 screen that I created a "display" form on, and 1 screen that I will create an "edit" form on.  My problem is that in my gallery screen I have added the gallery and it populates the records.  But, I can't figure out how to link the arrow so that when I click on that particular record it will navigate to the display screen (or later the edit screen) and populate the screen with the rest of that records data to view.  I assume I have to change the OnSelect property of the arrow but I can't figure out the syntax to put in to get it to send that records data to the display screen. 

1 ACCEPTED SOLUTION

Accepted Solutions
JayMagness
Solution Specialist
Solution Specialist

Hi,

 

 this is a two part process:

 

first create the from and where you attached the table in the items field put [Table name].Selected

Then on the arrow put in the onselect statement put Navigate([formname])

 

View solution in original post

4 REPLIES 4
JayMagness
Solution Specialist
Solution Specialist

Hi,

 

 this is a two part process:

 

first create the from and where you attached the table in the items field put [Table name].Selected

Then on the arrow put in the onselect statement put Navigate([formname])

 

@RDJHUD 

I would change @JayMagness 's suggestion for the ">" icon inside the gallery's OnSelect property should be
Navigate(screen2,None); EditForm(Form1)

Likewise you will need a way to add a new record to your table.  I suggest adding a "+" icon outside of the gallery with the OnSelect as Navigate(screen2,None); NewForm(Form1).

The above assumes that your edit form is on screen2 and is named Form1.  I generally don't use the display form control much because you can change the display mode of an edit form by using the function ViewForm(Form1) and it makes the form look like a view form.  

@JayMagness Thanks, that was the simple fix and it did work.  Much appreciated! 

Randy

@Drrickryp Thanks for the additional information, I'll consider this as I progress my project along.  

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (6,097)