<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SharePoint JavaScripts</title>
	<atom:link href="http://spjsblog.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://spjsblog.com</link>
	<description>JavaScript tricks for SharePoint</description>
	<lastBuildDate>Thu, 16 May 2013 06:34:23 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Dynamic Forms for SharePoint: Now with field tooltip</title>
		<link>http://spjsblog.com/2013/05/06/dynamic-forms-for-sharepoint-now-with-field-tooltip/</link>
		<comments>http://spjsblog.com/2013/05/06/dynamic-forms-for-sharepoint-now-with-field-tooltip/#comments</comments>
		<pubDate>Mon, 06 May 2013 20:57:22 +0000</pubDate>
		<dc:creator>Alexander Bautz</dc:creator>
				<category><![CDATA[Form modification]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SharePoint 2007]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[SharePoint 2013]]></category>
		<category><![CDATA[Utilities]]></category>

		<guid isPermaLink="false">http://spjsblog.com/?p=4618</guid>
		<description><![CDATA[Change log May 16. 2013 Changes in v2.971 Fixed required field check for multichoice columns. This update requires you to update the *.js. May 13. 2013 Changes in v2.97 Fixed missing trigger for Currency field. Added option to initially hide a list of fields. This option is found under the Misc tab. This update requires [...]]]></description>
				<content:encoded><![CDATA[<div style="margin-top:10px;font-size:20px;color:gray;">Change log</div>
<div style="padding:10px;border:2px silver dashed">
<strong>May 16. 2013</strong><br />
Changes in v2.971</p>
<ul>
<li>Fixed required field check for multichoice columns.</li>
</ul>
<p>This update requires you to update the *.js.</p>
<p><strong>May 13. 2013</strong><br />
Changes in v2.97</p>
<ul>
<li>Fixed missing trigger for Currency field.</li>
<li>Added option to initially hide a list of fields. This option is found under the Misc tab.</li>
</ul>
<p>This update requires you to update the *.js.</p>
<p><strong>May 13. 2013</strong><br />
Changes in v2.961</p>
<ul>
<li>Fixed a bug in bringing fields visible when NOT using Tabs.</li>
<li>Cosmetics: Hidden the &#8220;Edit button&#8221; behind an image. Update the CSS file to have it initially hidden.</li>
</ul>
<p>This update requires you to update both the *.js file and the *.css file.</p>
<p><strong>May 10. 2013</strong><br />
Changes in v2.96</p>
<ul>
<li>Disabled the solution when the page is in edit mode to prevent errors.</li>
<li>Fixed a glitch in &#8220;reversing&#8221; rules when using multichoice checkboxes.</li>
<li>Attempted to fix a chrome issue with disappearing scrollbars.</li>
<li>Added an option to include an overlay with &#8220;Loading, please wait&#8230;&#8221; to prevent flashing the unformatted form when loading &#8211; see details below.</li>
</ul>
<p>In this release only the *.js file has changed, but if you want to use the overlay, follow the instructions below.</p>
<p><strong>Overlay</strong><br />
<a href="http://spjsblog.com/wp-content/uploads/2013/05/Overlay_1.png" title="Click to enlarge"><img src="http://spjsblog.com/wp-content/uploads/2013/05/Overlay_1.png" alt="IMG" width="450px" /></a></p>
<p>If you have some errors in your setup, or you do not have the latest version of the DFFS solution (2.96+), you will see this message after 5 seconds:<br />
<a href="http://spjsblog.com/wp-content/uploads/2013/05/Overlay_2.png" title="Click to enlarge"><img src="http://spjsblog.com/wp-content/uploads/2013/05/Overlay_2.png" alt="IMG" width="450px" /></a></p>
<p>To use the overlay, place a HTML Form Web part ABOVE the form, and insert this code:</p>
<pre>&lt;style type="text/css"&gt;
.dffsOverlay{
	font-size:16px;
	padding-top:100px;
	text-align:center;	
	width:100%;
	height:100%;
	background-color:#F5F5F5;
	position:absolute;
	top:0;
	left:0;
	z-index:9999;
	cursor:default;
}
&lt;/style&gt;
&lt;div id='dffs_loadingOverlay' class='dffsOverlay'&gt;Loading, please wait...&lt;/div&gt;
&lt;script type="text/javascript"&gt;
	setTimeout(function(){
		var oDiv = document.getElementById("dffs_loadingOverlay");
		if(oDiv !== null){
			oDiv.innerHTML = "&lt;span style='font-size:20px'&gt;This took forever!&lt;span style='font-size:12px'&gt;&lt;br&gt;&lt;br&gt;Ensure Dynamic Forms for SharePoint v2.96+ is referred correctly.&lt;br&gt;&lt;br&gt;Click to close this overlay.&lt;/span&gt;&lt;/span&gt;";
			oDiv.onclick = function(){
	   			this.parentNode.removeChild(this);
			};
		}
	},5000);
&lt;/script&gt;</pre>
</div>
<div style="margin-top:10px;font-size:20px;color:gray;">The article</div>
<p>I have updated the Dynamic Forms for SharePoint solution and incorporated the <a href="http://spjsblog.com/2012/02/24/form-field-tooltip-for-sharepoint-2007-and-sharepoint-2010/" target="_blank">Form Field Tooltip for SharePoint 2007 and SharePoint 2010</a> solution.</p>
<p>The DFFS solution still supports SharePoint 2007, 2010 and 2013.</p>
<div style="padding:10px;border:2px silver dashed">
Refer these articles for background information and setup instructions:<br />
<a href="http://spjsblog.com/2012/05/29/dynamic-forms-for-sharepoint-production-release/" target="_blank">Dynamic Forms for SharePoint: Production</a><br />
<a href="http://spjsblog.com/2012/08/13/dynamic-forms-for-sharepoint-now-with-tabs/" target="_blank">Dynamic Forms for SharePoint – Now with Tabs</a><br />
<a href="http://spjsblog.com/2013/02/20/dynamic-forms-for-sharepoint-now-with-support-for-sharepoint-2013/" target="_blank">Dynamic Forms for SharePoint: Now with support for SharePoint 2013</a><br />
<a href="http://spjsblog.com/2013/03/28/dynamic-forms-for-sharepoint-now-with-side-by-side/" target="_blank">Dynamic Forms for SharePoint: Now with side-by-side</a>
</div>
<p><strong>New in this release</strong><br />
Added tooltip:<br />
<strong>Config</strong><br />
<a href="http://spjsblog.com/wp-content/uploads/2013/05/DSSF_Tooltip_config.png" title="Click to enlarge"><img src="http://spjsblog.com/wp-content/uploads/2013/05/DSSF_Tooltip_config.png" alt="IMG" /></a><br />
<strong>Form</strong><br />
<a href="http://spjsblog.com/wp-content/uploads/2013/05/DSSF_Tooltip.png" title="Click to enlarge"><img src="http://spjsblog.com/wp-content/uploads/2013/05/DSSF_Tooltip.png" alt="IMG" /></a></p>
<p><strong>Keep focus on tab through DispForm to EditForm</strong><br />
I have rigged it so that you will keep focus on the same tab when you edit a list item from DispForm.</p>
<p><strong>How to update</strong><br />
You must update both the *.js and the *.css file. <a href="http://spjsfiles.com/index.php?dir=SharePoint+JavaScripts%2FDynamicFormsForSharePoint%2F" target="_blank">Get the latest version of the files from here</a></p>
<p>If this is the first time you implement this solution, please start with the first article linked above for setup instructions.</p>
<p><strong>Update spjs-utility.js</strong><br />
You should update spjs-utility.js to v1.15 as I have fixed a bug in &#8220;getFieldValue&#8221; when using &#8220;Allow &#8216;Fill-in&#8217; choices&#8221;.</p>
<p>Please comment below if you find a bug &#8211; or you like this solution.</p>
<p>Alexander</p>
]]></content:encoded>
			<wfw:commentRss>http://spjsblog.com/2013/05/06/dynamic-forms-for-sharepoint-now-with-field-tooltip/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>SharePoint form: present fields side-by-side: Updated version</title>
		<link>http://spjsblog.com/2013/04/04/sharepoint-form-present-fields-side-by-side-updated-version/</link>
		<comments>http://spjsblog.com/2013/04/04/sharepoint-form-present-fields-side-by-side-updated-version/#comments</comments>
		<pubDate>Thu, 04 Apr 2013 20:08:40 +0000</pubDate>
		<dc:creator>Alexander Bautz</dc:creator>
				<category><![CDATA[Form modification]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Requests]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SharePoint 2007]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[SharePoint 2013]]></category>
		<category><![CDATA[Utilities]]></category>

		<guid isPermaLink="false">http://spjsblog.com/?p=4589</guid>
		<description><![CDATA[I have previously posted a solution for presenting form fields side-by-side. This is an updated version derived from the DFFS project. I have made this updated version by request from Steve Eberl because the older version proved incompatible with IE10. Hopefully this new version will be more compatible, but honestly: I have not tested it [...]]]></description>
				<content:encoded><![CDATA[<p>I have previously <a href="http://spjsblog.com/2010/01/28/sharepoint-form-present-fields-side-by-side/" target="_blank">posted a solution</a> for presenting form fields side-by-side.</p>
<p>This is an updated version derived from the <a href="http://spjsblog.com/2013/03/28/dynamic-forms-for-sharepoint-now-with-side-by-side/" target="_blank">DFFS project</a>.</p>
<p>I have made this updated version by request from Steve Eberl because the older version proved incompatible with IE10. Hopefully this new version will be more compatible, but honestly: I have not tested it in IE10, as I have not installed it yet!</p>
<p>I have done some quick tests in SharePoint 2007 and SharePoint 2010. I guess it will work for SharePoint 2013 also, but this has not been confirmed. Please let me know if someone has tested it.</p>
<pre>&lt;script type="text/javascript" src="/test/English/Javascript/jquery-1.6.4.min.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="/test/English/Lists/SideBySide/spjs-utility.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;

spjs_sideBySide = {
	"data":{"css":false},
	"apply":function(fObj,arr){
		var h, b;
		if(!spjs_sideBySide.data.css){
			var cssArr = [];
			cssArr.push("&lt;style type='text/css'&gt;");
			cssArr.push(".sbs_FieldTable td.ms-formbody{border-top:none;width:auto;}");
			cssArr.push(".sbs_FieldTable td.ms-formlabel{border-top-color:#d8d8d8;width:auto;}");
			cssArr.push(".sbs_FieldTable input.ms-long{width:auto;}");
			cssArr.push("&lt;/style&gt;");
			$("body").append(cssArr.join(""));
			spjs_sideBySide.data.css = true;
		}
		$.each(arr,function(i,o){
			if($("#sbs_OuterTR_"+o.index).length===0){
				$(fObj[o.fin]).before("&lt;tr class='sbs_OuterTR' id='sbs_OuterTR_"+o.index+"'&gt;&lt;td valign='top' colspan='2'&gt;&lt;table class='sbs_OuterTable' style='width:100%' cellpadding='0' cellspacing='0'&gt;&lt;tr class='sbs_InnerTR' id='sbs_InnerTR_"+o.index+"'&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;");
			}
			h = $(fObj[o.fin]).css("display") === "none";
			b = [];
			b.push("&lt;td FieldDispName='"+$(fObj[o.fin]).attr('FieldDispName')+"' FieldType='"+$(fObj[o.fin]).attr('FieldType')+"' class='sbs_Field' fin='"+o.fin+"' id='sbs_Field_"+o.fin+"' valign='top' style='white-space:nowrap;");			
			if(h){
				b.push("display:none;");				
			}
			b.push("'&gt;");
			b.push("&lt;table class='sbs_FieldTable' style='width:100%' id='sbs_FieldTable_"+o.fin+"' cellpadding='0' cellspacing='0'&gt;&lt;/table&gt;");
			b.push("&lt;/td&gt;");
			$("#sbs_InnerTR_"+o.index).append(b.join(""));
			if(o.labelHidden){
				$(fObj[o.fin]).find("td.ms-formlabel").hide();
				if(o.padHiddenLabel){
					$("#sbs_FieldTable_"+o.fin).append("&lt;tr class='sbs_FieldLabel' id='sbs_FieldLabel_"+o.fin+"'&gt;&lt;td class='ms-formlabel'&gt;&nbsp;&lt;/td&gt;&lt;/tr&gt;");
				}
			}else{
				$("#sbs_FieldTable_"+o.fin).append("&lt;tr class='sbs_FieldLabel' id='sbs_FieldLabel_"+o.fin+"'&gt;&lt;/tr&gt;");
				$(fObj[o.fin]).find("td.ms-formlabel").appendTo($("#sbs_FieldLabel_"+o.fin));
			}
			$(fObj[o.fin]).appendTo($("#sbs_FieldTable_"+o.fin));
			fObj[o.fin] = $("#sbs_Field_"+o.fin)[0];
			if(h){
				$(fObj[o.fin]).find("td.ms-formbody").parent().show();
			}				
		});
	},
	"resize":function(){
		if(GetUrlKeyValue('IsDlg')!=='1'){
			return;
		}
		if(_spPageContextInfo.webUIVersion === 15){
			ExecuteOrDelayUntilScriptLoaded(function(){
				SP.UI.ModalDialog.get_childDialog().autoSize();
			}, "sp.js");
		}else{
			// http://blog.collabware.com/2012/10/30/tips-tricks-sharepoint-2010-modal-dialogs/
			var dlg = SP.UI.ModalDialog.get_childDialog();
			if(dlg != null) {				
				if(!dlg.$S_0 &#038;&#038; dlg.get_$Z_0()){
					dlg.autoSize();
					var xPos, yPos, win = SP.UI.Dialog.get_$1(), xScroll = SP.UI.Dialog.$24(win), yScroll = SP.UI.Dialog.$26(win);
					xPos = ((SP.UI.Dialog.$1d(win) - dlg.$2_0.offsetWidth) / 2) + xScroll; 
					if (xPos &lt; xScroll + 10) {
						xPos = xScroll + 10;
					}
					yPos = ((SP.UI.Dialog.$1c(win) - dlg.$2_0.offsetHeight) / 2) + yScroll;
					if (yPos &lt; yScroll + 10) {
						yPos = yScroll + 10;
					}
					dlg.$T_0 = xPos;
					dlg.$U_0 = yPos;
					dlg.$m_0(dlg.$T_0, dlg.$U_0);
					dlg.$H_0.style.width = Math.max(dlg.$6_0.offsetWidth - 64, 0) + 'px';
					dlg.$2B_0();
				}
			}
		}
	}
}

var fields = init_fields_v2();
/*
	index: Use the same index for all fields in the same row.
	fin: FieldInternalName of the field.
	labelHidden: Hide form label.
	padHiddenLabel: If labelHidden = true, set this to true to fill the empty space left from the hidden formlabel.
*/

var arr = [
	{"index":"1","fin":"FirstName","labelHidden":false,"padHiddenLabel":true},
	{"index":"1","fin":"MiddleName","labelHidden":false,"padHiddenLabel":true},
	{"index":"1","fin":"LastName","labelHidden":false,"padHiddenLabel":true},
	{"index":"2","fin":"DropDownChoice","labelHidden":false,"padHiddenLabel":true},
	{"index":"2","fin":"RadioButtonsChoice","labelHidden":false,"padHiddenLabel":true},
	{"index":"2","fin":"CheckboxesChoice","labelHidden":false,"padHiddenLabel":true}
];

spjs_sideBySide.apply(fields,arr)
// For SP 2010
spjs_sideBySide.resize();
&lt;/script&gt;</pre>
<p>Please let me know whether it is functioning as expected.</p>
<p>Alexander</p>
]]></content:encoded>
			<wfw:commentRss>http://spjsblog.com/2013/04/04/sharepoint-form-present-fields-side-by-side-updated-version/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dynamic Forms for SharePoint: Now with side-by-side</title>
		<link>http://spjsblog.com/2013/03/28/dynamic-forms-for-sharepoint-now-with-side-by-side/</link>
		<comments>http://spjsblog.com/2013/03/28/dynamic-forms-for-sharepoint-now-with-side-by-side/#comments</comments>
		<pubDate>Wed, 27 Mar 2013 23:08:02 +0000</pubDate>
		<dc:creator>Alexander Bautz</dc:creator>
				<category><![CDATA[Form modification]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Requests]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SharePoint 2007]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[SharePoint 2013]]></category>
		<category><![CDATA[Utilities]]></category>

		<guid isPermaLink="false">http://spjsblog.com/?p=4558</guid>
		<description><![CDATA[Change log May 06. 2013 I have released v2.95 &#8211; you find it here April 28. 2013 Bugfixes in v2.94: Fixed a bug regarding comparing date and time columns where the trigger column is empty. April 14. 2013 Bugfixes in v2.93: Fixed bug in validating required rich text field when using non English letters. Fixed [...]]]></description>
				<content:encoded><![CDATA[<div style="margin-top:10px;font-size:20px;color:gray;">Change log</div>
<div style="padding:10px;border:2px silver dashed">
<strong>May 06. 2013</strong><br />
I have released v2.95 &#8211; <a href="http://spjsblog.com/2013/05/06/dynamic-forms-for-sharepoint-now-with-field-tooltip/">you find it here</a><br />
<strong>April 28. 2013</strong><br />
Bugfixes in v2.94:</p>
<ul>
<li>Fixed a bug regarding comparing date and time columns where the trigger column is empty.</li>
</ul>
<p><strong>April 14. 2013</strong><br />
Bugfixes in v2.93:</p>
<ul>
<li>Fixed bug in validating required rich text field when using non English letters.</li>
<li>Fixed bug where fields appearing in the &#8220;orphan fields tab&#8221; when using Side by Side.</li>
<li>Prevented the ID column from appearing in the &#8220;orphan fields tab&#8221;.</li>
<li>Fixed bug where people pickers lost their value in EditForm in Chrome (and possibly other non-IE browsers).</li>
</ul>
<p>There are changes in both &#8220;DynamicFormsForSharePoint_v2.js&#8221; and &#8220;default.css&#8221; &#8211; ensure you update both.</p>
<p><strong>March 29. 2013</strong><br />
Bugfixes in v2.91:</p>
<ul>
<li>Fixed bug in side-by-side functionality regarding the &#8220;fields&#8221; not getting the correct fieldtype and fielddispname attributes. </li>
<li>Fixed bug where the field label was repeated multiple times when combining side-by-side with readonly, and then switching tab.</li>
</ul>
</div>
<p><strong>I have released version 2.90 of Dynamic Forms for SharePoint with these changes:</strong></p>
<ul style="text-align:left">
<li>Added content type choice as possible trigger field.</li>
<li>Added side-by-sice capabilities.</li>
<li>Fixed a bug where the link to add tabs were missing for the first setup.</li>
<li>Changed the function that dynamically resizes the dialog. This new function is created by Sing Chan, <a href="http://blog.collabware.com/2012/10/30/tips-tricks-sharepoint-2010-modal-dialogs/" title="Collabware Blog" target="_blank">and can be found here</a></li>
<li>Added a fix for some occurrences where the variable L_Menu_LCID was missing in a SP2013 setup.</li>
<li>Fixed a bug in SP.UI.RTE.js that occurs when hiding rich text columns in SP2010. <a href="http://www.sharepointjohn.com/sharepoint-2010-javascript-errors-sp-ui-rte-js-sp-ui-rte-debug-js/" title="John Chapman's SharePoint Blog" target="_blank">The workaround is provided by John Chapman</a>.</li>
</ul>
<p>Refer these articles for background information and setup instructions:<br />
<a href="http://spjsblog.com/2012/05/29/dynamic-forms-for-sharepoint-production-release/" target="_blank">Dynamic Forms for SharePoint: Production</a><br />
<a href="http://spjsblog.com/2012/08/13/dynamic-forms-for-sharepoint-now-with-tabs/" target="_blank">Dynamic Forms for SharePoint – Now with Tabs</a><br />
<a href="http://spjsblog.com/2013/02/20/dynamic-forms-for-sharepoint-now-with-support-for-sharepoint-2013/" target="_blank">Dynamic Forms for SharePoint: Now with support for SharePoint 2013</a></p>
<div style="font-size:16px">How to use the Content type as trigger</div>
<p>In NewForm and DispForm the content type is not visible other than in the URL. You must use the trigger &#8220;URL Query string parameter&#8221;, and &#8220;This value&#8221; like this:</p>
<pre>ContentTypeId=YourContentTypeID</pre>
<p>Please note that the default content type id not always shows up in the URL. If you click the &#8220;New Item&#8221; in the ribbon (in SP2010), it is included, but if you click the &#8220;Add new item&#8221; below the list view, it is not. You should therefore add rules for the &#8220;not default content type&#8221;.</p>
<p><strong>How to find the ContentTypeId</strong><br />
Go to list settings, click the content type you want the id from, and then look at the URL. You will find it like this:</p>
<pre>
ctype=0x010300E461AB843CED5C47B6795DF8C440401A
</pre>
<p>In EditForm, you can select the content type select ine the trigger fields and address it by its display name.</p>
<div style="font-size:16px">Details on the side-by-side functionality</div>
<p><strong>I have added an option to place fields side-by-side in the tabs like this:</strong><br />
<a href="http://spjsblog.com/wp-content/uploads/2013/03/SideBySide_form.png" title="Click to enlarge"><img src="http://spjsblog.com/wp-content/uploads/2013/03/SideBySide_form.png" alt="IMG" /></a></p>
<p><strong>The configuration is setup like this:</strong><br />
<a href="http://spjsblog.com/wp-content/uploads/2013/03/SideBySide_config.png" title="Click to enlarge"><img src="http://spjsblog.com/wp-content/uploads/2013/03/SideBySide_config.png" alt="IMG" /></a></p>
<p>The yellow input fields is used to specify a common index number for the fields that are to be presented side-by-side. The fields will be lined up with the topmost field in the selection.</p>
<p><strong>The checkbox is used to hide the form label for the fields like this:</strong><br />
<a href="http://spjsblog.com/wp-content/uploads/2013/03/SideBySide_form_2.png" title="Click to enlarge"><img src="http://spjsblog.com/wp-content/uploads/2013/03/SideBySide_form_2.png" alt="IMG" /></a></p>
<p>Please consider the side-by-side functionality BETA, and report any bugs back to me by adding a comment below.</p>
<p>Alexander</p>
]]></content:encoded>
			<wfw:commentRss>http://spjsblog.com/2013/03/28/dynamic-forms-for-sharepoint-now-with-side-by-side/feed/</wfw:commentRss>
		<slash:comments>78</slash:comments>
		</item>
		<item>
		<title>vLookup now supports SharePoint 2013</title>
		<link>http://spjsblog.com/2013/03/18/vlookup-now-supports-sharepoint-2013/</link>
		<comments>http://spjsblog.com/2013/03/18/vlookup-now-supports-sharepoint-2013/#comments</comments>
		<pubDate>Mon, 18 Mar 2013 12:30:32 +0000</pubDate>
		<dc:creator>Alexander Bautz</dc:creator>
				<category><![CDATA[CAML Query]]></category>
		<category><![CDATA[Form modification]]></category>
		<category><![CDATA[List view modification]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[SharePoint 2013]]></category>
		<category><![CDATA[Utilities]]></category>

		<guid isPermaLink="false">http://spjsblog.com/?p=4547</guid>
		<description><![CDATA[Change log May 15. 2013 Changes in v1.45 Numbers are now aligned right. May 14. 2013 Changes in v1.44 Added formatter for percentage in the viewfields: {&#8220;percentage&#8221;:true,&#8221;suffix&#8221;:&#8221;%&#8221;} Applied &#8220;toLocaleString&#8221; to numbers that are not formatted as &#8220;percentage&#8221;. May 13. 2013 Changes in v1.43 Fixed bug related to Dynamic Forms for SharePoint and reloading form when [...]]]></description>
				<content:encoded><![CDATA[<div style="margin-top:10px;font-size:20px;color:gray;">Change log</div>
<div style="padding:10px;border:2px silver dashed">
<strong>May 15. 2013</strong><br />
Changes in v1.45</p>
<ul style="text-align:left">
<li>Numbers are now aligned right.</li>
</ul>
<p><strong>May 14. 2013</strong><br />
Changes in v1.44</p>
<ul style="text-align:left">
<li>Added formatter for percentage in the viewfields: {&#8220;percentage&#8221;:true,&#8221;suffix&#8221;:&#8221;%&#8221;}</li>
<li>Applied &#8220;toLocaleString&#8221; to numbers that are not formatted as &#8220;percentage&#8221;.</li>
</ul>
<p><strong>May 13. 2013</strong><br />
Changes in v1.43</p>
<ul style="text-align:left">
<li>Fixed bug related to Dynamic Forms for SharePoint and reloading form when creating a child element.</li>
<li>Fixed a bug regarding prefix and suffix for currency and number columns. Suppresses the prefix / suffix if the field is empty.</li>
</ul>
<p><strong>Added event hooks:</strong></p>
<p>To have something done before a child element is creates, add a function with this name: &#8220;vlookupAddChildPreCheck&#8221;<br />
This function must return true to procede with the add child action.</p>
<p>To have something happen after a child had successfully been added, add a funcion with this name: &#8220;vlookupChildAddedCallback&#8221;<br />
This function must return true to procede with the updating of the &#8220;vLookup child table&#8221; in the form.</p>
<p>To have somethng happen after the vLoolup solution has finished loading the &#8220;Add new item button&#8221;, add a function with this name: &#8220;vLookupIsLoadedCallback&#8221;</p>
</div>
<p>I have upgraded the vLookup solution to support SharePoint 2013. I have not dissected SP2013 fully, and therefore you might find some bugs regarding the SP2013 support. Please post any bugs or suggestions below, and I&#8217;ll address them as soon as I can manage.</p>
<p><a href="http://spjsblog.com/2012/07/21/vlookup-for-sharepoint-2010" target="_blank">Read this article for setup instructions and download instructions</a></p>
<p>Besides adding SP2013 support, his version also features some new features:</p>
<ul style="text-align:left">
<li>Added option to write your own CAML-query freehand</li>
<li>Added dateFormat option to specify the returnvalue for a date and tinme column using a string like this: yyyy-MM-dd HH:mm:ss</li>
</ul>
<p><a href="http://spjsblog.com/wp-content/uploads/2013/03/vLookupSP2013.png" title="Click to enlarge"><img src="http://spjsblog.com/wp-content/uploads/2013/03/vLookupSP2013.png" alt="IMG" /></a></p>
<p>Post any comments below,<br />
Alexander</p>
]]></content:encoded>
			<wfw:commentRss>http://spjsblog.com/2013/03/18/vlookup-now-supports-sharepoint-2013/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>SPJS Charts for SharePoint: Export to Excel and SP2013 support</title>
		<link>http://spjsblog.com/2013/03/11/spjs-charts-for-sharepoint-export-to-excel-and-sp2013-support/</link>
		<comments>http://spjsblog.com/2013/03/11/spjs-charts-for-sharepoint-export-to-excel-and-sp2013-support/#comments</comments>
		<pubDate>Mon, 11 Mar 2013 12:00:10 +0000</pubDate>
		<dc:creator>Alexander Bautz</dc:creator>
				<category><![CDATA[Charts]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SharePoint 2007]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[SharePoint 2010 Client Object Model]]></category>
		<category><![CDATA[SharePoint 2013]]></category>

		<guid isPermaLink="false">http://spjsblog.com/?p=4517</guid>
		<description><![CDATA[A few months ago I received this email from Aymeric: Hi Alexander, I&#8217;ve created a JS API to use with Sharepoint. You may want to have a look at it: http://aymkdn.github.com/SharepointPlus/ I think this library could be useful for some other people. It&#8217;s on GitHub so feel free to share any comments. Thank you, Aymeric [...]]]></description>
				<content:encoded><![CDATA[<p>A few months ago I received this email from Aymeric:</p>
<blockquote><p>
Hi Alexander,</p>
<p>I&#8217;ve created a JS API to use with Sharepoint. You may want to have a look at it: <a href="http://aymkdn.github.com/SharepointPlus/" target="_blank">http://aymkdn.github.com/SharepointPlus/</a><br />
I think this library could be useful for some other people. It&#8217;s on GitHub so feel free to share any comments.</p>
<p>Thank you,<br />
Aymeric
</p></blockquote>
<p>It took me &#8220;forever&#8221; to look at this API, but I finally had a go at it, and decided to use one of the methods: <a href="http://aymkdn.github.com/SharepointPlus/symbols/%24SP().html#.createFile" target="_blank">createFile</a> in the  SPJS Charts for SharePoint solution to be able to export the chart data to Excel as a <abbr title="Comma-separated values">CSV file</abbr>.</p>
<div style="color:#202020;font-size:16px;font-weight:bold">New in v3.4 of SPJS Charts for SharePoint</div>
<p>You find the &#8220;Enable export to Excel as comma-separated values (CSV)&#8221; under the &#8220;Advanced options&#8221; section in the SPJS Charts for SharePoint GUI. When you enable this feature (done individually for each chart), you can hover over the chart to show a label in the bottom right corner of the chart. Hit this to create the file. When the file is successfully created, you are prompted to open it directly.</p>
<p>To achieve this I included the file &#8220;sharepointplus-3.0.3.js&#8221; in the CEWP code, and I created a function that exports the chart data as comma-separated values, which I then &#8220;inject&#8221; in a dedicated document library using Aymerics API method &#8220;createFile&#8221;. This document library is automatically created the first time you save a chart with the &#8220;Export feature&#8221; enabled.</p>
<p>You do NOT have to load the &#8220;sharepointplus-3.0.3.js&#8221; file if you do not intend to use the export to CSV feature. If you try to enable it, and &#8220;sharepointplus-3.0.3.js&#8221; is not loaded, you will get instruction on how to get hold of the file.</p>
<div style="color:#202020;font-size:16px;font-weight:bold">The exported files</div>
<p>The files are named from the path to the page where the chart is located, the chart id and the user ID of the user exporting the chart. This means that the library &#8220;SPJS_ExcelExports&#8221; will not get filled up as the file is overwritten for each time the user exports the same chart. If you want to keep the file, save it in another location, or at least save it with another name to prevent it from being overwritten.</p>
<p><strong>Example of the CEWP code with &#8220;sharepointplus-3.0.3.js&#8221; loaded:</strong></p>
<pre>&lt;style type="text/css"&gt;
div.chartLoadingOverlay{
	font-style:italic;
	color:gray;
	border:1px silver solid;
	background-color:#F5F5F5;
	line-height:250px;
	height:250px;
	width:500px;	
	text-align:center;	
	margin:2px;
}
&lt;/style&gt;

&lt;!-- The chart container is set up with an overlay to let the user know the chart is rendering --&gt;
&lt;div id="MyChart1"&gt;
	&lt;div class='chartLoadingOverlay'&gt;Loading chart please be patient...&lt;/div&gt;
&lt;/div&gt;

&lt;script type="text/javascript"&gt;
/*****************************************************
		Address all containers
*****************************************************/
// All charts must be represented by a container with a unique id. 
// This container  must be present in the page
var arrOfChartContainers = ["MyChart1"];
var loadRC = false;
// Set this to true to allow for the use of variables in the "Filter setup textarea"
var allowEval = false;
// Set this to true to delay the loading of the chart.
var loadManually = true;
// You can override chart options set in the GUI
var chartOptionOverride = {"TheChartID":{"title":"This is the chart title!"}};
&lt;/script&gt;
&lt;script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="https://www.google.com/jsapi"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="/test/English/Charts/Javascript/SPJS_ChartsForSharePoint_v3.4.js"&gt;&lt;/script&gt;
&lt;!-- Used to enable export of chart data as CSV --&gt;
&lt;script type="text/javascript" src="/test/English/Charts/Javascript/sharepointplus-3.0.3.js"&gt;&lt;/script&gt;
&lt;!-- Used to enable export of chart data as CSV --&gt;
&lt;script type="text/javascript"&gt;
// This function will load the charts
function manualLoad(){
	loadManually = false;
	spjs_GenerateChart();
}

// Delay the call to the function by 10ms to give the overlay time to render 
setTimeout(function(){
	manualLoad();
},10);
&lt;/script&gt;</pre>
<div style="color:#202020;font-size:16px;font-weight:bold">SharePoint 2013</div>
<p>In v3.4 I have made a “quick pass” trough the code to fix some compatibility issues for SharePoint 2013. </p>
<p>Because this solution is funded with an occasional beer donation, I cannot fully test it as if it was a commercial product. Therefore I must rely on you guys to find the rest of the bugs. Post them here, and I&#8217;ll fix them as soon as I can manage.</p>
<p>Alexander</p>
]]></content:encoded>
			<wfw:commentRss>http://spjsblog.com/2013/03/11/spjs-charts-for-sharepoint-export-to-excel-and-sp2013-support/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Complete archives</title>
		<link>http://spjsblog.com/2013/03/02/complete-archives/</link>
		<comments>http://spjsblog.com/2013/03/02/complete-archives/#comments</comments>
		<pubDate>Sat, 02 Mar 2013 15:06:06 +0000</pubDate>
		<dc:creator>Alexander Bautz</dc:creator>
				<category><![CDATA[Info]]></category>

		<guid isPermaLink="false">http://spjsblog.com/?p=4473</guid>
		<description><![CDATA[Hi all, To view a complete archive of all posts, visit this page Alexander]]></description>
				<content:encoded><![CDATA[<p>Hi all,<br />
To view a complete archive of all posts, <a href="http://spjsblog.com/archive/">visit this page</a></p>
<p>Alexander</p>
]]></content:encoded>
			<wfw:commentRss>http://spjsblog.com/2013/03/02/complete-archives/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Problem with posting comments is resolved</title>
		<link>http://spjsblog.com/2013/03/01/problem-with-posting-comments-is-resolved/</link>
		<comments>http://spjsblog.com/2013/03/01/problem-with-posting-comments-is-resolved/#comments</comments>
		<pubDate>Fri, 01 Mar 2013 17:06:30 +0000</pubDate>
		<dc:creator>Alexander Bautz</dc:creator>
				<category><![CDATA[Info]]></category>

		<guid isPermaLink="false">http://spjsblog.com/?p=4423</guid>
		<description><![CDATA[The problems with posting comments have now been fixed &#8211; let the comments come! Alexander]]></description>
				<content:encoded><![CDATA[<p>The problems with posting comments have now been fixed &#8211; let the comments come!</p>
<p>Alexander</p>
]]></content:encoded>
			<wfw:commentRss>http://spjsblog.com/2013/03/01/problem-with-posting-comments-is-resolved/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Problem with posting comments</title>
		<link>http://spjsblog.com/2013/03/01/problem-with-posting-comments/</link>
		<comments>http://spjsblog.com/2013/03/01/problem-with-posting-comments/#comments</comments>
		<pubDate>Fri, 01 Mar 2013 15:21:49 +0000</pubDate>
		<dc:creator>Alexander Bautz</dc:creator>
				<category><![CDATA[Info]]></category>

		<guid isPermaLink="false">http://spjsblog.com/?p=4421</guid>
		<description><![CDATA[Something is broken and it&#8217;s not possible to post comments. I&#8217;ll try to fix it later tonight. Alexander]]></description>
				<content:encoded><![CDATA[<p>Something is broken and it&#8217;s not possible to post comments. I&#8217;ll try to fix it later tonight.</p>
<p>Alexander</p>
]]></content:encoded>
			<wfw:commentRss>http://spjsblog.com/2013/03/01/problem-with-posting-comments/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The SharePoint JavaScripts blog has been moved to a new server</title>
		<link>http://spjsblog.com/2013/02/28/the-sharepoint-javascripts-blog-has-been-moved-to-a-new-server/</link>
		<comments>http://spjsblog.com/2013/02/28/the-sharepoint-javascripts-blog-has-been-moved-to-a-new-server/#comments</comments>
		<pubDate>Thu, 28 Feb 2013 21:37:06 +0000</pubDate>
		<dc:creator>Alexander Bautz</dc:creator>
				<category><![CDATA[Info]]></category>

		<guid isPermaLink="false">http://spjsblog.com/?p=4391</guid>
		<description><![CDATA[Hi all followers! I have decided to move the blog from wordpress.com to a self-hosted WordPress server for better control. To ensure your receive email notifications when I post new articles, please enter your email address in the form in the top right corner of my blog I have added a redirect on my old [...]]]></description>
				<content:encoded><![CDATA[<p>Hi all followers!</p>
<p>I have decided to move the blog from wordpress.com to a self-hosted WordPress server for better control.</p>
<p>To ensure your receive email notifications when I post new articles, please enter your email address in the form in the top right corner of my blog</a></p>
<p>I have added a redirect on my old URL, but if you accessed this site trough the old URL, you should update your bookmark for direct access. The new blog is found here:</p>
<div style="font-size:14px">
You find my blog here: <a href="http://spjsblog.com/">http://spjsblog.com/</a><br />
You can also <a href="https://twitter.com/SPJavaScripts">follow @SPJavaScripts</a> on Twitter
</div>
<p>Stay tuned,<br />
Alexander</p>
]]></content:encoded>
			<wfw:commentRss>http://spjsblog.com/2013/02/28/the-sharepoint-javascripts-blog-has-been-moved-to-a-new-server/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Dynamic Forms for SharePoint: Now with support for SharePoint 2013</title>
		<link>http://spjsblog.com/2013/02/20/dynamic-forms-for-sharepoint-now-with-support-for-sharepoint-2013/</link>
		<comments>http://spjsblog.com/2013/02/20/dynamic-forms-for-sharepoint-now-with-support-for-sharepoint-2013/#comments</comments>
		<pubDate>Wed, 20 Feb 2013 08:00:04 +0000</pubDate>
		<dc:creator>Alexander Bautz</dc:creator>
				<category><![CDATA[Form modification]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SharePoint 2007]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[SharePoint 2013]]></category>
		<category><![CDATA[Utilities]]></category>

		<guid isPermaLink="false">http://sharepointjavascript.wordpress.com/?p=4355</guid>
		<description><![CDATA[Change log May 06. 2013 I have released v2.95 &#8211; you find it here March 19. 2013 v2.81 fixes a bug occurring when you set a boolean column as required. March 01. 2013 I have released v2.8 with some new features, and a few bugfixes. New features: Add the ability to insert custom CSS and [...]]]></description>
				<content:encoded><![CDATA[<div style="margin-top:10px;font-size:20px;color:gray;">Change log</div>
<blockquote><p>
<strong>May 06. 2013</strong><br />
I have released v2.95 &#8211; <a href="http://spjsblog.com/2013/05/06/dynamic-forms-for-sharepoint-now-with-field-tooltip/">you find it here</a></p>
<p><strong>March 19. 2013</strong><br />
v2.81 fixes a bug occurring when you set a boolean column as required.</p>
<p><strong>March 01. 2013</strong><br />
I have released v2.8 with some new features, and a few bugfixes.<br />
<strong>New features:</strong></p>
<ul style="text-align:left">
<li>Add the ability to insert custom CSS and JavaScript (in the Misc tab)</li>
<li>Added &#8220;URL Query string parameter&#8221; as trigger for a rule.</li>
</ul>
<p><strong>Bug fixes:</strong>	</p>
<ul style="text-align:left">
<li>Validating an empty lookup column with the text (none) failed. This has been fixed by checking the val() property which will be 0.</li>
<li>&#8220;showFieldDescriptionWhenReadonly&#8221; had a bug preventing it from functioning.</li>
<li>If you selected the same field twice in a tab, it misbehaved. I now strip away any duplicates by removing the last occurrence.</li>
</ul>
</blockquote>
</div>
<hr />
<a href="http://spjsblog.com/wp-content/uploads/2013/02/dffs_sp20134.png" title="Click to enlarge"><img src="http://spjsblog.com/wp-content/uploads/2013/02/dffs_sp20134.png" alt="IMG" / style="width:550px"></a><br />
Refer these articles for background information and setup instructions:<br />
<a href="http://spjsblog.com/2012/05/29/dynamic-forms-for-sharepoint-production-release/" target="_blank">Dynamic Forms for SharePoint: Production</a><br />
<a href="http://spjsblog.com/2012/08/13/dynamic-forms-for-sharepoint-now-with-tabs/" target="_blank">Dynamic Forms for SharePoint – Now with Tabs</a></p>
<p>The Dynamic Forms for SharePoint solution now supports SharePoint 2013. Please note that I have just started looking at SharePoint 2013, and have tested the solution in a &#8220;Microsoft Office 365 Developer Preview&#8221; only.</p>
<p>There might be issues with a &#8220;non office 365&#8243; install, but you will have to tell me about it in the comments section below. </p>
<p><strong>The code is shared</strong> between SharePoint 2007, SharePoint 2010 and SharePoint 2013.</p>
<p><strong style="font-size:16px;">Changes from v2.65</strong></p>
<ul>
<li>Fixed bug where the tab setup link is missing in initial setup.</li>
<li>Added &#8220;show field description when readonly&#8221; switch under &#8220;Misc&#8221; section.</li>
<li>Added support for SP 2013.</li>
<li>Small change to the file default.css to remove form background color in SP 2013 (goes better with the SP 2013 look).</li>
<li>Added error handling when using invalid characters in the custom css setup in the heading configuration and including.</li>
<li>Added support for rules comparing date columns against other date columns in the form, or validation of empty / not empty date columns.</li>
</ul>
<p><strong style="font-size:16px;">Setup</strong><br />
The setup for SP 2013 is similar to that for SP 2010. Please note that you need to update spjs-utility.js to use Dynamic Forms for SharePoint v2.7 &#8211; not only for SP 2013: <a href="http://spjsfiles.com/index.php?dir=SharePoint+JavaScripts%2Fspjs-utility%2F" target="_blank">get spjs-utility.js here</a>.</p>
<p>See change log where you download spjs-utility.js. For setup instruction, see the first article linked in the top of this article.</p>
<p>Please post any findings below this article. </p>
<div style="text-align:center;padding:15px;border:1px silver solid;">
<div style="font-weight:bold;padding-bottom:5px;">Please support my work by buying me a beer</div>
<p><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&amp;business=C8EG2DG94FEYJ&amp;lc=GB&amp;item_name=SharePoint%20JavaScripts%20%2f%20Alexander%20Bautz&amp;currency_code=USD&amp;bn=PP%2dDonationsBF%3abeersmall%2epng%3aNonHosted" target="_blank"><img style="vertical-align:middle;margin-right:4px;" src="https://www.paypal.com/en_US/i/logo/PayPal_mark_50x34.gif" border="0" alt="PayPal"></a>
</div>
]]></content:encoded>
			<wfw:commentRss>http://spjsblog.com/2013/02/20/dynamic-forms-for-sharepoint-now-with-support-for-sharepoint-2013/feed/</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
	</channel>
</rss>
