SPCascadeDropdowns : Child cascaded fields not updated

Apr 4, 2011 at 1:14 PM

Hi,

I have a problem with SPCascadeDropDowns : my four cascaded fields work very nice when i creating a new item.

But when i come back for an update and update only the first cascaded item , other items are not cleared after saving. Others cascaded seem to be refreshed but only at screen.

Is there a workaround or another config to avoid this problem ?

Thanks

Lionel 

Used script:

   <Content xmlns="<!--DATA[ <script" _mce_href="http://schemas.microsoft.com/WebPart/v2/ContentEditor"><![CDATA[<scrip-->http://schemas.microsoft.com/WebPart/v2/ContentEditor"><![CDATA[<script type="text/javascript" src="http://xxxx/JS/jquery-1.5.2.min.js"></script>
<script type="text/javascript" src="http://xxxx/JS/jquery.SPServices-0.6.0.min.js"></script>
<script type="text/javascript">
    $(document).ready(function() {
        $().SPServices.SPCascadeDropdowns({
            relationshipList: "SS Programme",
            relationshipListParentColumn: "Programme",
            relationshipListChildColumn: "Title",
           
            parentColumn: "Programme",
            childColumn: "SS Programme"
        });
        $().SPServices.SPCascadeDropdowns({
            relationshipList: "Activite",
            relationshipListParentColumn: "SSProg",
            relationshipListChildColumn: "Title",
           
            parentColumn: "SS Programme",
            childColumn: "Activite"
        });

        $().SPServices.SPCascadeDropdowns({
            relationshipList: "SS Activite",
            relationshipListParentColumn: "Activite",
            relationshipListChildColumn: "Title",
           
            parentColumn: "Activite",
            childColumn: "SS Activite"
        });

    });
</script>]]></Content>

 

Coordinator
Apr 4, 2011 at 3:39 PM

Lionel:

Have you added the script to both the NewForm.aspx and the EditForm.aspx? I'm also not sure what you mean by "Others cascaded seem to be refreshed but only at screen."

M.

Apr 4, 2011 at 4:14 PM

Hi Marc,

Yes, i'm added the script in the EditForm.aspx too.

My problem : If i come back in edition ( EditForm) and just change the first item "Programme" other fields becomming blank (that nice) but when i click OK to submit , in the allitems liste, only first item have changed (Programme) but all others are inchanged/not updated (SS Programme/Activite/SS activite) .

I wish they were blanked ? I make a mistake ?

thanks

Lionel

 

 

Coordinator
Apr 5, 2011 at 7:46 PM

Hmm. I'm seeing the same thing in a test case I just created. I usually test with the columns being required, so I haven't caught that. I think w're going to have to call that a bug.

M.

Coordinator
Apr 5, 2011 at 7:47 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Coordinator
Jun 17, 2011 at 4:00 AM

Lionel:

I'm sorry it's taken me so long to get to this, but I have a potential fix in the latest alpha (v0.6.2ALPHA4) and I'd really appreciate it if you could test it.

The issue seems to only occur with "complex" dropdowns. By this I mean those with 20+ options, where SharePoint renders the dropdown as a hydrid of input and select elements with script driving things. If you have the issue with either a "simple" dropdown (meaning a plain old select) or a multi-select "dropdown", please let me know.

Thanks,
M.