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?
Solved! Go to Solution.
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
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
User | Count |
---|---|
239 | |
116 | |
94 | |
58 | |
32 |
User | Count |
---|---|
286 | |
132 | |
106 | |
63 | |
57 |