Build React Native App (4) - Redux, Jest, and NativeBase

I tried show data from Filter, but having hard time to display this data to text or label box. This will show you how to do it.
The return result from Lookup, Filter or Search is table type and this can't be diplayed directly to the text or label box. To show this you will need to specify the record which you want to display.
First and Last return a single record. FirstN and LastN return a table, even if you specify only a single record.
ClearCollect(UserList, {UserGUID:"aee0a56c-0002-49b8-84df-fbb0c3f6470f", UserEmail:"myemail@domain.com"} )
From Text or Label box, go to the Text Property from Advanced and enter below code to show UserGUID
# Compare with staic value
First(Filter(UserList, UserEmail=myemail@domain.com)).UserGUID
#Compare with current user logged in to the PowerApp
First(Filter(UserList, UserEmail=User().Email)).UserGUID
It took one full day to understand the error message and I wish this post saves someone's time
Comments
Post a Comment