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

O360 AD User Search No Longer Blank by Default?

I have built an app that our HR uses to alert IT about a new employee. It includes an AD lookup for HR to select the new employee's manager.

 

The app has a label field called ManagerName with Text property = UserList_1.Selected.DisplayName. UserList_1 is a gallery with Items property = Office365Users.SearchUser({searchTerm: SearchManager.Text}) and the Default property = Blank().

 

Up until a few days ago, the ManagerName label was blank when the app was first launched, and only had a name once someone was selected from the gallery. However, after I edited a different part of the app on Monday and save/published the changes, now the ManagerName label field has the first person in the gallery's name in it when the app is launched. How can I get this back to being blank until the HR person actually selects someone from the gallery?

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Based on my experience,  the default value of the Gallery.Selected should be the first item if there is no user selection.

How about changing the Default property to

""
instead of

Blank()

?

If that will not work, then please consider switch the Default property to a variable, and update teh variable value with the Gallery.selected under the OnSelect property within an icon configured inside the Gallery.

And under the OnVisible property of the screen, update the Variable value to blank() or "", doing it in this way should be able to have the ManagerName to show blank() if no user interactions.

 

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.

View solution in original post

1 REPLY 1
Community Support
Community Support

Based on my experience,  the default value of the Gallery.Selected should be the first item if there is no user selection.

How about changing the Default property to

""
instead of

Blank()

?

If that will not work, then please consider switch the Default property to a variable, and update teh variable value with the Gallery.selected under the OnSelect property within an icon configured inside the Gallery.

And under the OnVisible property of the screen, update the Variable value to blank() or "", doing it in this way should be able to have the ManagerName to show blank() if no user interactions.

 

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.

View solution in original post

Helpful resources

Announcements
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (5,242)