ChildColumns is null when the list item is saved

Apr 29, 2015 at 4:45 PM
Iam using

<script language="javascript" type="text/javascript" src="http://code.jquery.com/jquery-1.11.1.js"></script>
<script language="javascript" type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery.SPServices/2014.02/jquery.SPServices-2014.02.js"></script>

Its in list newform and when i click save iam getting error Childcolumn is null in the jquery.SPServices at line 1533 childColumns.push(childColumn);

What could be the problem. i have checked the newform the childcolumn is there.
Coordinator
Apr 29, 2015 at 5:05 PM
It's hard to say with the info you've provide above. I'd suggest checking the column names in your call to SPCascadeDropdowns.

M.
Apr 29, 2015 at 6:50 PM
Edited Apr 29, 2015 at 6:51 PM
Hi Marc,

Here is my code.

The cascading function works perfectly and i checked there is no error in childcolumn.
<script language="javascript" type="text/javascript" src="http://code.jquery.com/jquery-1.11.1.js"></script>
<script language="javascript" type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery.SPServices/2014.02/jquery.SPServices-2014.02.js"></script>
  <script language="javascript" type="text/javascript">
   $(document).ready(function () {
   var url = _spPageContextInfo.siteServerRelativeUrl;
          $().SPServices.SPCascadeDropdowns({
              relationshipList: "Invoices",
              relationshipListParentColumn: "SupplierDocumentNumber",
              relationshipListChildColumn: "AccountingUnit",
              parentColumn: "Belegnummer",
              childColumn: "Buchungskreis",
              debug: true
          });
          $().SPServices.SPCascadeDropdowns({
              relationshipWebURL: url,
              relationshipList: "CostCentre",
              relationshipListParentColumn: "AccountingUnit",
              relationshipListChildColumn: "CostCentreID",
              parentColumn: "Buchungskreis",
              childColumn: "Kostenstelle",
              debug: true
          });
          $().SPServices.SPCascadeDropdowns({
              relationshipWebURL: url,
              relationshipList: "ImpersonalAccount",
              relationshipListParentColumn: "AccountingUnit",
              relationshipListChildColumn: "ImpersonalAccountID",
              parentColumn: "Buchungskreis",
              childColumn: "Sachkonto",
              debug: true
          });

      });
</script>
The error iam getting is appearing when i click the save button.
Coordinator
Apr 29, 2015 at 7:20 PM
If "The cascading function works perfectly", then I'm a little lost as to what the problem is. SPServices isn't doing anything when you click save.

M.