cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Samny_98
Helper IV
Helper IV

Navigate to a new Screen after a click on a DataTable line

Hello all,

 

I would to know if I can create a Navigate fonction from a Datatable line (not column) or several lines if I can do multi selection, please.

 

Many greetings

 

Samuel

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @Samny_98 

 

I see your point now, Sorry missed it earlier. Unfortunately, MS didn't exposed any events on the data table and so, navigating when you select a row is not a straight forward option.. you might have to play with some variables/timers kind of controls and see if you can achieve whatever you are looking for..

 

You can still get the selected row though (FYI, it is not possible to select multiple rows in the data table for now, refer to Data table control in Power Apps - Power Apps | Microsoft Docs ), so one clean option is, give a button to user to navigate after selecting the required row. Disable the button till the time user selects a row.

 

Thank you

-Srikanth

View solution in original post

6 REPLIES 6
Himanshu_90677
Super User
Super User

Can tell us more about this

ansrikanth
Resolver III
Resolver III

Presuming you are talking about "Canvas apps, with a form containing a Gallery of Database lines (you mean rows), and clicking on one or many of the rows you want to navigate to some other screen.."

If yes, then the answer is - Yes, absolutely.

If no, as @Himanshu_90677  pointed, please provide more details 🙂

 

Thank you

-Srikanth 

I would know if I can select one line or several lines simultaneously as a gallery (for example, when I'm clicking, I am in another screen thanks to Navigate). @Himanshu_90677 

I'm using Datatable instead of Gallery. @ansrikanth 

 

Can you provide a screenshot of datatable

Hi @Samny_98 

 

I see your point now, Sorry missed it earlier. Unfortunately, MS didn't exposed any events on the data table and so, navigating when you select a row is not a straight forward option.. you might have to play with some variables/timers kind of controls and see if you can achieve whatever you are looking for..

 

You can still get the selected row though (FYI, it is not possible to select multiple rows in the data table for now, refer to Data table control in Power Apps - Power Apps | Microsoft Docs ), so one clean option is, give a button to user to navigate after selecting the required row. Disable the button till the time user selects a row.

 

Thank you

-Srikanth

Samny_98
Helper IV
Helper IV

Ok, thank you for your answers !

To do :  Disable the button till the time user selects a row. , can I do If(IsBlank(DataTable4_2.Selected); false; true) ? @ansrikanth 

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.

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

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 (4,704)