Friday, November 14, 2008

Be careful if plan to modify list items NEWitem.aspx !!!!!

Error message when you click "New" to create a new item in a list or when you click an existing item in SharePoint Server 2007 or in Windows SharePoint Services 3.0: "Invalid page URL" or "An unexpected error has occurred"
View products that this article applies to.
Article ID : 935504
Last Review : June 5, 2007
Revision : 2.2
SYMPTOMS
Consider the following scenario. You use Microsoft Office SharePoint Designer 2007 to customize the NewForm.aspx page of a list in a Microsoft Office SharePoint Server 2007 site or in a Microsoft Windows SharePoint Services 3.0 site. Then, you connect to the list by using a Web browser. In this scenario, you experience the following symptoms:• If you click New to create a new item in the list, you receive the following message:
Invalid page URL:
• If you click an existing item in the list, you receive the following error message:
An unexpected error has occurred
Additionally, you might view the properties of the list in SharePoint Designer 2007 and then specify the NewForm.aspx page in the New item form box. When you do this, the NewForm.aspx page appears to be saved as the new item form when you click OK. However, the next time that you view the properties of the list, the New item form box is empty.
Back to the top

CAUSE
This issue occurs if you deleted the List Form Web Part from the NewForm.aspx page.
Back to the top

RESOLUTION
To resolve this issue, delete the list, and then re-create it. Then, customize the NewForm.aspx page. When you customize the NewForm.aspx page, make sure that you do not delete the List Form Web Part.
Back to the top

MORE INFORMATION
If you want to customize the controls that appear on the NewForm.aspx page, and if you do not want to show the default List Form Web Part, you can hide the List Form Web Part. To do this, follow these steps: 1. Start SharePoint Designer 2007, and then open the NewForm.aspx page for the list.
2. Right-click the List Form Web Part, and then click Web Part Properties.
3. Expand Layout, click to select the Hidden check box, and then click OK.

Tuesday, November 11, 2008

Serverexpress 2008 and sharepoint - contextual search issue



Found this to explain my problem, with the search web part i can redirect any normal scope search to go to serverserver express results page, however when you choose a contextual search (ie this list) which refers to the list or document/picture library you are on the results are always displayed on the OSSearchResults.aspx page... you cannot touch this page as is a system page (unsupported if you do).


Solution: dont use contextual search, set up a scope say 'research documents' , set a rule agains tit to look a this document library using content source = local sharepoint content. Then set up another rule forcing it to look at web folder /research documents/. Change search box in the document library to use scopes not contextual and point advanced and results to use your custom ones for search server.

Monday, November 10, 2008

Document Libary - opening document in a new window

Best way to do this is

Add content editor web part..ENSURE THIS IS THE LAST WEB PART AT BOTTOM OF PAGE WITHIN THE WEB ZONE OF DOCUMENT LIBRARY ....

ADD THIS JAVASCRIPT TO IT...AS PER




Friday, November 7, 2008

Issue with links web part opening new window - does not save

Tried editing the target attribute for the links web part for an item in xlst mode,
right clicked on the field and set target to new window e.g. _blank and saved it.
It did not save!!!!

Solution , click on url field and edit target property in the 'Tag properties' window instead!!!! works a treat, no idea why other method does not work.