Saturday, September 27, 2008

Link button to Delete Current Sharepoint Webpart

Well on my search for new stuff i found all the Sharepoint Web Part javascripts events, i say to my self, "GREAT", now can explorer that litle secrect Sharepoint Webpart have, so i make this litle script to delete current Webpart.

I found this Javascript method "MSOLayout_AddChange(WebPart,Property,NewValue)" to update propertys, greate now just use....

Delete Web Part:
Add Content Editor Web Part and select "html editor"

< script type="Text/ JavaScript" >
function RemoveWP()
var WPQId;
var WPObject;
var titleid;
var WPQPos;;
if (WPQPos>0)
WPQId='WebPart' + titleid.substring(WPQPos, titleid.length);
< / script >
< href="#" onclick="javascript:RemoveWP()">Delete Webpart< / a >

Thursday, September 18, 2008

Sharepoint "to many Things" what to use?


Today will try to example a way to pick SharePoint, This tool is very powerfull, but is very complex to.

The concept one person can do everything, dont works here.

People when start working need to create a team and separate functions.

Thinks sharepoint like a Triangle,

  1. If you use the default customization that sharepoint have, they are good, to simple company who only want list library, Document Library, Version, if you need new column just add, they are just great, there so many things inside normaly people dont know they exist, site columns...
  2. Sharepoint Designer 2007, If you need to change layout, new masterpage, create connections to Databases (SQL,ORACLE,Web Services), use controls without many develomp, you can use with drags and drop, some of the feateures can be complex, and sharepoint designer have a Workflow designer i consider great "simple and direct". You create simple and direct pages (Html, aspx) that use web parts, sharepoint Designer have direct connection to Sharepoint Web Parts. Connection to list and other webpart can be easy and superb, you can create webparts "Data View" of data and make filter between list and data in a easy way, and Webpart connections (Consumer, Provider). Hummm you read this and think "great, this is what i want".
  3. Well 3 part of my Triangle is Visual Studio, is the last thing we should pick :P, this "weapon" in good hands can change everything, like complex Workflows, Event handler, site features.... can go all night.... But, yes in life we will meet big buts, the cost of develomp and the time you spend. If you are a senior developer and never saw this GREAT TOOL, will need to use all your skills in ASP.NET, Configuration, network, need to study and read a lot os page and read SDK WSS, and books, can be a high cost in final project. Need a Team not solo.

Hope this litle article help.

Saturday, September 13, 2008

SharePoint List Templates

When we are creating List using elemnts.xml and feature.xml, need to know what Template ID code to use.
here is a list can help you.

Template ID Description
100 Generic list
101 Document library
102 Survey
103 Links list
104 Announcements list
105 Contacts list
106 Events list
107 Tasks list
108 Discussion board
109 Picture library
110 Data Sources list
111 Site Template Gallery
113 Web Part Gallery
114 List Template Gallery
115 XML Form Library (InfoPath)
120 Custom grid for list
200 Meeting Series list
201 Meeting Agenda list
204 Meeting Decisions list
207 Meeting Objectives list
210 Meeting text box
211 “Things to Bring” Meeting list
212 Meeting Workspace Pages list
300 Portal Sites list
1100 Issue Tracking list
2002 Personal document library
2003 Private document library

Saturday, September 06, 2008

Sharepoint upload Web part V.

My WebPart

Hello again, well almost every day have new idea to develomp my webpart.

Today is using the URL querystring to make filter on documents views.
Imagine, you want to filter your document list with microsoft word (doc), how do i do???, url can be a answer.

Now give the habitilty to determine what documents you want to filter, to do that you will have to add you custom document, like:
Name: Microsoft Word 2003
Type: doc
Name: Acrobat

Just simples like that.

Wednesday, September 03, 2008

Sharepoint upload Web part V.

My WebPart


1º Add new Custom Columns.
2º Add Metadata Content to Document upload (single text), next feature is associate controls to columns(TextControl, datetime, etc..).
3º All options from 1.0.0.*.

Now have the hability to add Custom Metadata Columns.