cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
stumac_31
Helper III
Helper III

Link to a specific place in a list

Dear all

 

I have a timesheet app with working days of the year in a list on my BrowseScreen (see e.g.1 attached).

As this is a long list, as the year goes on its going to require a fair bit of scrolling, didn't think about this in the design.

I want to add a menu screen that would allow the user to move to a specific point in the list, eg. the first day of the month.

I have created this screen and put some buttons on it (see e.g.2 attached), but cannot figure out how to add an action so that the 'August' button for example takes the user to the 1st of August in the list on the BrowseScreen.

 

Any idea? Open to other ways of doing it....

 

MAny thanks in advance

 

4 REPLIES 4
v-micsh-msft
Community Support
Community Support

Please take a try to switch the Button to a Dropdown control (Name it to MonthDropdown), with the items property set to:

[0,1,2,3,4,5,6,7,8,9,10,11,12]

Then modify the items property of the Gallery control as below:

If(MonthDropdown.Selected.Value=0,
DataSource,
Filter(DataSource, Month(DateField)=MonthDropdown.Selected.Value)
)

See if doing this would meet your requirements.

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Good morning,

 

Have a look at this blog entry:https://blogs.msdn.microsoft.com/davidni/2016/12/13/building-an-interactive-calendar-view-with-power...

 

I used it myself to create an app where users could enter day-based information. It did involve a lof ot calls to Lookup, to set colors, fonts and such, but it came out pretty nice in the end. When a day is selected, the day information is displayed on the right hand side.

Calendar app built with the blog post at a great startCalendar app built with the blog post at a great start

 

In another app I did things differently; a gallery shows which dates are entered. The user can make a new registration by selecting the date from a Date Picker. To make sure there aren't duplicate entries the Save-button is disabled if there already is a registration for the selected date and user.

 The gallery shows the entries for the selected user. If the selected date already exists the Save-button is disabled.The gallery shows the entries for the selected user. If the selected date already exists the Save-button is disabled.

Those are just two ideas, feel free to get back if you want some more details.

Good luck!

Any reason why the same approach would not work with buttons?

@v-micsh-msft Navigate(BrowseGallery1, Fade) as an action on the button takes me to the screen I want to be on, but I'm not sure what I need next to scroll down the list. Each item in the list has an ID number so could call that. Just not sure of the command

 

On my BrowseScreen in the Body1 field, I have a unique ID, so I could just call for example.....

 

Navigate(BrowseGallery1, Fade,Body1=46)

 

46 is the first day of September for example... what commands am I missing?

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (1,964)