Quantcast
Channel: jQuery Library for SharePoint Web Services
Viewing all articles
Browse latest Browse all 6517

Commented Issue: SPCascadedDropdowns and content types [10120]

$
0
0
Hi,

I encountered a problem with SPCascadedDropdowns where it didn't seem to correctly identify "required" columns in a list with multiple content types. As a result, the child dropdown is populated with a "(None)" value and if the form is submitted with this value in the column, it shows the dreaded "An unexpected error has occurred" page. The error logged in the ULS is: System.ArgumentException: Invalid postback or callback argument.

The list I have is configured with multiple content types that have different sets of columns. Some columns exist in one content type but not in others or are required in some content types and are optional in others.

When I step through the SPCascadedDropdowns code, it looks like it doesn't take into account the current content type that is displayed when determining whether the child column is required, because it's making a call to GetList. I haven't used the SP web services much, but would a call to GetListContentType return the correct details for the column and prevent the addition of the "(None)" value?

Thanks.

Peter
Comments: Peter: I think you've spotted a bug, or at least an opportunity for enhancement. I can't recall anyone ever asking about this over the years, but perhaps others have run into the issue and simply not reported it. I've added it to the list of enhancements for the next release. M.

Viewing all articles
Browse latest Browse all 6517

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>