0

Many similar questions have been asked but none seem to work.

I have Sharepoint 2010 and I have jquery-1.9.1.min and jquery.SPServices-0.7.2.min loaded into my parent site's Shared Documents. It seems to be loading them properly.

I've tried the most simplistic example and I'm still get the following error. "Message: 'childColumnStatic' is undefined"

Here is the code I added into the header.

<script language="javascript" type="text/javascript" src="/Franchising/Shared%20Documents/jquery-1.9.1.min.js"></script>
<script language="javascript" type="text/javascript" src="/Franchising/Shared%20Documents/jquery.SPServices-0.7.2.min.js"></script>

<script language="javascript" type="text/javascript">
    $(document).ready(function() {
        $().SPServices.SPCascadeDropdowns({
            relationshipList: "Product",
            relationshipListParentColumn: "Group",
            relationshipListChildColumn: "Title",
            parentColumn: "Group",
            childColumn: "Product",
            debug: true
        }); 
    });
</script>

I created the following tables.
Parent List: Group
1 Column: Title(single line Text)

Child List: Product
2 Columns:Title(Single line text), Group(Lookup of Parent list)

Main List: Sample
3 Columns: Title(Single line text), Group(Lookup to Parent List), Product(Lookup to Child List)

I have been referencing this also. http://spservices.codeplex.com/wikipage?title=$().SPServices.SPCascadeDropdowns

Thanks you for your help in advance!!

2 Answers 2

1

From their site apparently the version of jQuery you are using does not work with SPServices...

"2013-02-05 - SPServices will not work with jQuery 1.9.1 due to a bug in that release."

SPServices on codeplex

0
0

If you need to use the latest jQuery versions, you can use this utility i just released that doesn't need SPServices anymore.

You can use this utility on webpart pages, aspx pages and forms also.

The link for more details : http://sylvainlancien.blogspot.fr/2013/11/slnspcascadingdropdown-jquery-cascade.html

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.