Comments on: SharePoint: Extending the DVWP – Part 20: Cascading Dropdowns – Applying the jQuery http://www.endusersharepoint.com/2010/07/20/sharepoint-extending-the-dvwp-%e2%80%93-part-20-cascading-dropdowns-applying-the-jquery/ No GeekSpeak on SharePoint 2007 WSS and MOSS Mon, 27 Dec 2010 21:17:12 -0500 http://wordpress.org/?v=2.8.6 hourly 1 By: Jim Bob Howard http://www.endusersharepoint.com/2010/07/20/sharepoint-extending-the-dvwp-%e2%80%93-part-20-cascading-dropdowns-applying-the-jquery/comment-page-1/#comment-104297 Jim Bob Howard Thu, 07 Oct 2010 12:50:20 +0000 http://www.endusersharepoint.com/?p=8920#comment-104297 Dear Reid, I will have to defer your question to Marc Anderson, the author of the SPServices library, who can more adeptly answer questions about special circumstances when using his library. (Heck, I couldn't have done it without his indepth help!) http://spservices.codeplex.com/discussions Blessings, Jim Bob Dear Reid,

I will have to defer your question to Marc Anderson, the author of the SPServices library, who can more adeptly answer questions about special circumstances when using his library. (Heck, I couldn’t have done it without his indepth help!)

http://spservices.codeplex.com/discussions

Blessings,
Jim Bob

]]>
By: Reid http://www.endusersharepoint.com/2010/07/20/sharepoint-extending-the-dvwp-%e2%80%93-part-20-cascading-dropdowns-applying-the-jquery/comment-page-1/#comment-104173 Reid Wed, 06 Oct 2010 18:28:45 +0000 http://www.endusersharepoint.com/?p=8920#comment-104173 First off, this forum and article are EXTREMELY helpful, so thank you everyone for the good questoins and very helpful replies. Now onto the question at hand... I have a top dropdown (the one which is cascading the value) which I want to control multiple dropdowns below, rather than just one. Also, the lists in each of the following dropdowns are the same to allow the user to select, so there will not be a country -> state -> city type association. Just a simple country -> state, country -> state, etc association. I know I can allow for multiple selections, but for each selection I have another associated field which collects some information regarding the "state" selection. How can I get the top dropdown to affect the dropdowns below it? Thanks! First off, this forum and article are EXTREMELY helpful, so thank you everyone for the good questoins and very helpful replies.

Now onto the question at hand…
I have a top dropdown (the one which is cascading the value) which I want to control multiple dropdowns below, rather than just one. Also, the lists in each of the following dropdowns are the same to allow the user to select, so there will not be a country -> state -> city type association. Just a simple country -> state, country -> state, etc association. I know I can allow for multiple selections, but for each selection I have another associated field which collects some information regarding the “state” selection. How can I get the top dropdown to affect the dropdowns below it?

Thanks!

]]>
By: Hec http://www.endusersharepoint.com/2010/07/20/sharepoint-extending-the-dvwp-%e2%80%93-part-20-cascading-dropdowns-applying-the-jquery/comment-page-1/#comment-94926 Hec Tue, 17 Aug 2010 13:14:35 +0000 http://www.endusersharepoint.com/?p=8920#comment-94926 Thanks for the reply. Is there a way only to load the jquery webservice only if the dropdown is selected and not on the page load? Thanks again. Hector Thanks for the reply. Is there a way only to load the jquery webservice only if the dropdown is selected and not on the page load?

Thanks again.
Hector

]]>
By: Marc D Anderson http://www.endusersharepoint.com/2010/07/20/sharepoint-extending-the-dvwp-%e2%80%93-part-20-cascading-dropdowns-applying-the-jquery/comment-page-1/#comment-94924 Marc D Anderson Tue, 17 Aug 2010 13:09:44 +0000 http://www.endusersharepoint.com/?p=8920#comment-94924 ...and continuing... There's a performance penalty for using this logic, but it almost guarantees that you will have good data in your list. For that reason, I see the performance hit as acceptable. Keep in mind that the more related cascades you have and the higher up the chain you make a change, the more Web Services calls SPServices will make. M. …and continuing…

