tag:blogger.com,1999:blog-79175655872183403752024-03-12T19:44:21.400-07:00ven4uVenhttp://www.blogger.com/profile/07045548732044416161noreply@blogger.comBlogger31125tag:blogger.com,1999:blog-7917565587218340375.post-51959100290836644602013-11-25T20:10:00.000-08:002013-11-25T20:16:40.527-08:00SP 2013 Master Page Setter App<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-family: inherit; line-height: 20.796875px;">I created a new code plex project for setting default master page in Team Sites for SharePoint 2010. In Publishing sites, there will be a layouts or application page through which we can set a custom or another master page as a default master page. Unfortunately, this is missing in Team Sites. This is what this solution is all about. Read more about it at</span><br />
<span style="font-family: inherit;"><span style="line-height: 20.796875px;"><br /></span><span style="line-height: 20.796875px;"><a href="https://sp2013masterpagesetterapp.codeplex.com/" target="_blank">https://sp2013masterpagesetterapp.codeplex.com/</a></span></span></div>
Venhttp://www.blogger.com/profile/07045548732044416161noreply@blogger.com0tag:blogger.com,1999:blog-7917565587218340375.post-88209306557535307842013-11-25T06:38:00.002-08:002013-11-25T06:41:14.020-08:00Master Page Setter for SharePoint 2010<div dir="ltr" style="text-align: left;" trbidi="on">
Yesterday, I created a new code plex project for setting default master page in Team Sites for SharePoint 2010. In Publishing sites, there will be a layouts or application page through which we can set a custom or another master page as a default master page. Unfortunately, this is missing in Team Sites. This is what this solution is all about. Read more about it at<br />
<br />
<a href="https://masterpagesetter.codeplex.com/" target="_blank">https://masterpagesetter.codeplex.com/</a></div>
Venhttp://www.blogger.com/profile/07045548732044416161noreply@blogger.com0tag:blogger.com,1999:blog-7917565587218340375.post-74671941521113064342013-10-31T09:53:00.001-07:002013-10-31T09:53:47.373-07:00Associated Custom List Boxes<div dir="ltr" style="text-align: left;" trbidi="on">
We often have a need to have associated custom list boxes. Though we can easily achieve it using JS or with normal controls like user controls, it would be really nice if something reusable is available to be used, like the other ASP.Net controls. This control has been built to suit those needs. This is available as a dll to be readily used in any ASP.Net or SharePoint project. More details in my code plex project at the below link.<br />
<br />
<a href="https://associatedlistbox.codeplex.com/">https://associatedlistbox.codeplex.com/</a><br />
<br /></div>
Venhttp://www.blogger.com/profile/07045548732044416161noreply@blogger.com0tag:blogger.com,1999:blog-7917565587218340375.post-84677521769094305362013-10-19T14:03:00.000-07:002013-10-19T14:05:27.808-07:00SP 2013 SharePoint Hosted App for Term Set Exporter<div dir="ltr" style="text-align: left;" trbidi="on">
So, finally, my app also makes it way through to the office store. This app pretty much does the same thing (though the implementation is slightly different) as my Term Set Exporter Utility of SP 2010. Please do check it out at<br />
<br />
<span style="background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px;"><a href="http://office.microsoft.com/en-us/store/term-set-exporter-app-WA104137032.aspx?queryid=88cc1b7c-0b2a-4ee7-81af-5fb66f0c075e&CTT=1">http://office.microsoft.com/en-us/store/term-set-exporter-app-WA104137032.aspx?queryid=88cc1b7c-0b2a-4ee7-81af-5fb66f0c075e&CTT=1</a></span></div>
Venhttp://www.blogger.com/profile/07045548732044416161noreply@blogger.com0tag:blogger.com,1999:blog-7917565587218340375.post-86204370998860716682013-10-02T11:19:00.002-07:002013-10-02T11:19:37.245-07:00Client Based Utility to Export Invalid Users from a Share Point site (2007 and 2010)<div dir="ltr" style="text-align: left;" trbidi="on">
Yesterday, I published another project on CodePlex. This is about exporting invalid users from a Share Point site (2007 and 2010). This will be a client based utility using native SP Web Services. Please check out this tool at <a href="https://invalidspsiteusers.codeplex.com/">https://invalidspsiteusers.codeplex.com/</a> and let me know your views.</div>
Venhttp://www.blogger.com/profile/07045548732044416161noreply@blogger.com0tag:blogger.com,1999:blog-7917565587218340375.post-82537378059587499792013-09-12T09:45:00.000-07:002013-09-12T09:45:30.937-07:00SharePoint 2010 Taxonomy Term Set Exporter using CSOM and Taxonomy Web Service<div dir="ltr" style="text-align: left;" trbidi="on">
Its been a while since I blogged. So, I am planning to resume it with some useful (hopefully) links and posts. Recently, I created a utility for exporting Taxonomy Term Sets into an XML file and a powershell script to recreate them in any other SharePoint 2010 environment. This utility has been developed solely using .Net Client Object Model and Taxonomy Web Service of SharePoint 2010. So you can run it from any Windows machine. I published a CodePlex project to host the same. To know more about it and to download the utility and its source code, please check the following link.<br />
<br />
<a href="https://termsetexporterclient.codeplex.com/">https://termsetexporterclient.codeplex.com/</a><br />
<br />
Please do let me know your reviews and comments. Also, please do visit the site and leave your reviews and comments there too. Hope it is of some use.</div>
Venhttp://www.blogger.com/profile/07045548732044416161noreply@blogger.com0tag:blogger.com,1999:blog-7917565587218340375.post-16921965847252980842011-01-12T18:33:00.000-08:002011-01-12T18:45:23.287-08:00Hide Top Bar, Ribbon, Quick Launch in SharePoint 2010The following wonderful link demonstrates how to have a web part page act as a pop up by hiding top bar, ribbon, quick launch links.<br /><br /><a href="http://geekswithblogs.net/venkatx5/archive/2010/11/17/how-to-hide-top-bar-ribbon-quick-launch-in-sharepoint.aspx">http://geekswithblogs.net/venkatx5/archive/2010/11/17/how-to-hide-top-bar-ribbon-quick-launch-in-sharepoint.aspx </a>Venhttp://www.blogger.com/profile/07045548732044416161noreply@blogger.com1tag:blogger.com,1999:blog-7917565587218340375.post-17786656106664290372010-10-22T13:39:00.000-07:002010-10-22T13:41:16.699-07:00How to Flush Publishing Pages from Cache in SPS 2007The following link shows to flush publishing pages from Cache in SharePoint 2007.<br /><br /><a href="http://weblogs.asp.net/soever/archive/2009/06/19/sharepoint-wcm-flushing-publishing-pages-from-the-cache.aspx">http://weblogs.asp.net/soever/archive/2009/06/19/sharepoint-wcm-flushing-publishing-pages-from-the-cache.aspx</a>Venhttp://www.blogger.com/profile/07045548732044416161noreply@blogger.com0tag:blogger.com,1999:blog-7917565587218340375.post-1587622581379275212010-04-03T17:14:00.000-07:002010-04-03T17:17:14.045-07:00Concept of Features in SharePoint 2007I always wanted to know why Features are called so in SharePoint 2007. Infact, many people asked me the same thing. After some research in Google, I found a link which explains this.<br /><br /><a href="http://sharepoint.microsoft.com/blogs/mike/Lists/Posts/Post.aspx?ID=7" target="_blank">http://sharepoint.microsoft.com/blogs/mike/Lists/Posts/Post.aspx?ID=7</a>Venhttp://www.blogger.com/profile/07045548732044416161noreply@blogger.com0tag:blogger.com,1999:blog-7917565587218340375.post-16666595413014146092010-03-16T10:36:00.001-07:002010-03-16T10:41:23.183-07:00Difference between ArrayList And HashTable And DictionaryI was always keen to know the difference between ArrayList,HashTable & Dictionary. Here it goes.<br /><br />An ArrayList behaves just like an array, except that it will dynamically expand and contract when you add/remove elements to it. A HashTable is useful when you want to lookup objects indexed by a 'key' value. It also dynamically expands and contracts but doesn't impose an order on the elements like an array does. Put a different way: you index elements in an ArrayList with a numeric index, you index elements in a HashTable with a key. Such a key is often a string.<br /><br />A Dictionary is a hash table.Dictionary is a generic type, Hashtable is not. That means you get type safety with Dictionary, because you can't insert any random object into it, and you don't have to cast the values you take out.<br /><br />Thanks to the following links.<br /><br /><a href="http://social.msdn.microsoft.com/Forums/en-US/winforms/thread/84b8d2a1-e84d-446a-94bb-4ec54d3b38cf" target="_blank">http://social.msdn.microsoft.com/Forums/en-US/winforms/thread/84b8d2a1-e84d-446a-94bb-4ec54d3b38cf</a><br /><br /><a href="http://stackoverflow.com/questions/301371/why-dictionary-is-preferred-over-hashtable-in-c" target="_blank">http://stackoverflow.com/questions/301371/why-dictionary-is-preferred-over-hashtable-in-c</a>Venhttp://www.blogger.com/profile/07045548732044416161noreply@blogger.com1tag:blogger.com,1999:blog-7917565587218340375.post-41363211608590006242010-03-10T14:12:00.000-08:002010-03-10T14:20:35.784-08:00Displaying Attachments in DataViewNormally attachments don't show up in a DataView webpart in SharePoint Designer. To display the attachments, add the following lines in your DataView.<br /><br /><SharePoint:AttachmentButton ControlMode="Edit" Enabled="true" ItemId="{@ID}" runat="server" Visible="false"/><SharePoint:AttachmentsField ControlMode="Display" ItemId="{@ID}" EnableViewState="true" FieldName="Attachments" runat="server"/><br /><br />Thanks to the following link.<br /><a href="http://dbweb.sbisite.com/blogs/bf/Lists/Posts/Post.aspx?ID=19" target="_blank">http://dbweb.sbisite.com/blogs/bf/Lists/Posts/Post.aspx?ID=19</a>Venhttp://www.blogger.com/profile/07045548732044416161noreply@blogger.com0tag:blogger.com,1999:blog-7917565587218340375.post-1162837541058316002010-03-08T08:34:00.000-08:002010-03-08T08:42:22.263-08:00Cascaded Dropdown in Sharepoint using jQueryWe had to achieve the functionality of Cascaded Dropdowns in SharePoint 2007 Custom List Form web part without custom code. Thanks to the following link which helped in achieving the same<br /><br /><a href="http://spservices.codeplex.com/wikipage?title=$().SPServices.SPCascadeDropdowns&referringTitle=Documentation" target="_blank">http://spservices.codeplex.com/wikipage?title=$().SPServices.SPCascadeDropdowns&referringTitle=Documentation </a>Venhttp://www.blogger.com/profile/07045548732044416161noreply@blogger.com0tag:blogger.com,1999:blog-7917565587218340375.post-4132818558338491682010-03-02T09:28:00.000-08:002010-03-09T14:49:19.560-08:00Dealing with SharePoint Lookup DropdownList with more than 20 itemsThis has been nagging for so long. Whenever you have a dropdownlist column pulling values from a lookup list with more than 20 items, SharePoint makes it like an editable dropdown. To get around this issue, I found a couple of excellent links which explain the solution.<br /><br /><a href="http://www.sharepointings.com/sharepoint-lookups-over-20-items-solution/" target="_blank">http://www.sharepointings.com/sharepoint-lookups-over-20-items-solution/</a><br /><br /><a href="http://boris.gomiunik.net/2009/10/sharepoint-lookup-field-how-does-it-work-and-how-to-add-javascript-event-handler-function-to-it/" target="_blank">http://boris.gomiunik.net/2009/10/sharepoint-lookup-field-how-does-it-work-and-how-to-add-javascript-event-handler-function-to-it/</a>Venhttp://www.blogger.com/profile/07045548732044416161noreply@blogger.com0tag:blogger.com,1999:blog-7917565587218340375.post-61328500746157586652010-02-19T08:42:00.000-08:002010-02-19T11:04:18.599-08:00Required Fields in SPD WorkflowThere is a strange and surprising thing happening with SPD workflows. Suppose a workflow gets triggered on a new item creation or an item modification. Consider the scenario where this workflow creates a new item in another list which has only Title as the mandatory field. After developing your workflow, you go to the target list (where you have to create a new item through workflow when a new item is created or when an existing item is modified) and changed a few fields as Required, surprisingly, the workflow does work without any issues. Only thing is that when a new item is created, the newly changed mandatory fields are not filled by the workflow. But there is a caveat. Once you have to make some changes to the workflow and compile it again, then it won't allow you to do so until all the required fields have been filled.Venhttp://www.blogger.com/profile/07045548732044416161noreply@blogger.com0tag:blogger.com,1999:blog-7917565587218340375.post-85362788315688271982010-02-17T10:10:00.000-08:002010-02-17T10:12:56.117-08:00Ensure Unique Values in DataView through XSLTTo ensure unique values in DataView web parts, refer the following link.<br /><br /><a href="http://blogs.msdn.com/frontpoint/archive/2005/02/08/369249.aspx" target="_blank">http://blogs.msdn.com/frontpoint/archive/2005/02/08/369249.aspx</a>Venhttp://www.blogger.com/profile/07045548732044416161noreply@blogger.com0tag:blogger.com,1999:blog-7917565587218340375.post-13198864762071392622010-02-16T10:12:00.000-08:002010-02-16T11:46:22.885-08:00Hide Delete Item Option in Form Toolbar of Custom List Form using SPDTo Hide the Delete Item option from the Form Toolbar using Javascript in SPD, use the following javascript function<br /><br /> function HideDeleteItem()<br /> {<br /> var aList=document.getElementsByTagName("a");<br /> for(i=0;i<aList.length;i++) <br /> {<br /> if(aList[i].innerHTML=="Delete Item") <br /> {<br /> aList[i].parentElement.parentElement.style.display="none";<br /> }<br /> }<br /> }<br /><br />This can also be achieved using jQuery.<br /><br />$(document).ready(function() {<br />$(”td.ms-titlearea”).hide();<br />$(”a[title='Delete Item']“).parent().parent().parent().hide();<br />$(”td.ms-separator:nth-child(4)”).hide();<br />});<br /><br />The advantage of using this jQuery is that it also hides the separator whereas the other normal function doesn't help to achieve this.Venhttp://www.blogger.com/profile/07045548732044416161noreply@blogger.com2tag:blogger.com,1999:blog-7917565587218340375.post-48971736083583545772010-02-16T09:32:00.000-08:002010-02-16T09:40:44.518-08:00Remove {generate-id()} from a Custom List Form using SPDI created a custom aspx page in SPD and added a Custom List Form web part in it for the Edit item. I assigned some id attributes to some rows in it. As soon as I saved it, I noticed that SPD is appending a {generate-id()} value to it and upon rendering, the assigned id was appended with some characters like ID0EAAA. Because of this, I was having some issues in referring these rows in Javascript. Upon googling, I found an excellent article which explains how to get rid of these.<br /><br /><a href="http://blog.metrostarsystems.com/2007/09/14/how-to-remove-generate-id-from-a-customized-form/" target="_blank">http://blog.metrostarsystems.com/2007/09/14/how-to-remove-generate-id-from-a-customized-form/</a>Venhttp://www.blogger.com/profile/07045548732044416161noreply@blogger.com0tag:blogger.com,1999:blog-7917565587218340375.post-85106419991033601742010-02-15T13:36:00.000-08:002010-02-15T13:50:42.101-08:00Form OnSubmit & Body OnLoad for a Custom List Form in SPD 2007We know that in SharePoint, every page is associated with a master page. So we will not have a <Form> tag in it. So it becomes difficult to capture OnSubmit event. But the following post gives a very good explanation on how to achieve this.<br /><br /><a href="http://edinkapic.blogspot.com/2007/10/add-javascript-date-validation-into.html" target="_blank">http://edinkapic.blogspot.com/2007/10/add-javascript-date-validation-into.html</a><br /><br />To achieve the OnLoad event for the <Body> tag, use the following function call<br /><br />_spBodyOnLoadFunctionNames.push("ExecuteMyFunctionOnLoad");<br /><br />Thanks to the following link<br /><br /><a href="http://meherkanthch.blogspot.com/2009/01/how-to-add-onload-javascript-event-in.html" target="_blank">http://meherkanthch.blogspot.com/2009/01/how-to-add-onload-javascript-event-in.html</a>Venhttp://www.blogger.com/profile/07045548732044416161noreply@blogger.com0tag:blogger.com,1999:blog-7917565587218340375.post-61445459946893018182010-02-15T12:28:00.000-08:002010-02-15T12:45:20.458-08:00Hide Delete Item from Form Tool Bar of Custom List Form using SPD 2007To hide the Delete Item option from the Form toolbar of a Custom List Form using SharePoint Designer 2007, use the following Javascript in the <Body> tag's OnLoad event.<br /><br />function HideDeleteItem()<br /> {<br /> var aList=document.getElementsByTagName("a");<br /> for(i=0;i<aList.length;i++) <br /> {<br /> if(aList[i].innerHTML=="Delete Item") <br /> {<br /> aList[i].parentElement.parentElement.style.display="none";<br /> }<br /> }<br /> }<br /><br />OR<br /><br />use the following lines of jQuery in a javascript function.<br /><br />$(document).ready(function() {<br /> $("td.ms-titlearea").hide();<br /> $("a[title='Delete Item']").parent().parent().parent().hide();<br /> $("td.ms-separator:nth-child(4)").hide();<br /> });<br /><br />Note: Download and refer a copy of the latest jQuery script file for this to work.Venhttp://www.blogger.com/profile/07045548732044416161noreply@blogger.com0tag:blogger.com,1999:blog-7917565587218340375.post-53476337423170451252010-02-15T12:21:00.000-08:002010-02-15T13:42:43.578-08:00Enable Attachments in Custom List Form in Edit Mode in SPD 2007Whenever we have a custom list form web part in an aspx page (in new/edit/display mode), the "Attach" link doesn't work. It gives an error. Refer the following Microsoft KB article for the error and its resolution.<br /><br /><a href="http://support.microsoft.com/kb/953271" target="_blank">http://support.microsoft.com/kb/953271</a>Venhttp://www.blogger.com/profile/07045548732044416161noreply@blogger.com0tag:blogger.com,1999:blog-7917565587218340375.post-85603878765613704902010-02-15T12:11:00.000-08:002010-02-15T12:27:55.558-08:00Attachment Required Validation for Custom List Form in SharePoint Designer 2007I have a Custom List Form for Edit Item in a custom aspx page developed using SharePoint Designer. There was a requirement in this. There should be a check for attachments,i.e. attachments should be made mandatory. This had to be achieved through Javascript. The following function helped in achieving the same. Note: This function should be called in the OnSubmit event of the form. <strong>Also, don't change the <br />id "idAttachmentsTable"</strong><br /><br />function CheckForAttachments()<br /> {<br /> var elm = document.getElementById("idAttachmentsTable");<br /> <br /> if (elm == null || elm.rows.length == 0)<br /> {<br /> //document.getElementById("idAttachmentsRow").style.display='none';<br /> alert("Please attach Documents");<br /> return false ;<br /> }<br /> else { return true ;}<br /> }Venhttp://www.blogger.com/profile/07045548732044416161noreply@blogger.com2tag:blogger.com,1999:blog-7917565587218340375.post-91614619207477427032010-02-11T11:21:00.000-08:002010-03-09T12:30:43.320-08:00Adding Javascript events to SharePoint List Form Fields for Edit ItemThe scenario is something like this.<br /><br />I am trying to do some javascript validation in my Custom List Edit form. I have a List Form field of Choice type. I want to associate this field with some custom javascript function. This javascript function will toggle the visibility of another List Form field of Person or Group type and clear its value, based on the Choice field selection.<br /><br />For example, there is a Decision field of Choice (Dropdown) type in an aspx page with Custom List Form web part. There is a Reviewer field of Person or Group type. Based on the selection of the Decision, the Reviewer field's visibility should be toggled and also the value in that field should be cleared.<br /><br />This was achieved in the following way. Lets say the Decision values are Open, Approved and Rejected. The Reviewer field should be shown only if the Decision is Approved, else it should be invisible and should not have any value in it.<br /><br />Call a javascript function in the <Body> tag's Onload event in the aspx, say Test().<br />The Test function would be something like this.<br /><br />function Test()<br /> {<br /> getField('select','Your_Field_Name').onchange = function() {ShowHideReviewer()};<br /> }<br /><br />Now lets see the functions <strong>getField()</strong> and <strong>ShowHideReviewer()</strong>.<br /><br /><br />function getField(fieldType,fieldTitle) <br />{ <br /> var docTags = document.getElementsByTagName(fieldType); <br /> for (var i=0; i < docTags.length; i++) <br /> { <br /> if (docTags[i].title == fieldTitle) <br /> { <br /> return docTags[i] <br /> } <br /> } <br />}<br /><br />Note: Make sure you initially give an id attribute (say,trReviewer) to the <tr> containing the Reviewer field and set its style="display:none".<br /><br />function ShowHideReviewer()<br /> {<br /> var ddlDecision = document.getElementById('ID of the rendered Decision field');<br /> var trReviewer = document.getElementById('ID of the rendered trReviewer');<br /> var reviewer = document.getElementById('ID of the rendered Person or Group field');<br /> <br /> if(ddlDecision != null)<br /> {<br /> if(ddlDecision.value == "Open" || ddlDecision.value == "Rejected")<br /> {<br /> if(trReviewer != null)<br /> {<br /> trReviewer.style.display = 'none';<br /> reviewer.innerText = ""; <br /> }<br /> }<br /> if(ddlDecision.value == "Approved")<br /> {<br /> if(trReviewer != null)<br /> {<br /> trReviewer.style.display = 'block'; <br /> }<br /><br /> }<br /> }<br /><br />Thanks to the following link for a hint.<br /><a href="http://webborg.blogspot.com/2008/04/add-functions-and-events-to-sharepoint.html" target="_blank">http://webborg.blogspot.com/2008/04/add-functions-and-events-to-sharepoint.html</a><br /><br />There were a few more requirements.<br /><br />I had a Region field which was of lookup type. Also a few more MultiPicker look up fields were there for Countries, which should show up based on the selection of the region. Again, as already mentioned, all the country values are lookups. There were 4 possibilities. Americas, ASPAC, EMEA and Global. These are lookup values from a list.These have been shown using a RadioButtonList control on the Custom List Form web part (EditItem) of a Custom aspx page. As mentioned earlier, the Countries for these regions were to be shown based on the selection of Region. Now comes the actual scenario. The user would select a Region. Then the corresponding Countries dropdown will show up and the user would move(add) the desired countries from the Available List to the Selected List. Now the user changes his mind and selects some other Region, so the Countries pertaining to that Region start showing up. Now when he clicks OK, the countries selected in the previous case should get cleared and shouldn't get saved. But it gets saved. We need to get around this issue. This was achieved as follows.<br /><br />First of all, hide the Regional lookup field, by setting its style="display:none", for the row(<tr>) containing that field. Then add a <asp:RadioButtonList> server control within the same row and manually add the regions as its list items. Once this is done, give an id attribute to all the rows containing the Country Fields. Once this is also done, use the two javascript functions given below to achieve the results.<br /><br />Note: Call the ToggleRegions function in the OnClick event of the RadioButtonList control and the ClearCountries function in the OnSubmit event of the form.<br /><br />function ToggleRegions()<br /> {<br /> <br /> var trAmericas = document.getElementById('trAmericasID0EAAA');<br /> var trASPAC = document.getElementById('trASPACID0EAAA');<br /> var trEMEA = document.getElementById('trEMEAID0EAAA');<br /> var region = document.getElementById('g_3b8f6f28_7c1c_4ba3_b81c_7a4e9e816ed3_ff4_1_ctl00_Lookup');<br /> <br /> var rBtnAm =document.getElementById('g_3b8f6f28_7c1c_4ba3_b81c_7a4e9e816ed3_RadioButtonList1ID0EAAA_0'); <br /> var rBtnASPAC =document.getElementById('g_3b8f6f28_7c1c_4ba3_b81c_7a4e9e816ed3_RadioButtonList1ID0EAAA_1'); <br /> var rBtnEMEA =document.getElementById('g_3b8f6f28_7c1c_4ba3_b81c_7a4e9e816ed3_RadioButtonList1ID0EAAA_2'); <br /> var rBtnGlobal =document.getElementById('g_3b8f6f28_7c1c_4ba3_b81c_7a4e9e816ed3_RadioButtonList1ID0EAAA_3'); <br /> <br /> <br /> if(rBtnAm.checked)<br /> {<br /> region[1].selected = true;<br /> trAmericas.style.display = "block";<br /> trASPAC.style.display = "none";<br /> trEMEA.style.display = "none"; <br /> }<br /> <br /> if(rBtnASPAC.checked)<br /> {<br /> region[2].selected = true;<br /> trAmericas.style.display = "none";<br /> trASPAC.style.display = "block";<br /> trEMEA.style.display = "none";<br /> }<br /> <br /> if(rBtnEMEA.checked)<br /> {<br /> region[3].selected = true;<br /> trAmericas.style.display = "none";<br /> trASPAC.style.display = "none";<br /> trEMEA.style.display = "block";<br /> }<br /> <br /> if(rBtnGlobal.checked)<br /> {<br /> region[4].selected = true; <br /> trAmericas.style.display = "none";<br /> trASPAC.style.display = "none";<br /> trEMEA.style.display = "none";<br /> }<br /> }<br /> <br /> function ClearCountries()<br /> {<br /> var rBtnAm =document.getElementById('g_3b8f6f28_7c1c_4ba3_b81c_7a4e9e816ed3_RadioButtonList1ID0EAAA_0'); <br /> var rBtnASPAC =document.getElementById('g_3b8f6f28_7c1c_4ba3_b81c_7a4e9e816ed3_RadioButtonList1ID0EAAA_1'); <br /> var rBtnEMEA =document.getElementById('g_3b8f6f28_7c1c_4ba3_b81c_7a4e9e816ed3_RadioButtonList1ID0EAAA_2'); <br /> var rBtnGlobal =document.getElementById('g_3b8f6f28_7c1c_4ba3_b81c_7a4e9e816ed3_RadioButtonList1ID0EAAA_3'); <br /> var Countries_AMC = document.getElementById('g_3b8f6f28_7c1c_4ba3_b81c_7a4e9e816ed3_ff5_1_ctl00_ctl00_MultiLookupPicker');<br /> var Countries_ASPAC = document.getElementById('g_3b8f6f28_7c1c_4ba3_b81c_7a4e9e816ed3_ff6_1_ctl00_ctl00_MultiLookupPicker');<br /> var Countries_EMEA = document.getElementById('g_3b8f6f28_7c1c_4ba3_b81c_7a4e9e816ed3_ff7_1_ctl00_ctl00_MultiLookupPicker');<br /> <br /> if(rBtnAm.checked)<br /> {<br /> Countries_ASPAC.value = "";<br /> Countries_EMEA.value = "";<br /> }<br /> <br /> if(rBtnASPAC.checked)<br /> {<br /> Countries_AMC.value = "";<br /> Countries_EMEA.value = "";<br /> }<br /> <br /> if(rBtnEMEA.checked)<br /> {<br /> Countries_ASPAC.value = "";<br /> Countries_AMC.value = "";<br /> }<br /> <br /> if(rBtnGlobal.checked)<br /> {<br /> Countries_AMC.value = "";<br /> Countries_ASPAC.value = "";<br /> Countries_EMEA.value = "";<br /> }<br /><br /> }Venhttp://www.blogger.com/profile/07045548732044416161noreply@blogger.com0tag:blogger.com,1999:blog-7917565587218340375.post-84312112933421283992010-02-02T09:31:00.000-08:002010-02-02T09:37:58.820-08:00When to user Abstract Class vs InterfaceThe following links provide a good overview of when to use Abstract Classes vs Interfaces.<br /><br /><a href="http://objectspot.blogspot.com/2006/07/abstarct-class-vs-interface.html" target="_blank"> http://objectspot.blogspot.com/2006/07/abstarct-class-vs-interface.html</a><br /><br />and<br /><br /><a href="http://www.codeproject.com/KB/architecture/Abstract_Interface.aspx" target="_blank">http://www.codeproject.com/KB/architecture/Abstract_Interface.aspx</a>Venhttp://www.blogger.com/profile/07045548732044416161noreply@blogger.com0tag:blogger.com,1999:blog-7917565587218340375.post-1312163421783716232010-01-23T16:40:00.000-08:002010-02-02T09:38:24.170-08:00Send email to multiple users in Designer workflowTo send email to multiple users in Designer workflow using a Person or Group column.<br /><br />Refer the links below.<br /><br /><a href="http://rapidapplicationdevelopment.blogspot.com/2007/04/multi-value-columns-in-sharepoint.html" target="_blank">http://rapidapplicationdevelopment.blogspot.com/2007/04/multi-value-columns-in-sharepoint.html</a><br /><br />and<br /><br /><a href="http://social.msdn.microsoft.com/forums/en-US/sharepointworkflow/thread/ebcb81ec-ba36-4a4c-bd01-26dc2c4d0913" target="_blank">http://social.msdn.microsoft.com/forums/en-US/sharepointworkflow/thread/ebcb81ec-ba36-4a4c-bd01-26dc2c4d0913</a>Venhttp://www.blogger.com/profile/07045548732044416161noreply@blogger.com0tag:blogger.com,1999:blog-7917565587218340375.post-37716216472572195922009-12-21T11:44:00.000-08:002010-02-02T09:44:45.522-08:00Redirect from a Page(Document Library) to any custom location in MOSS 2007Hi,<br /> There was a requirement to redirect a user when (s)he clicks on a Document Library link from Quick Launch to a Shared Network Location, where the actual documents would reside. This was achieved in the following way.<br />Go to Site Actions ->Edit Page(of the document library in this case). Click Add a Web Part. In the Dialog Box that appears, pick Content Editor Web Part and click Ok. Click on Open the tool pane and click on the Source Editor button, add the following code to the Source Editor window.<br /><meta equiv="refresh" content="10;url=\\shared location"><br />where 10 is the number of seconds, after which the refresh occurs.<br />This was referred from the following link.<br /><a href="http://www.toddklindt.com/blog/Lists/Posts/Post.aspx?ID=48" target="_blank">http://www.toddklindt.com/blog/Lists/Posts/Post.aspx?ID=48</a>Venhttp://www.blogger.com/profile/07045548732044416161noreply@blogger.com0