Pages

Friday, May 3, 2013

Completed Salem™ Certified Practitioner Online Course

Hi All

Yay, I’m very happy as I've successfully completed Genius SharePoint Business Strategist course http://thesharepointstrategist.com/about-us/ which qualified me as certified Salem™ Practitioner.

Salem™ is framework which can be used in any business for SharePoint as a solution.

Salem™ (Sequenced and Logical Enterprise Methodology) – course contains 15 different modules which are connected and are very useful to applied to any business : http://geniuscourses.litmos.com/online-courses/register/25684

Here are some of features of this online course:
·         Available online – which is very flexible for anyone.
·         Course materials are so much in detail and concise for each sections which are understandable
·         Videos and slides are nice explained with real life example
·         Length of this course is suitable
After completing this course you must know how business should use SharePoint and what parameters needs to be considered when it comes to apply SharePoint in real life!

I enjoyed this course and recommend taking the same course to improve SharePoint knowledge!

Disha Shah

Thursday, March 21, 2013

Get and set BDC Column Value via Javascript

Hi All

We already know very well reagarding "getTagFromIdentifierAndTitle" function in SharePoint which is very useful to set and get the value of TextBox, DataField, Dropdown and many more to set and get the values from control. But what about if your list contains BDC Column value. How to set  and get the value from BDC Column?

Here is the jascript to achieve set and get the BDC column Value.

<script type='text/javascript'>
//set default value
_spBodyOnLoadFunctionNames.push("loadandhideBDC");
function loadandhideBDC()
{
setDefault();
}

//To check it contains value before saving
 function PreSaveAction() {
var elem = getBDCTagFromIdentifierAndTitle("TEXTAREA","Object Picker", 1);
if(elem.value =="")
{
 alert( "Invalid Value");
 return false;
}
}

function getBDCTagFromIdentifierAndTitle(tagName, title, count) {
var tags = document.getElementsByTagName(tagName);
var myCount = 0;
for (var i=0; i < tags.length; i++) {
var tempString = tags[i].id;
if (tags[i].title == title){
myCount++;
if(count == myCount){
return tags[i];
}
}
}
return null;
}


function setDefault() {
var variety = "";
var elem = getBDCTagFromIdentifierAndTitle("TEXTAREA","Object Picker", 1);
if(elem) elem.value = variety;
var elem = getBDCTagFromIdentifierAndTitle("DIV","Object Picker", 1);
if(elem) elem.innerText = variety;
}
</script>

Disha Shah

Jquery Redirect After save an item from NewForm.aspx and EditForm.aspx

Hello all

I came across to an situation where user needs to redirect to a "Thank You" or lets say different page when they save item fron "NewForm.aspx" or "EditForm.aspx".

As I do not want to use Visual Studio code that ater save item Event Receiver - "ItemAdded" I tried to look around is there any other option available like Jquery , and yes we can , so easy :)

Here is the code for that.

$(document).ready(function() {

        var button = $("input[id$=SaveItem]"); 
// change redirection behavior 
button.removeAttr("onclick"); 
 button.click(function() { 
             var elementName = $(this).attr("name"); 
             var aspForm = $("form[name=aspnetForm]"); 
             var oldPostbackUrl = aspForm.get(0).action; 
             var currentSourceValue = GetUrlKeyValue("Source", true, oldPostbackUrl); 
             var newPostbackUrl = oldPostbackUrl.replace(currentSourceValue, "custompageurl.aspx"); 
   
             if (!PreSaveItem()) return false; 
             WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(elementName, "", true, "", newPostbackUrl, false, true)); 
         }); 
});

Enjoy Jquery!
Disha Shah

Running SharePoint 2010 vhd in Windows 7 using Oracle Virtual Box.

Hi All

Here are the steps regarding how to run the 2010 VHD on Windows 7 box by using Oracle Virtual Box.

First we need to download and install below 3 softwares.

1>  Configure BIOS for HAV PCs.
http://www.microsoft.com/windows/virtual-pc/support/configure-bios.aspx

2> Download Oracle Virtual Box.
http://www.oracle.com/technetwork/server-storage/virtualbox/downloads/index.html

3>  Download SharePoint 2010 VVHD.
http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=27417

4> Place all files in a folder and extract the application file which will create a single vhd.
 
Let us see the below steps how to run the SharePoint 2010 VHD by using the Oracle VM Virtual Box. 
  1. Open Virtual Box and click "NEW" - which brings you one wizard to select for VHD. 
  2. Choose Operation System as "Microsoft Windows" and version as "Windows 2008 (64bit)click, "Next."
  3. In Memory dialogue box type 4096 MB(Recommended) or more and click, Next. Make sure your client system has more than 4GB RAM.
  4. Choose "Use existing hard disk" and navigate to  2010-7a.vhd clicking the icon.Next  and click, Finish.
  5. Click on "Storage" in the detail section. Click, 2010.7a.vhd and delete it using delete icon .     
  6. Click "SATA Controller" and delete it using delete icon.
  7. Under IDE Controller click add vhd icon.
  8. In dialogue box, click "choose existing disk.
  9. "Navigate to the 2010-7a.vhd and click ok.
  10. Under "System" allow process to use 2 CPUs instead of default 1.
  11. Start the virtual machine.
 Enjoy!
 Disha Shah

Thursday, February 28, 2013

Difference between DELETED and CLOSED SharePoint Webparts

Hello Friends

Recently I had an experience about the “DELETED” and “CLOSED” webparts on SharePoint Page and thought to share the same.

When we click the “x” button on webpart while editing page – it stands for closing webpart not deleting webpart. Closed webpart still stays on page and mutely consumes server resources every time when page is accessed.

Deleted webparts does not stay on page and if we do not need webpart we must delete webpart by clicking “Delete” on webpart while editing page.

Let us say user has “Closed “webpart by understanding that it has been deleted but in reality it is not so if we want to delete the “Closed” webpart, how could we do? For that we need to go to the Web Part Maintenance Page.

How do we get “WebPart Maintenance” Page? Very simple

Simply adds a given URL with the parameter: contents=1.

For example: http://sharepointdev/sites/test/default.aspx will become:
http://sharepointdev/sites/test/default.aspx?contents=1

Note:
If a web part is closed on a page (Open on page? = no), then using the "Reset" action will not restore the web part to the page. Rather, it will "reset" the web part to its default values. You need to use the steps described above to re-open the web part.
If we want to reopen the close webpart , follow below steps
  1. Site Actions > Edit Page: Add a web part
  2. Advanced Web part
  3. gallery and options
  4. Select "Closed Web Parts"
  5. Drag-n-drop the web part back onto your page
Enjoy!
Disha Shah

Wednesday, January 30, 2013

Run Microsoft Visual Studio as Administrator

Hello All

Sometimes it may be possible, if we have login on our system as admin still Visual Studio does not run as admin. We have to explicity make it run as admin via right click and click on "Run as Administrator".

If you just want to make Visual Studio start up with administrator privileges every time you launch it, you can change the Microsoft Visual Studio 2010 shortcut properties to always run as administrator.

Follow below steps to acoomplish:

1. To do this, right click on the Microsoft Visual Studio 2010 shortcut and choose Properties.
2. Click the Compatibility tab.  Then check the “Run this program as an administrator” check box and
press OK.
3. Done

Enjoy!
Disha Shah