There’s a performance penalty for using this logic, but it almost guarantees that you will have good data in your list. For that reason, I see the performance hit as acceptable. Keep in mind that the more related cascades you have and the higher up the chain you make a change, the more Web Services calls SPServices will make.

M.

]]>
By: Marc D Anderson http://www.endusersharepoint.com/2010/07/20/sharepoint-extending-the-dvwp-%e2%80%93-part-20-cascading-dropdowns-applying-the-jquery/comment-page-1/#comment-94923 Marc D Anderson Tue, 17 Aug 2010 13:04:56 +0000 http://www.endusersharepoint.com/?p=8920#comment-94923 Hec: Jim Bob passed your question over to me. (I answer questions about SPServices as quickly as I can if you post them on http://spservices.codeplex.com, too.) You've guessed right that SPServices is doing Web Services calls to get the info from the related lists. That's the only way it can work M. Hec:

Jim Bob passed your question over to me. (I answer questions about SPServices as quickly as I can if you post them on http://spservices.codeplex.com, too.)

You’ve guessed right that SPServices is doing Web Services calls to get the info from the related lists. That’s the only way it can work

M.

]]>
By: Hec http://www.endusersharepoint.com/2010/07/20/sharepoint-extending-the-dvwp-%e2%80%93-part-20-cascading-dropdowns-applying-the-jquery/comment-page-1/#comment-94856 Hec Tue, 17 Aug 2010 03:45:54 +0000 http://www.endusersharepoint.com/?p=8920#comment-94856 We have Jquery working on our site, but we have some serious issues with load times for NewForm and EditForm. After analysis, it appears that the JQUERY is slowing the pages down by 4 to 5 seconds. We have 2 sets of cascading dropdowns - a 4 tier set and a 2 tier set. Any ideas on why jquery is doing this? Analyzing this using http watch, it appears that the JQUERY is doing postbacks. I'm assuming that Jquery is making webservice calls which is the bottleneck. We have Jquery working on our site, but we have some serious issues with load times for NewForm and EditForm. After analysis, it appears that the JQUERY is slowing the pages down by 4 to 5 seconds. We have 2 sets of cascading dropdowns – a 4 tier set and a 2 tier set. Any ideas on why jquery is doing this? Analyzing this using http watch, it appears that the JQUERY is doing postbacks. I’m assuming that Jquery is making webservice calls which is the bottleneck.

]]>
By: Jim Bob Howard http://www.endusersharepoint.com/2010/07/20/sharepoint-extending-the-dvwp-%e2%80%93-part-20-cascading-dropdowns-applying-the-jquery/comment-page-1/#comment-91665 Jim Bob Howard Fri, 06 Aug 2010 12:36:16 +0000 http://www.endusersharepoint.com/?p=8920#comment-91665 You're very welcome! I look forward to hearing how it works out. If you get stumped, don't forget to jump over to <b>Stump the Panel</b> (http://www.EndUserSharePoint.com/STP) and let's talk it out. Blessings, Jim Bob You’re very welcome!

I look forward to hearing how it works out. If you get stumped, don’t forget to jump over to Stump the Panel (http://www.EndUserSharePoint.com/STP) and let’s talk it out.

Blessings,
Jim Bob

]]>
By: TomW http://www.endusersharepoint.com/2010/07/20/sharepoint-extending-the-dvwp-%e2%80%93-part-20-cascading-dropdowns-applying-the-jquery/comment-page-1/#comment-91664 TomW Fri, 06 Aug 2010 12:33:46 +0000 http://www.endusersharepoint.com/?p=8920#comment-91664 Jim Bob Yes this helps > Will need to experiment .. the auto polpulate will feed off from a sharepoint list that has X columns that has been extracted from SAP / XRPM. So this classification would be both for the Project side/ Production support and the Production Acceptance docs. They are looking to be able to search by the above metadata properties.. And yes we will be using content type for the different project documents. Thanks again for quick repsonses!!! Jim Bob

