Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>David:</p> <p>You really should have asked this on the <a href="http://spservices.codeplex.com/discussions" rel="nofollow">SPServices site in the Discussions</a> to start with!</p> <p>What you are showing in your code above isn't necessary. If you make the two calls to SPCascadeDropdowns in the order you show, then you don't need </p> <pre><code>CAMLQuery: "&lt;Eq&gt;&lt;FieldRef Name='Unit'/&gt;&lt;Value Type='Text'&gt;Unit 1&lt;/Value&gt;&lt;/Eq&gt;" </code></pre> <p>That's how the cascading works. The first call will limit the Departments to those that are in the selected Unit on selection of Unit. The second call will limit the Assets to those that are in the selected Department on selection of Department.</p> <p>If you aren't getting the results you expect, then your relationshipLists may not have the values in them that you need.</p> <p>M.</p> <p>Edit based on additional info about the list contents:</p> <p>It's definitely a data problem. You are combining relationships in the Department list and the Assets list. You should have these lists:</p> <ul> <li>Departments -- Each Department in the list exactly once.</li> <li>Units -- Each Unit in the list exactly once, with a column as a lookup to Title in Department indicating that Unit's Department.</li> <li>Assets -- Each Asset in the list exactly once, with a column as a lookup to Title in Units indicating that Asset's Unit.</li> </ul> <p>This makes your lists truly relational and then the calls to SPCascadeDropdowns will do what you want, just as in the example in the docs for Country/Region/State/City.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload