multiple Cascading Dropdown

Dec 17, 2009 at 9:22 AM

Hi, when i try this

<script language="javascript" type="text/javascript" src="../../javascript/jquery-1.3.2.min.js"></script>
<script language="javascript" type="text/javascript" src="../../javascript/jquery.SPServices-0.4.1.min.js"></script>

 


<script type="text/javascript">

$(document).ready(function() {


$().SPServices.SPCascadeDropdowns({
  relationshipList: "SystemIDB",
  relationshipListParentColumn: "TypName",
  relationshipListChildColumn: "Title",
  parentColumn: "PrimarySystemType",
  childColumn: "PrimarySystem",
                debug: true
 }); 

});
</script>

or this

<script language="javascript" type="text/javascript" src="../../javascript/jquery-1.3.2.min.js"></script>
<script language="javascript" type="text/javascript" src="../../javascript/jquery.SPServices-0.4.1.min.js"></script>

 


<script type="text/javascript">

$(document).ready(function() {

$().SPServices.SPCascadeDropdowns({
  relationshipList: "SystemtypeIDB",
  relationshipListParentColumn: "Vendor",
  relationshipListChildColumn: "Title",
  parentColumn: "PrimaryManufacturer",
  childColumn: "PrimarySystemType",
                debug: true
 });

});
</script>

 

erverthing works fine , but when i put them together like this:

<script language="javascript" type="text/javascript" src="../../javascript/jquery-1.3.2.min.js"></script>
<script language="javascript" type="text/javascript" src="../../javascript/jquery.SPServices-0.4.1.min.js"></script>

 


<script type="text/javascript">

$(document).ready(function() {

$().SPServices.SPCascadeDropdowns({
  relationshipList: "SystemtypeIDB",
  relationshipListParentColumn: "Vendor",
  relationshipListChildColumn: "Title",
  parentColumn: "PrimaryManufacturer",
  childColumn: "PrimarySystemType",
                debug: true
 });
$().SPServices.SPCascadeDropdowns({
  relationshipList: "SystemIDB",
  relationshipListParentColumn: "TypName",
  relationshipListChildColumn: "Title",
  parentColumn: "PrimarySystemType",
  childColumn: "PrimarySystem",
                debug: true
 }); 

});
</script>

i only get the first cascading to work.

do you have any idea??

 

Coordinator
Dec 17, 2009 at 12:40 PM

semapolix:

This ought to work fine.  Thoughts/questions:

  • Upgrade to v0.4.7.  I've done quite a lot of bug fixes and enhancements between v0.4.1 and v0.4.7.
  • What happens in the latter case? Do you see any JavaScript errors? Does anything appear to happen at all with the PrimarySystemType or PrimarySystem columns due to the second call?

M.

Dec 17, 2009 at 12:55 PM

hi, no i didnt see any javascript errors but

 with 0.4.6 everything works fine.

thx ;-)

Coordinator
Dec 17, 2009 at 8:49 PM

Great! I'd still recommend v0.4.7 over v0.4.6.

M.