Thursday, April 22, 2010

Enable Ajax in SharePoint on Custom Forms

In order for Ajax to work properly, we need to edit init.js file installed with MOSS 2007 on server. The file is located at: Drive:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\1033.

Open the file and go to method _spFormOnSubmitWrapper(), the following code will be found in the file:

if (_spSuppressFormOnSubmitWrapper)
{
return true;
}
if (_spFormOnSubmitCalled)
{
return false;
}

Replace the above code with the following code:

if (_spSuppressFormOnSubmitWrapper)
{
return true;
}
if (_spFormOnSubmitCalled)
{

//return false;

}
Note that “return false” statement has been commented out. This will make ajax calls to work properly.


Refrence:

http://fahadkundi.wordpress.com/2009/05/26/enable-ajax-in-sharepoint-on-custom-forms/

Tuesday, April 20, 2010

SharePoint Deployment Methods Comparison (Site/SubSite)

Recently i was assigned a task to compare the different deployment methods for SharePoint site/subsite. I searched over web but found nothing in a single piece. I combined the results from different sources and shaped the following

  1. Import/Export

    • Pros
      • Allows incremental releases (patches)
      • Users and Security inclusion is optional
      • Can carry site structure as well as data
      • Import on same level as the export was prepared
    • Cons
      • Before running selective migrations, you must run a full migration in order to set up your destination server
      • Complex procedure of preparing Import and export packages for incremental releases
      • Site Name and description will remain same and cannot be changed during import

    Selective Migration: Export Flowchart
























  2. Backup/Restore

    • Pros
      • Easy to use
      • One step command for backup and one for step restore
      • Can carry site structure and data as well
    • Cons
      • Users and Security will be included automatically
      • Only restorable on Root Site (Even sub site back will be restored on root site)
      • Site Name and description will remain same and cannot be changed during restore
  3. STP
    • Pros
      • Site Name and description can be changed during site creation with STP
      • Users and Security inclusion is optional
      • Can carry site structure as well as data
      • Can be deployed on any level regardless of source site level of STP
    • Cons
      • No incremental release supported
      • Does not include Users and Security
      • Inclusion of data is optional

References:

http://msdn.microsoft.com/en-us/library/cc768566.aspx
http://onetidbit.wordpress.com/

http://msdn.microsoft.com/en-us/library/bb530303.aspx

Standard Electrical Formulas Used for Power Consumption Calculations

TO DETERMINE:

SINGLE-PHASE

THREE-PHASE

DIRECT
CURRENT

KVA

I x E
1000

I x E x 1.73
1000

--------

Kilowatts

I x E x PF
1000

I x E x 1.73 x PF
1000

I x E
1000

Horsepower

I x E x %EFF x PF
746

I x E x 1.732 x %EFF x PF
746

I x E x %EFF
746

Amperes (when HP is known)

HP x 746
E x %EFF x PF

HP x 746
1.73 x E x %EFF x PF

HP x 746
E x %EFF

Amperes (when kW is known)

KW x 1000
E x PF

KW x 1000
1.73 x E x PF

KW x 1000
E

Amperes (when KVA is known)

KVA x 1000
E

KVA x 1000
1.73 x E

--------

1 HP = 7457 Watts

1000 Watts (1KW) = 1.25 KVA with PE=0.8

1 KW = 1 KVA with PE=1.0

Usually observed in generators

1 HP = 571.42

No PE given