cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Combobox resets value to null

Hi

 

When I go from Display form to Edit it resets my combobox. i have tried editing the Default value.. but it gives me and error

 

2018-07-19 11_42_07-ActionPlan_GBJ - Saved (Unpublished) - PowerApps.png

 

2018-07-19 11_35_05-ActionPlan_GBJ - Saved (Unpublished) - PowerApps.png

3 REPLIES 3
Jeff_Thorpe
Super User
Super User

If this field is part of a form then you should be able to go into the Fields property of the Form and remove the field then add the field back. This will reset the field the properties, so if you had changed any of the properties you will need to reapply those changes.



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.
v-micsh-msft
Community Support
Community Support

Hi @Anonymous,

 

@Jeff_Thorpe is right. The default behavior of the Combo Box control could be reset by hide/show the corresponding DataCard within the Fields list.

For your reference:

67.PNG

 

Could you please explain a bit for what you would like to achieve here?

 

Basically the Defaultselecteditems property expects a table which contains the records selected from the items configured within the items property of the Combo Box control.

 

If you would like to set default value of the ComBo Box, then you may consider set:

Default property : Parent.Default

DefaultSelectedItems: Table(Parent.Default)

 

And this assume the Assigned to is a lookup (or a person or group ) field, if it is a Text field, then the formula would be a little different.

 

Let me know if you need any further help on this topic.

 

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.
Anonymous
Not applicable

Sorry. Should have clarified something.

 

  1. the App is NOT generated. It's built from scratch.
  2. I need to get data from Office365 users connection.
    1. I need display name & email address.
    2. this data is then stored in an Azure SQL database.
    3. All this is working fine.

My problem is that when I want to edit said plan or instances. the default value is nothing. because I can't get it to take it from the SQL database as Parent.Default

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

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Did you miss the call? Check out the recording here!

Top Solution Authors
Top Kudoed Authors
Users online (19,455)