cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ezi79
Helper I
Helper I

Combo box default value not displaying edit From

Hi 

I need help with combo box issue 

I got massive form and it contains over 22 person fields.

I am storing person Display Name and  email   in different SP list. My main list storing the person display name in  a text filed because of the SP limitation on choice columns.

 

I used Combobox in my app to select person

 

When I create new item I can select the person  from my SP person list and can save to main SP list as a text ok 

 

When I try to edit the item all person fields in PA (Combo box fields) are empty. How do I set to default or default selected Items property for combo box so when i choose edit it displays the selected item from gallery?

I set to combo box properties as follows ;

Default : LookUp(PeopleChoices, Lower(Person.Email)=Lower(Parent.Default))

DefaultSelectedItems: LookUp(PeopleChoices, Lower(Person.Email)=Lower(Parent.Default))

Items :Filter(PeopleChoices, Role="PresenterLUX")

Combo datacard Update:  cPLUX.Selected.'Display Name'

 

Any help would be appreciated 

1 ACCEPTED SOLUTION

Accepted Solutions
RandyHayes
Super User III
Super User III

@ezi79 

Your problem is...you are storing the Display Name in your column not the email.  So, your DefaultSelectedItems (DSI) will never match.  By the way, you can get rid of the Default formula, it does nothing on a Combobox.

 

Change your DSI property to:

    DefaultSelectedItems: LookUp(PeopleChoices, Lower(Person.DisplayName)=Lower(Parent.Default))

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

2 REPLIES 2
RandyHayes
Super User III
Super User III

@ezi79 

Your problem is...you are storing the Display Name in your column not the email.  So, your DefaultSelectedItems (DSI) will never match.  By the way, you can get rid of the Default formula, it does nothing on a Combobox.

 

Change your DSI property to:

    DefaultSelectedItems: LookUp(PeopleChoices, Lower(Person.DisplayName)=Lower(Parent.Default))

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

@RandyHayes 

Thank you very much for your help .I actually decided to store the person email address in my main SP list and I changed the formula as; 

Update property of the data card to cPLUX.Selected.Email

DefaultSelectedItems to LookUp(PeopleChoices,Lower(Person.Email)=(Lower(Parent.Default)))

 

I got delegation problem . Any ideas how to resolve it?

 

I guess my other question is , is there any other way of how to display person columns from another list  and save it to different SP list as email?

 

 

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

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

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.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,181)