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

SharePoint Cascading Dropdown

Hi All,

 

i am implementing a cascading dropdown for 3 columns. 
I have 2 List : 

Request List where cascading dropdowns will take place.

Dropdown values where in the values are placed. 
Now, note i have not taken the 3 columns in Request list as lookup to dropdown values but i have taken them as simple choice column. 

As i implemented the dropdowns,everything is working fine until i save the data. 
As i save the data, no value of all the 3 dropdowns is writing/updating to sharepoint list. 
Am i doing some thing wrong? 
Please help me out. 

Code

sort(Distinct('dropdown value',Title),Result) -> 1st column.
Distinct(Filter('dropdown value',Title=datacardvalue12.selected.Result),column2))

Distinct(Filter('dropdown value',column2=datacardvalue25.selected.Result),column2))

 

Can you help me in identifying the issue as i am not able to save the data in the list.

1 ACCEPTED SOLUTION

Accepted Solutions
Anonymous
Not applicable

@yashag2255  i actually changed the whole thing so what i did is i changed the choice column to Single Line of text and changed the control of Single Line Text to Dropdown and then applied the formulas and everything worked fine.
i got the solution from this article.

https://www.itidea.nl/index.php/how-to-create-cascading-drop-downs-using-powerapps/

 

But the only problem i am facing now is to have a find item property like dropdown for the Text box but i cannot get my hands on it.

But i really appreciate your efforts.
If you can help me on the above please do tell me.

View solution in original post

13 REPLIES 13

Hi @Anonymous 

 

What are you passing as the update property of your datacards? I am guessing that the issue is happening because of that.
Since, the columns are of type choice in your Sharepoint, it requires them to be of type record, rather than simply passing a string value.
A simple way would be to use below expression in Update Value of your datacard:
LookUp(Courses,Status.Value = Drodpown1.Selected.Result).Status
If this doesn't solve your issue, which share a bit more about the structure of your SP list and the drop-down data-cards.
 
Hope this Helps!
 
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
Anonymous
Not applicable

@yashag225 i tried the above code but in the update column it is giving an error as i am trying to put int the code it is showing an error, do you need any more information on this?


@yashag2255 wrote:

Hi @Anonymous 

 

What are you passing as the update property of your datacards? I am guessing that the issue is happening because of that.
Since, the columns are of type choice in your Sharepoint, it requires them to be of type record, rather than simply passing a string value.
A simple way would be to use below expression in Update Value of your datacard:
LookUp(Courses,Status.Value = Drodpown1.Selected.Result).Status
If this doesn't solve your issue, which share a bit more about the structure of your SP list and the drop-down data-cards.
 
Hope this Helps!
 
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!


@yashag2255 wrote:

Hi @Anonymous 

 

What are you passing as the update property of your datacards? I am guessing that the issue is happening because of that.
Since, the columns are of type choice in your Sharepoint, it requires them to be of type record, rather than simply passing a string value.
A simple way would be to use below expression in Update Value of your datacard:
LookUp(Courses,Status.Value = Drodpown1.Selected.Result).Status
If this doesn't solve your issue, which share a bit more about the structure of your SP list and the drop-down data-cards.
 
Hope this Helps!
 
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!


@yashag2255 wrote:

Hi @Anonymous 

 

What are you passing as the update property of your datacards? I am guessing that the issue is happening because of that.
Since, the columns are of type choice in your Sharepoint, it requires them to be of type record, rather than simply passing a string value.
A simple way would be to use below expression in Update Value of your datacard:
LookUp(Courses,Status.Value = Drodpown1.Selected.Result).Status
If this doesn't solve your issue, which share a bit more about the structure of your SP list and the drop-down data-cards.
 
Hope this Helps!
 
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!





@Anonymous 

 

Can you post a screenshot of the error that you are getting?

Anonymous
Not applicable

Untitled.png

@Anonymous 

 

Can you please confirm the type of your column "b" in your SP list?
 
Since the update field, requires a value of type record, we cannot pass a string (which I guess is getting passed in your case).
 
As per my example, the Status was a choice column and to get its value we had to use Status.Value, and thats how we are doing the comparison. While passing the Status in update property, it was passed as a record(.status)
 
Please share the structure for your SP list along with the data types.
Anonymous
Not applicable

Okay, so there are 2 List Request List and the data structure is as in below picture. 
Engine Family

Engine Name

Design Phase 3 basic choice Column
Main List where data has to be savedMain List where data has to be saved
Other List which is Reliability Dropdown Value where in the data for cascading dropdown has been stored in three single line text column : 1.Title 2 . b column  3 . c Column
Capture.PNG

Now i am able to populate the values from Title into Engine Family , b into Engine Name and C into Desgin Phase, but not able to write/update it to the list.


@yashag2255 wrote:

@Anonymous 

 

Can you please confirm the type of your column "b" in your SP list?
 
Since the update field, requires a value of type record, we cannot pass a string (which I guess is getting passed in your case).
 
As per my example, the Status was a choice column and to get its value we had to use Status.Value, and thats how we are doing the comparison. While passing the Status in update property, it was passed as a record(.status)
 
Please share the structure for your SP list along with the data types.

 

@Anonymous 

 

The error you got is because "b" column is a single line text and it is not a valid column, inside the edit form that you want to save.
 
So here is what I figured from our conversation till now:
 
Request List 
Engine Family -> Choice -> Populate from Title(Reliability Dropdown Value)
Engine Name -> Choice -> Populate from b(Reliability Dropdown Value)
Design Phase -> Choice -> Populate from c(Reliability Dropdown Value)
 
Please verify all the fields value as below:
 
Engine Family Dropdown(Items) : sort(Distinct('Reliability Dropdown Value',Title),Result)
 
Engine Name Dropdown (Items): Distinct(Filter('Reliability Dropdown Value',Title=datacardvalue12.Selected.Result),b))
 
Design Phase Dropdown(Items): Distinct(Filter('Reliability Dropdown Value',b=datacardvalue25.selected.Result),c))
 
Now the update configurations will be:
 
Engine Family Dropdown(Update) : Lookup('Request List','Engine Family'.Value = datacardvalue12.Selected.Result).'Engine Family'
 
Engine Name Dropdown (Update): Lookup('Request List','Engine Name'.Value = datacardvalue25.selected.Result).'Engine Name'
 
Design Phase Dropdown(Update): Lookup('Request List','Design Phase'.Value = datacardvalue30.selected.Result).'Design Phase'
 
This should update the values in your SP list, if you again see any issue, please reply back with a screenshot, so that we can help you better.
 
Hope this Helps!
 
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
Anonymous
Not applicable

@yashag2255  i have tried your methiod and it is not working for updating the value in list. Also it gives a warning message to me. See the image below.



The warning Message is  : Delegation Warning. The ighlighted part of the formula might not work correctly with Design Phase.Value on large data sets.

 

I hope you are aware that Engine Family,Engine Name,Design Phase columns in Request List are not a lookup to other list but a mere Choice Column. I hope your solution is for that.

Untitled.png

@Anonymous 

 

That's Strange! The same formula works in my case.

Can you please try passing the Update Value as :

Update Property : {Value: datacardvalue12.Selected.Result}

Also, please make sure that "datacardvalue12.Selected.Result" is returning a valid choice, you can verify that by printing it out on a temporary variable.

Please modify this for all the datacards and let me know the results.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Carousel_PP_768x460_Wave2 (1).png

2022 Release Wave 2 Plan

Power Platform release plan for the 2022 release wave 2 describes all new features releasing from October 2022 through March 2023.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Top Solution Authors
Users online (3,815)