Yes this helps > Will need to experiment .. the auto polpulate will feed off from a sharepoint list that has
X columns that has been extracted from SAP / XRPM. So this classification would be both for
the Project side/ Production support and the Production Acceptance docs. They are looking to be able
to search by the above metadata properties.. And yes we will be using content type for the different project documents. Thanks again for quick repsonses!!!

]]>
By: Jim Bob Howard http://www.endusersharepoint.com/2010/07/20/sharepoint-extending-the-dvwp-%e2%80%93-part-20-cascading-dropdowns-applying-the-jquery/comment-page-1/#comment-91658 Jim Bob Howard Fri, 06 Aug 2010 12:07:38 +0000 http://www.endusersharepoint.com/?p=8920#comment-91658 Dear Tom, Of course, you can autopopulate just about anything as long as it makes sense. For example, for Full-Time Employee example I'm using in this series, I autopopulate a few things on insert based on where the user is coming from. Because I want the respective manager for each location to only update their own employees, I created individualized pages for each location. (The managers have access to all of them, which allows them to easily transfer employees among locations.) Each page filters on its location, so on insert, I autopopulate the location w/ jQuery. Also, there are a couple of different "types" of employees that are grouped separately for reporting purposes: FTE (full-time employees), PRN, Other (PT, Temp, Float, etc.) On each page, I separate these out further into their own DVWPs and then stack them with Christophe Humbert's EasyTabs. So again, depending on which tab they're on, I autopopulate for that tab. So, I could see in your case that you'll be working within a Project (so that can be autopopulated) on a particular WBS, Line of business, PM, etc. section so you can autopopulate those, too. Additionally, if you're using content types for the Doc Lib, you can default metadata for that CT... Does that help? Blessings, Jim Bob Dear Tom,

Of course, you can autopopulate just about anything as long as it makes sense.

For example, for Full-Time Employee example I’m using in this series, I autopopulate a few things on insert based on where the user is coming from. Because I want the respective manager for each location to only update their own employees, I created individualized pages for each location. (The managers have access to all of them, which allows them to easily transfer employees among locations.)

Each page filters on its location, so on insert, I autopopulate the location w/ jQuery. Also, there are a couple of different “types” of employees that are grouped separately for reporting purposes: FTE (full-time employees), PRN, Other (PT, Temp, Float, etc.) On each page, I separate these out further into their own DVWPs and then stack them with Christophe Humbert’s EasyTabs. So again, depending on which tab they’re on, I autopopulate for that tab.

So, I could see in your case that you’ll be working within a Project (so that can be autopopulated) on a particular WBS, Line of business, PM, etc. section so you can autopopulate those, too. Additionally, if you’re using content types for the Doc Lib, you can default metadata for that CT…

Does that help?

Blessings,
Jim Bob

]]>
By: TomW http://www.endusersharepoint.com/2010/07/20/sharepoint-extending-the-dvwp-%e2%80%93-part-20-cascading-dropdowns-applying-the-jquery/comment-page-1/#comment-91642 TomW Fri, 06 Aug 2010 11:03:11 +0000 http://www.endusersharepoint.com/?p=8920#comment-91642 Nice posts here.. Following the questions.. using the jquery in the above how could it be used to autopopulate metadata properties. For example, I will have a project doc lib, there will be different docs proposal, sows, design / requirements. We want to classify the docs using COBIT standards + some internal metadata such ProjectName, WBS, Line of Business, PM, etc. Given, the number of docs that is required over the project life cycle it would be a burden on the PM to keep entering the metadata properties for each doc.. Would be possible to autopopulate these ? Thanks TomW Nice posts here.. Following the questions.. using the jquery in the above how could it be used to autopopulate metadata properties. For example, I will have a project doc lib, there will be different docs
proposal, sows, design / requirements. We want to classify the docs using COBIT standards + some internal metadata such ProjectName, WBS, Line of Business, PM, etc. Given, the number of docs that is required over the project life cycle it would be a burden on the PM to keep entering the metadata properties for each doc.. Would be possible to autopopulate these ?
Thanks TomW

]]>