Tuesday, December 28, 2010

Installing Adobe iFilter to SharePoint

5) Enable PDF Search
• Download and install the Adobe PDF IFilter
http://www.adobe.com/support/downloads/detail.jsp?ftpID=2611
• Edit Registory entries - Click Start, click Run, type regedit,
• Locate HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\12.0\Search\Applications\GUID\Gather\Search\Extensions\ExtensionList
• On the Edit menu, point to New, and then click String Value.
• Type 38, and then press ENTER.
• Right-click the registry entry that you created, and then click Modify.
• In the Value data box, type pdf, and then click OK.
• Stop and then start the Windows SharePoint Services Search service.
• Net start spsearch
• Net stop spsearch
• Note -Confirm following entries - These registry subkeys and the values that they contain are created when you installed the Adobe PDF IFilter on the server -
o open - HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\12.0\Search\Setup\ContentIndexCommon\Filters\Extension\.pdf

This registry subkey must contain the following registry entry:
Name: Default
Type: REG_MULTI_SZ
Data: {4C904448-74A9-11D0-AF6E-00C04FD8DC02}
o open - HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\12.0\Search\Setup\Filters\.pdf.

This registry subkey must contain the following registry entries:
Name: Default
Type: REG_SZ
Data: (value not set)

Name: Extension
Type: REG_SZ
Data: pdf

Name: FileTypeBucket
Type: REG_DWORD
Data: 0x00000001 (1)

Name: MimeTypes
Type: REG_SZ
Data: application/pdf

• Display .pdf icon -
o Download PDF Icon from http://lh5.ggpht.com/mark.deraeve/SEz5O7l1DwI/AAAAAAAAB6o/r07MeX2e_5U/s144/pdficon_small.gif
o Copy file in Images folder on 12 hives(c:\Program Files\Common FIles\Microsoft Shared\Web Server extensions\12\TEMPLATE\IMAGES).
o Open DOCICON.xml file (C:\Program Files\Common FIles\Microsoft Shared\Web Server extensions\12\TEMPLATE\XML)
o Add new key for pdf icon.The new key will be
o Save file and reset iis - IISRESET

Program Files-Common Files-Microsoft Shared-Web server extensions-12

SharePoint Portal Server 2003 - Drive:\Program Files\Common Files\Microsoft Shared\Web server extensions\60\
SharePoint Server 2007- Drive :\Program Files\Common Files\Microsoft Shared\Web server extensions\12\
SharePoint Server 2010- Drive:\Program Files\Common Files\Microsoft Shared\Web server extensions\14\

Tuesday, November 30, 2010

MOSS TAM TAMe PD (Tivoli Access Manager) Integration - Part (III)

The expand and collapse of SharePoint list items is not working when accessed through TAMe junction.
It just keeps saying “Loading….”.

Solution: To use -J (uppercase/capital) while creating junction and putting the javascript junction cookie in header.

Monday, November 15, 2010

MOSS TAM TAMe PD (Tivoli Access Manager) Integration - Part (II)

Its couple of months now since my last post part(i) and that project went nowhere.

Now suddenly one more requirement came and re-org happened so suddenly integrating TAMe became necessity.

Its was decided by security team to stick with Junction approach.

1) Create a NT auth based Sharepoint site, at default zone.
2) Create Forms based extension in any other zone.
3) Junction this Forms based extension with TAMe.

4) PDF were show properly but none of the word or excel documents. The trick was to disable client integration for the document library.

5) Today Nov 15 2010 the search is not working when accessed through TAMe
This issue has been fixed. Our IIS admin had added an entry for host header - sw999
Once we removed this explicitly added host header entry
and added sw999.xxx.domaijavascript:void(0)n.ext entry in AAM (Alternate Access Mapping),
Search started working.
Search was sending requests for sw999.xxx.domain.ext which we had to enter in AAMs

SharePoint’s Document Lib Explorer View Issues

Getting SharePoint’s Explorer View in IE8 on Windows Server 2003
or


Refn:

1) http://sharepointandstuff.blogspot.com/2009/06/getting-sharepoints-explorer-view-in.html

2) http://tihomirignatov.blogspot.com/2009/08/sharepoint-error-message-your-client.html

Most likely your WebClient service is not running on your local machine. Simply crank it up using the following steps.

1. Go to START >> RUN
2. Type services.msc
3. Locate the WebClient service
4. Open the Properties

1. Start up type to Automatic (otherwise on the next boot you will have this issue again)
2. Click Apply
3. Click Start
4. Click OK

Thursday, August 5, 2010

Debug Search on a WSS Forms authenticated site

Search on a WSS Forms authenticated site is not returning any results.

The reason being the extended Windows auth site stopped working.
So created a new extended Windows auth site.
Added it to the configured Content sources.
Also updated the Search scope.

How to Add Properties To advanced Search in MOSS 2007

Creating and Exposing Managed Properties in the Advanced Search Page

To make a custom column appear as one of the property restrictions in the SharePoint 2007 Advanced result page, you need to:

