cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
BlueJamme
Level: Powered On

Cascading Drop-Down Result not saving

Hi,

 

I hope someone can help me out here. I have a Cascading Drop Down which references a separate data source, filters the records, returns a result and allows the selection of multiple items. It all seems to work perfectly. Unfortunately, when I save the record, it refuses to save the field. All other fields are saved correctly. The formula in the 'Items' variable is:

 

Sort(Distinct(Filter(Schedule,'Project Name'.Value=DataCardValue1.Selected.Value,MilestoneStatus.Value="Closed"),Title),Result)

 

Schedule = other data source

'Project Name' = lookup column in other data source

DataCardValue1 = comparison field

MilestoneStatus = additional filter in other data source

 

As I say, it all works beautifully ... besides being able to save the selected items. Help!

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Cascading Drop-Down Result not saving

Hi  @BlueJamme ,

Could you please share a bit more about your app's configuration?

Which column does the Drop down box (which your Sort formula put on) connect to? A Choice column or LookUp column?

 

Set the Items property of the Drop down box to following (that you mentioned):

Sort(
Distinct(Filter(Schedule,'Project Name'.Value=DataCardValue1.Selected.Value,MilestoneStatus.Value="Closed"),Title),
Result
)

If the Drop down box (which your Sort formula put on) related to a Choice column, please take a try with the following workaround:

Set the Update property of the Data card which contains the Drop down box (which your Sort formula put on) to following:

{
  Value: DropdownBox.Selected.Value
}

Or

{
  Value: DropdownBox.Selected.Result
}

 

If the Drop down box (which your Sort formula put on) related to a LookUp column, please take a try with the following workaround:

Set the Update property of the Data card which contains the Drop down box (which your Sort formula put on) to following:

{
   Id: LookUp('ReferencedSPList', ReferencedColumn = DropdownBox.Selected.Value, ID),
   Value: DropdownBox.Selected.Value 
}

Note: The 'ReferencedSPList' represents the SP list which the LookUp column (DropdownBox related to) references values from. The ReferencedColumn represents the column in 'ReferencedSPList' which the LookUp column (DropdownBox related to) references values from.

Please also check and see if the responses within the following threads would help in your scenario:

https://powerusers.microsoft.com/t5/General-Discussion/Save-Filtered-Lookup-Value-in-List-Custom-For...

 

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Community Support Team
Community Support Team

Re: Cascading Drop-Down Result not saving

Hi  @BlueJamme ,

Could you please share a bit more about your app's configuration?

Which column does the Drop down box (which your Sort formula put on) connect to? A Choice column or LookUp column?

 

Set the Items property of the Drop down box to following (that you mentioned):

Sort(
Distinct(Filter(Schedule,'Project Name'.Value=DataCardValue1.Selected.Value,MilestoneStatus.Value="Closed"),Title),
Result
)

If the Drop down box (which your Sort formula put on) related to a Choice column, please take a try with the following workaround:

Set the Update property of the Data card which contains the Drop down box (which your Sort formula put on) to following:

{
  Value: DropdownBox.Selected.Value
}

Or

{
  Value: DropdownBox.Selected.Result
}

 

If the Drop down box (which your Sort formula put on) related to a LookUp column, please take a try with the following workaround:

Set the Update property of the Data card which contains the Drop down box (which your Sort formula put on) to following:

{
   Id: LookUp('ReferencedSPList', ReferencedColumn = DropdownBox.Selected.Value, ID),
   Value: DropdownBox.Selected.Value 
}

Note: The 'ReferencedSPList' represents the SP list which the LookUp column (DropdownBox related to) references values from. The ReferencedColumn represents the column in 'ReferencedSPList' which the LookUp column (DropdownBox related to) references values from.

Please also check and see if the responses within the following threads would help in your scenario:

https://powerusers.microsoft.com/t5/General-Discussion/Save-Filtered-Lookup-Value-in-List-Custom-For...

 

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

BlueJamme
Level: Powered On

Re: Cascading Drop-Down Result not saving

Hi Kris,

 

Firstly, thanks ever so much! This has taken me on a step from where i was. It IS a lookup column I'm working with so that would explain why it wasn't writing back to SharePoint correctly. I amended the suggested formula slightly as it was a multiple lookup so it needed to return a 'result' rather than a 'value'.

 

The remaining issue I'm having, however, is that when the user goes back in the record to edit, the data field defaults back to empty.

 

Is there a specific amend I would need to make to the 'default' control (currently blank) to ensure that the previous selection endured?

 

Thanks for your help so far!

 

Regards

BlueJamme

BlueJamme
Level: Powered On

Re: Cascading Drop-Down Result not saving

... also (!), I've just received feedback that although multiple items can be selected, only a single item is saved. So perhaps not quite there yet!

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

Top Kudoed Authors
Users Online
Currently online: 79 members 3,992 guests
Please welcome our newest community members: