Comments on: Create a Polling Web Part with SharePoint Designer and the DVWP http://www.endusersharepoint.com/2010/04/22/create-a-polling-web-part-with-sharepoint-designer-and-the-dvwp/ No GeekSpeak on SharePoint 2007 WSS and MOSS Tue, 26 Apr 2011 13:41:59 -0500 http://wordpress.org/?v=2.8.6 hourly 1 By: Garred http://www.endusersharepoint.com/2010/04/22/create-a-polling-web-part-with-sharepoint-designer-and-the-dvwp/comment-page-1/#comment-141211 Garred Fri, 04 Mar 2011 00:38:58 +0000 http://www.endusersharepoint.com/?p=7395#comment-141211 I'm not sure what I'm missing. I was able to get the survey section to work, but I can't get the graphical summary to show. I added a CEWP and posted the code below into the source editor. Am I missing anything? [code] <!-- Load and display list - jQuery version --> <!-- Questions and comments: [email protected] --> <DIV id="ListPlaceholder"><IMG src="/_layouts/images/GEARS_AN.GIF"></DIV> <script type="text/javascript"> // Paste the URL of the source list below: var SelectedView = "https://focus/Rx/team4/Lists/Team%204%20Surveys/summary.aspx"; $("#ListPlaceholder").load(SelectedView+" #WebPartWPQ2 .ms-listviewtable",function() { $("#ListPlaceholder *").removeAttr("id").removeAttr("onclick").removeAttr("onfocus").removeAttr("onmouseover"); $("#ListPlaceholder a").each(function() { if ($(this).attr("href").indexOf("?") > 0) {$(this).attr("href", $(this).attr("href")+"\&Source="+location.href);} else {$(this).attr("href", $(this).attr("href")+"?Source="+location.href);} }); }); </script> [/code] I’m not sure what I’m missing. I was able to get the survey section to work, but I can’t get the graphical summary to show. I added a CEWP and posted the code below into the source editor. Am I missing anything?

<!-- Load and display list - jQuery version -->  

<!-- Questions and comments: [email protected] -->  

<DIV id="ListPlaceholder"><IMG src="/_layouts/images/GEARS_AN.GIF"></DIV>  

<script type="text/javascript">
 // Paste the URL of the source list below:  

 var SelectedView = "https://focus/Rx/team4/Lists/Team%204%20Surveys/summary.aspx";  

 $("#ListPlaceholder").load(SelectedView+" #WebPartWPQ2 .ms-listviewtable",function() {  

 $("#ListPlaceholder *").removeAttr("id").removeAttr("onclick").removeAttr("onfocus").removeAttr("onmouseover");  

 $("#ListPlaceholder a").each(function() {  

 if ($(this).attr("href").indexOf("?") > 0) {$(this).attr("href", $(this).attr("href")+"\&Source="+location.href);}  

 else {$(this).attr("href", $(this).attr("href")+"?Source="+location.href);}  

 });  

 });  

 </script>
]]>
By: Rashmi http://www.endusersharepoint.com/2010/04/22/create-a-polling-web-part-with-sharepoint-designer-and-the-dvwp/comment-page-1/#comment-140875 Rashmi Wed, 02 Mar 2011 12:12:58 +0000 http://www.endusersharepoint.com/?p=7395#comment-140875 Hii, Ur idea is excellent. This webpart is working f9 but on voting the count of responses is not increasing. The autorefresh interval is set to 15 sec. still it is not showing... Hii,
Ur idea is excellent. This webpart is working f9 but on voting the count of responses is not increasing. The autorefresh interval is set to 15 sec. still it is not showing…

]]>
By: Charul Gupta http://www.endusersharepoint.com/2010/04/22/create-a-polling-web-part-with-sharepoint-designer-and-the-dvwp/comment-page-1/#comment-131886 Charul Gupta Fri, 28 Jan 2011 13:05:19 +0000 http://www.endusersharepoint.com/?p=7395#comment-131886 Hi Pat, I read your article for Create a Polling Web Part with SharePoint Designer and the DVWP,I have tried doing the same but I can't get to the stage where i add the DVWP to the page in Designer but i can’t add my individual question – it just appears as a blank set of ‘id’ ‘modified by’ fields (3 fields in all) and not the question I expected to see. Please do let us know how to solve this. Thanks in advance for your input! Hi Pat,
I read your article for Create a Polling Web Part with SharePoint Designer and the DVWP,I have tried doing the same but I can’t get to the stage where i add the DVWP to the page in Designer but i can’t add my individual question – it just appears as a blank set of ‘id’ ‘modified by’ fields (3 fields in all) and not the question I expected to see.

Please do let us know how to solve this.

Thanks in advance for your input!

]]>
By: Charul Gupta http://www.endusersharepoint.com/2010/04/22/create-a-polling-web-part-with-sharepoint-designer-and-the-dvwp/comment-page-1/#comment-131882 Charul Gupta Fri, 28 Jan 2011 12:54:49 +0000 http://www.endusersharepoint.com/?p=7395#comment-131882 Hi HC, I am also getting the same problem,If you found any solution for the same please mail me ASAP. Thanks Hi HC,