(1)Map the crawled property to a managed property.
(2)Edit the XML of the Advanced Search Box webpart to show the managed property.

(1)Central Admin – Shared Services Administration – Search Settings - Metadata Poperty Mappings
(1.1) Add the property.
(1.2) Map the property i.e. ows_...

(2)Add PropertyDef and PropertyRef to Properties XML as show below:





Refn:
http://blogs.msdn.com/b/bgeorgi/archive/2007/03/22/adding-a-custom-property-to-the-advanced-search-box-filters.aspx

http://vspug.com/andymay/2006/11/09/moss-2007-advanced-search-on-your-own-metadata/

Thursday, May 20, 2010

how to get rid of Sharepoint 2007 various title bars



Load the above javascript in the Content editor webpart.

Wednesday, May 19, 2010

Where is the SharePoint workflow history list (Hidden List)?

lists/Workflow%20History

Refn: http://vanillacloud.com/2009/02/where-is-the-sharepoint-workflow-history-list-hidden-list/

Also if workflow is setup through Designer then logging various steps to log history helps.

The way to look at when a particular workflow was started is by navigating to the document under consideration.
Then click on Workflow status and you will see the workflow details.
Whenever a workflow has been started if we are explicitly logging to the Workflow History log we can see the workflow starting entry under Workflow history log.

Thursday, April 29, 2010

CAML Query to show current month and next month

------------current month------------

"

"
------------next month------------

we could hve used if we had to show just current month
else calculation for next month is not know using tag
------------Just current month------------

Tuesday, April 20, 2010

SharePoint Notes Or Questions

1) What is SharePoint?
Microsoft Office SharePoint Server 2007 is an integrated suite of server providing comprehensive content management, enterprise search, collaboration environment, shared business processes, and Business Intelligence.
2) Application pages vs Site pages
Application pages are Admin pages like the Site Settings page you get.
All the opther pages you create are Site pages.
3) Ghosted vs UnGhosted
Ghosted means un-customized residing on file system.
UnGhosted means customized residing in Content Db.
4) SPSite vs SPWeb
SPSite represents Site Collection and SPWeb represents a website
within a particular site collection.
String str;
using(SPSite oSPsite = new SPSite("http://server"))
{
using(SPWeb oSPWeb = oSPSite.OpenWeb())
{
str = oSPWeb.Title;
str = oSPWeb.Url;
}
}

Thursday, March 4, 2010

How to enable Search on a WSS Forms authenticated site

How to enable Search on a WSS Forms authenticated site
1) First to make WSS Search crawl forms based authenticated sites by taking following steps:
1.1. Extend the form-authentication web application to a zone with windows-integrated authentication (NTLM) enabled.
1.2. Make sure if the search crawl account has access to the new web application, else Grant Permission.
NOTE: The crawler will access to the site content through this “secret” NTLM web application. It will be able to get the form authentication descriptor of the content. After the crawl’s completed, you will see search results in your form-authentication site. It’s important to know that the URL of search hit will be based on your form-authentication site, because it’s depending on where you are searching from.

2) Using Central Admin configure the Search Server .

3) Attach the Search server to the Web App.

4) Finally configure scopes and permission level search at site level.

5) stsadm.exe -o spsearch -farmserviceaccount domain\admin -farmservicepassword password
stsadm.exe -o spsearch -farmcontentaccessaccount domain\admin -farmcontentaccesspassword password

6) Updated the zone to default for the extended web application.


Refn: http://gj80blogtech.blogspot.com/2009/08/wss-search-configuration-administration.html

Friday, February 12, 2010

Ho to copy file from one doc lib to other along with Porperties or metadata

i)
Send To => Other Location
Give the destination doc lib path

Thursday, February 11, 2010

Summary Link web part prefered over link web part

Summary Link web part prefered over link web part, since it provides various options like to open the link in new window.

Formula to display list items modified within last week

Formula to display list items modified within last week:
MODIFIED
is greater than or equal to
[TODAY] - 7
We had to show all the discussions updated within last 7 days.

How to get GUID or id for a Sharepoint list

1)
an easier method may be to open up the site settings and go to “site lists and libraries” …. it will list the GUID like so: “/_layouts/ListEdit.aspx?List={C51B49FA-4F6C-407A-B65D-943CBB1E9BD2}”…. the main benefit being you don’t need to convert the hex character codes into { – }

Tuesday, January 26, 2010

How to overcome allowable limit for a Sharepoint URL in Outlook message body

One of our user was creating Survey in Sharepoint and when he tried to embed the survey entry url in the email to be sent to entire company, the url got truncated in the email send.
The workaround is to shorten the SharePoint url.
In our case we couldn't use Alternate Access Mapping and create separate url.
So the workaround was to shorten the url using NewForm.aspx-
http://abc.com/xyz/list/mysurvey/NewForm.aspx?Source=http%3A%2F%2Fabc%2Ecom%2Fxyz%2Flist%2Fmysurvey%2FAllItems%2Easpx
to http://abc.com/xyz/list/mysurvey/NewForm.aspx