Stump the Panel: SharePoint Q&A

Immediate solutions for common SharePoint questions
It is currently Sat May 18, 2013 5:37 pm

All times are UTC - 5 hours [ DST ]


Forum rules


What you are viewing is an archive of Stump the Panel. It remains for reference purposes. Please post all new questions on NothingButSharePoint.com
https://www.nothingbutsharepoint.com/sites/eusp/Forum



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Cascading Dropdown Lists with Unique Values
PostPosted: Wed Mar 30, 2011 8:11 am 
Offline

Joined: Tue Mar 29, 2011 3:56 pm
Posts: 1
Hi, first of all I have to say that I'm very new to SharePoint and the use of designer, etc. What I'm trying to do would assist me in creating a pseudo help desk for my department. I am an administrator on the sharepoint site but not on the companies servers, etc. I cannot load templates in, etc. Let me explain the issues...

1. I have thousands of "sites" that we manage across the world. My initial thought was to create a page that the user would first select the site type, then country, state, city, address. All of the cascading smaller and smaller to reach what they need. I implemented the cascading dropdown and it works to a point. What it does is shows the site types but then when it gets to states, it does show all the states but not unique values. So there could be 10 CT's, etc. Once you select the state, the same occurs with the City. This is most likely because I'm referring to the larger "sites" list but I cannot create individual lists for Country, State, City. That would be a bear to manage.

The goal would be to show the site types (there are only 3 unique values). Then the country (unique) and so on. By showing the unique values only once would really make it work well.

Below is the code for just the State and City - figured I would start off small:
Code:
<script language="javascript" type="text/javascript" src="Shared%20Documents/jquery-1.4.2.js"></script>
<script language="javascript" type="text/javascript" src="Shared%20Documents/jquery.SPServices-0.6.0.min.js"></script>
<script language="javascript" type="text/javascript">
   $(document).ready(function() {
      $().SPServices.SPCascadeDropdowns({
         relationshipList: "Sites",
         relationshipListParentColumn: "State",
         relationshipListChildColumn: "City",
         relationshipListSortColumn: "ID",
         parentColumn: "State",
         childColumn: "City",
         debug: true
      });
      $().SPServices.SPCascadeDropdowns({
         relationshipList: "Sites",
         relationshipListParentColumn: "City",
         relationshipListChildColumn: "Street",
         parentColumn: "City",
         childColumn: "Street Address",
         debug: true
      });
   });
</script>


2. The other thought I had was to create a webpart on the main page, where the sorting of the sites could be done. Then a checkbox or button where the user would select the site and then be able to enter the "service" in another form. The problem is I don't know how to do this -- I tried thinking I could pass the site's variables to the service form, etc. but just couldn't wrap my head around it. If anyone could provide a link to a site that could walk me through explaining, that would be great.

Thanks to everyone. Sorry for so many issues but I figured I would throw it out there and see if anyone has any suggestions or perhaps they have a similar issue they're working on.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group