I am also getting the same problem,If you found any solution for the same please mail me ASAP.

Thanks

]]>
By: Tibo http://www.endusersharepoint.com/2010/04/22/create-a-polling-web-part-with-sharepoint-designer-and-the-dvwp/comment-page-1/#comment-120041 Tibo Wed, 22 Dec 2010 13:18:02 +0000 http://www.endusersharepoint.com/?p=7395#comment-120041 great post!! what chages are required to publish this webpart in another site (in the same site collection, of course) ? thanks great post!!
what chages are required to publish this webpart in another site (in the same site collection, of course) ?
thanks

]]>
By: Phrederik http://www.endusersharepoint.com/2010/04/22/create-a-polling-web-part-with-sharepoint-designer-and-the-dvwp/comment-page-1/#comment-119882 Phrederik Tue, 21 Dec 2010 23:01:34 +0000 http://www.endusersharepoint.com/?p=7395#comment-119882 This is great. However, how does one go about changing the text of the questions, once the survey web part has been added to a page?. If you modify the original survey list on the demo pages, the answer choices will update on the web part page, however the question text gets auto generated while using SPD. Just looking for a way to allow the user to change the question text and have it automatically update in the web part without having to rebuild everything. Thanks! This is great. However, how does one go about changing the text of the questions, once the survey web part has been added to a page?. If you modify the original survey list on the demo pages, the answer choices will update on the web part page, however the question text gets auto generated while using SPD. Just looking for a way to allow the user to change the question text and have it automatically update in the web part without having to rebuild everything. Thanks!

]]>
By: venugopal http://www.endusersharepoint.com/2010/04/22/create-a-polling-web-part-with-sharepoint-designer-and-the-dvwp/comment-page-1/#comment-110318 venugopal Thu, 04 Nov 2010 14:39:24 +0000 http://www.endusersharepoint.com/?p=7395#comment-110318 I’d also really like to know how i can make the web part disappear once the user has taken the question, otherwise it stays there and when they try and take it again it throws a big ugly exception! how to solve this problem I’d also really like to know how i can make the web part disappear once the user has taken the question, otherwise it stays there and when they try and take it again it throws a big ugly exception!
how to solve this problem

]]>
By: HC http://www.endusersharepoint.com/2010/04/22/create-a-polling-web-part-with-sharepoint-designer-and-the-dvwp/comment-page-1/#comment-108931 HC Tue, 26 Oct 2010 17:58:26 +0000 http://www.endusersharepoint.com/?p=7395#comment-108931 Great feedback PT! I'd also really like to know how i can make the web part disappear once the user has taken the question, otherwise it stays there and when they try and take it again it throws a big ugly exception! Alternatively if we could make it show the graphical results instead of the poll question that would be the real win Great feedback PT!

I’d also really like to know how i can make the web part disappear once the user has taken the question, otherwise it stays there and when they try and take it again it throws a big ugly exception!

Alternatively if we could make it show the graphical results instead of the poll question that would be the real win

]]>
By: Paul Turner http://www.endusersharepoint.com/2010/04/22/create-a-polling-web-part-with-sharepoint-designer-and-the-dvwp/comment-page-1/#comment-108611 Paul Turner Mon, 25 Oct 2010 16:00:13 +0000 http://www.endusersharepoint.com/?p=7395#comment-108611 Hi, Nice article, it's just worth mentioning though trial and error that if the question doesn't have "Require a response for this question" marked as "Yes", the question itself will not appear in SharePoint Designer when adding the field (step 3e). Hi,

Nice article, it’s just worth mentioning though trial and error that if the question doesn’t have “Require a response for this question” marked as “Yes”, the question itself will not appear in SharePoint Designer when adding the field (step 3e).

]]>
By: HC http://www.endusersharepoint.com/2010/04/22/create-a-polling-web-part-with-sharepoint-designer-and-the-dvwp/comment-page-1/#comment-108532 HC Mon, 25 Oct 2010 09:35:10 +0000 http://www.endusersharepoint.com/?p=7395#comment-108532 Hi all, I can get to the stage where i add the DVWP to the page in Designer but i can't add my individual question - it just appears as a blank set of 'id' 'modified by' fields (3 fields in all) and not the question I expected to see. All I want is to be able to export this web part into my code solution anyway, so if anyone had a working code example that would be much appreciated! Many thanks, HC Hi all,

I can get to the stage where i add the DVWP to the page in Designer but i can’t add my individual question – it just appears as a blank set of ‘id’ ‘modified by’ fields (3 fields in all) and not the question I expected to see.

All I want is to be able to export this web part into my code solution anyway, so if anyone had a working code example that would be much appreciated!

Many thanks,

HC

]]>