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

Filtered Power Apps field not saving to Sharepoint List

I have a Power App based on a SharePoint list.  I have a 'Client' field and a 'Property' field.  Both based on another SharePoint List.

The Client looks up and works great, stores the data in the SharePoint list.  The Property works great regarding filtering choices based on the Client chosen.  PROBLEM:  Property value selected is not saving to the SharePoint list.

I am brand new to PowerApps and know just enough to break it.  This is simple, but I don't know what to do here, nor where to place it (Browse screen or Detail screen or Edit screen) - I would think Edit Screen, but not sure.

Data storage sharepoint list: RMS_Contractor_Safety_Reporting

Property field is a Choice field

Cient/Property sharepoint list: Property_Client_data (used to drive Client and Property fields)

 

Property Card info: 

Edit Screen: Property_DataCard2 .Default = ThisItem.Property  

Update = DataCardValue15.Selected

DataCardValue15:  Default = ThisItem.Property  

Items = Filter(Property_Client_data, CLIENT_NA = DataCardValue16.Selected.Value).PropertyName

 

1 ACCEPTED SOLUTION

Accepted Solutions
RandyHayes
Super User
Super User

@tdbishop 

Actually clearer now because if those are the scenarios, then your formula will definitely not be working!!

 

If they are comboboxes, then the Default property on them does nothing!!  Comboboxes expect their defaulting records to be provided in the DefaultSelectedItems property (DSI) only.

 

So, given that you are only dealing with a Choice column, your properties should all be changed to the following:

 

Property_DataCard2:

    Default property: ThisItem.Property

    Update property: DataCardValue15.Selected

DataCardValue15:

    DefaultSelectedItems property: Parent.Default

    Items property: ForAll(Filter(Property_Client_data, CLIENT_NA=DataCardValue16.Selected.Value), {Value: PropertyName})

 

The above change (primarily just to your Items property and DSI property) will provide the proper information for a Choice column.

_____________________________________________________________________________________
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.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
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

4 REPLIES 4
RandyHayes
Super User
Super User

@tdbishop 

Please clarify - you mentioned "Property field is a Choice field" but you also said that "I have a 'Client' field and a 'Property' field.  Both based on another SharePoint List."  So, that implies that it is a Lookup column...is it lookup or choice?

_____________________________________________________________________________________
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.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

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

In the SharePoint list that the data is supposed to store to, they are both choice fields.
In the PowerApp, they are combo box fields, both looking at a SharePoint list that is all text fields from which to filter the data for the combo boxes in the Power App.  Clear as mud? 🙂

 

 

RandyHayes
Super User
Super User

@tdbishop 

Actually clearer now because if those are the scenarios, then your formula will definitely not be working!!

 

If they are comboboxes, then the Default property on them does nothing!!  Comboboxes expect their defaulting records to be provided in the DefaultSelectedItems property (DSI) only.

 

So, given that you are only dealing with a Choice column, your properties should all be changed to the following:

 

Property_DataCard2:

    Default property: ThisItem.Property

    Update property: DataCardValue15.Selected

DataCardValue15:

    DefaultSelectedItems property: Parent.Default

    Items property: ForAll(Filter(Property_Client_data, CLIENT_NA=DataCardValue16.Selected.Value), {Value: PropertyName})

 

The above change (primarily just to your Items property and DSI property) will provide the proper information for a Choice column.

_____________________________________________________________________________________
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.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

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

Worked Beautifully!!  Thanks

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Changes to Ideas Coming

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (1,888)