cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ValerieAn
Regular Visitor

Set Calender (Screen 1) as default when open app

Hello Experts,

 

Is it possible to the default to screen 1(attached) when you open the calendar app? Rather than seeing the blank screen that only shows the drop down, We want the Calendar with as the default screen. 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
ValerieAn
Regular Visitor

I was able to correct it to:

 

Set(_userDomain, Right(User().Email, Len(User().Email) - Find("@", User().Email)));
Set(_dateSelected, Today());
Set(_firstDayOfMonth, DateAdd(Today(), 1 - Day(Today()), Days));
Set(_firstDayInView, DateAdd(_firstDayOfMonth, -(Weekday(_firstDayOfMonth) - 2 + 1), Days));
Set(_lastDayOfMonth, DateAdd(DateAdd(_firstDayOfMonth, 1, Months), -1, Days)));
Set(_calendarVisible, false);
Set( _myCalendar,
LookUp( Office365Oulook.CalendarGetTables().value, DisplayName = "Calendar"));
Set(_minDate, DateAdd(_firstDayOfMonth, -(Weekday(_firstDayOfMonth) - 2 + 1), Days));
Set(_maxDate, DateAdd(DateAdd(_firstDayOfMonth, -(Weekday(_firstDayOfMonth) - 2 + 1), Days), 40, Days));
ClearCollect(MyCalendarEvents, Office365Outlook.GetEventsCalendarViewV2(_myCalendar.Name, Text(_minDate, UTC), Text(_maxDate, UTC)).value);
Set(_calendarVisible, true)

 

View solution in original post

5 REPLIES 5
WarrenBelz
Super User III
Super User III

Hi @ValerieAn ,

I am not familiar with the App, but you just need to put at App OnStart

Navigate(YourScreenName)

 (replace with actual screen name)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Thank you @WarrenBelz for your suggestion. That solution was not successful for me.

 

I tried this this formula in the OnStart field but it did not work as well due to some errors. Not sure what is incorrect.

 

Set( _userDomain, Right( User().Email, Len( User().Email ) - Find( "@", User().Email ) ) );
Set( _dateSelected, Today() );
Set( _firstDayOfMonth, DateAdd( Today(), 1 - Day( Today() ), Days ) );
Set( _firstDayInView,
DateAdd( _firstDayOfMonth, -( Weekday( _firstDayOfMonth) - 2 + 1 ), Days )
);
Set( _lastDayOfMonth, DateAdd( DateAdd( _firstDayOfMonth, 1, Months ), -1, Days ) );
Set( _calendarVisible, false );
Set( _myCalendar,
LookUp( Office365.CalendarGetTables().value, DisplayName = "Calendar" )
);
Set( _minDate,
DateAdd( _firstDayOfMonth, -( Weekday(_firstDayOfMonth) - 2 + 1 ), Days )
);
Set( _maxDate,
DateAdd(
DateAdd( _firstDayOfMonth, -( Weekday(_firstDayOfMonth) - 2 + 1 ), Days ),
40,
Days
)
);
ClearCollect( MyCalendarEvents,
Office365.GetEventsCalendarViewV2(_myCalendar.Name,
Text(_minDate, UTC ),
Text(_maxDate, UTC )
).value
);
Set( _calendarVisible, true )

ValerieAn
Regular Visitor

I was able to correct it to:

 

Set(_userDomain, Right(User().Email, Len(User().Email) - Find("@", User().Email)));
Set(_dateSelected, Today());
Set(_firstDayOfMonth, DateAdd(Today(), 1 - Day(Today()), Days));
Set(_firstDayInView, DateAdd(_firstDayOfMonth, -(Weekday(_firstDayOfMonth) - 2 + 1), Days));
Set(_lastDayOfMonth, DateAdd(DateAdd(_firstDayOfMonth, 1, Months), -1, Days)));
Set(_calendarVisible, false);
Set( _myCalendar,
LookUp( Office365Oulook.CalendarGetTables().value, DisplayName = "Calendar"));
Set(_minDate, DateAdd(_firstDayOfMonth, -(Weekday(_firstDayOfMonth) - 2 + 1), Days));
Set(_maxDate, DateAdd(DateAdd(_firstDayOfMonth, -(Weekday(_firstDayOfMonth) - 2 + 1), Days), 40, Days));
ClearCollect(MyCalendarEvents, Office365Outlook.GetEventsCalendarViewV2(_myCalendar.Name, Text(_minDate, UTC), Text(_maxDate, UTC)).value);
Set(_calendarVisible, true)

 

View solution in original post

@ValerieAn ,

I am not sure how that relates to your question about screen navigation, but glad you got it working.

Hello @WarrenBelz 

 

Thank you for your help. Your solution was helpful but because the calendar was based on selection, it still did not pull all the components on the calendar to the default screen like in the screen shot. The solution that worked was from Microsoft with a few corrections. I do appreciate your response.

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.

Carousel April Dunnam Updated 768x460.jpg

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Top Solution Authors
Top Kudoed Authors
Users online (2,110)