WebPart is the important Component to show/Execute your custom piece of code and Sharepoint Environment.
Please find the below attachment to see the complete development and deployment process of a Custom Web Part.
Click here to download the PPT.
Chart Part web Part in SharePoint
Sometime we have a requirement to show the list content in the form of a chart control. we have ASP.Net 3.5 chart control which we can use in SharePoint to create a Chart Part web Part.
below is the link of codeplex.
Click here to download the Web Part
which is a ready made WebPart developed by CodePlex to direclty use it in your sharepoint environment.
below is the link of codeplex.
Click here to download the Web Part
which is a ready made WebPart developed by CodePlex to direclty use it in your sharepoint environment.
How to Hide fields on NewForm.aspx and EditForm.aspx, the easy way
To hide fields in a SharePoint 2007 form, follow these steps (I will use the NewForm.aspx in my example)
1. Open SharePoint Designer and navigate to the site that contains the list or document library you wish to customize.
2. Expand the folder named “Forms” under the desired list or document library. You should see about seven .aspx pages (AllItems.aspx, EditForm.aspx, NewForm.aspx, etc)
3. Open the NewForm.aspx page and switch to the “code” view to edit the HTML of the page.
4. Paste the JavaScript code immediately below the the following HTML tag This will add the JavaScript to the HTML inside the content placeholder tag. Note: be sure to include the entire script below, including the script tags.
5. Modify the “hidefields()” section of the JavaScript code to refer to each SharePoint list field name to hide. For example, the code sample below will hide the SharePoint fields named Title, Document Link, and PublishDate Notice that you do not need to worry about internal field names or field types like other JavaScript techniques, you simply need to know the name of the field.
6. Save the changes. Select “Yes” when prompted to “…customize the page from the site definition…”
7. Test the form
Start Script Tag
script language="javascript" type="text/javascript"
_spBodyOnLoadFunctionNames.push("hideFields");
function findacontrol(FieldName) {
var arr = document.getElementsByTagName("!");
// get all comments
for (var i=0;i < arr.length; i++ )
{
// now match the field name
if (arr[i].innerHTML.indexOf(FieldName) > 0)
{ return arr[i]; }
}
}
function hideFields() {
var control = findacontrol("Title");
control.parentNode.parentNode.style.display="none";
control = findacontrol("Document Link");
control.parentNode.parentNode.style.display="none";
control = findacontrol("PublishDate");
control.parentNode.parentNode.style.display="none";
}
Close script tag
1. Open SharePoint Designer and navigate to the site that contains the list or document library you wish to customize.
2. Expand the folder named “Forms” under the desired list or document library. You should see about seven .aspx pages (AllItems.aspx, EditForm.aspx, NewForm.aspx, etc)
3. Open the NewForm.aspx page and switch to the “code” view to edit the HTML of the page.
4. Paste the JavaScript code immediately below the the following HTML tag
5. Modify the “hidefields()” section of the JavaScript code to refer to each SharePoint list field name to hide. For example, the code sample below will hide the SharePoint fields named Title, Document Link, and PublishDate Notice that you do not need to worry about internal field names or field types like other JavaScript techniques, you simply need to know the name of the field.
6. Save the changes. Select “Yes” when prompted to “…customize the page from the site definition…”
7. Test the form
Start Script Tag
script language="javascript" type="text/javascript"
_spBodyOnLoadFunctionNames.push("hideFields");
function findacontrol(FieldName) {
var arr = document.getElementsByTagName("!");
// get all comments
for (var i=0;i < arr.length; i++ )
{
// now match the field name
if (arr[i].innerHTML.indexOf(FieldName) > 0)
{ return arr[i]; }
}
}
function hideFields() {
var control = findacontrol("Title");
control.parentNode.parentNode.style.display="none";
control = findacontrol("Document Link");
control.parentNode.parentNode.style.display="none";
control = findacontrol("PublishDate");
control.parentNode.parentNode.style.display="none";
}
Close script tag
HTTP/1.1 404 Connection: close Date: Thu, 22 Oct 2009 04:57:41 GMT Server: Microsoft-IIS/6.0 MicrosoftSharePointTeamServices: 12.0.0.6219 X-Powered-By
When ever you recieve the following in MOSS 2007:
HTTP/1.1 404 Connection: close Date: Thu, 22 Oct 2009 04:57:41 GMT Server: Microsoft-IIS/6.0 MicrosoftSharePointTeamServices: 12.0.0.6219 X-Powered-By: ASP.NET
probably it shows that the web application is cretaed but there is no site collection inside it.
So just go to Central Administration >> Application Management >> Create Site Collection. Create a site collection under the web application and you will stop recieving the error.
Thanks
HTTP/1.1 404 Connection: close Date: Thu, 22 Oct 2009 04:57:41 GMT Server: Microsoft-IIS/6.0 MicrosoftSharePointTeamServices: 12.0.0.6219 X-Powered-By: ASP.NET
probably it shows that the web application is cretaed but there is no site collection inside it.
So just go to Central Administration >> Application Management >> Create Site Collection. Create a site collection under the web application and you will stop recieving the error.
Thanks
Hiding Master Page Link from Settings Page
If you want to hide the links from Settings.aspx page, you can easily write the feature to do that.
here is the single entry mention to hide the "Master Page" link from the settings.aspx page.
(A) ID: give any id, It is necessary to give id to
(B) Location : Location tells from where this link is getting reference. for more details click
here (SharePoint Custom Action Identifiers)
(C) GroupID : This is where the Action fall under which Group
(D) Hide Action ID : Id of Action, which you want to hide.(Note: write is as same as it is there in
Settings.aspx page
here is the single entry mention to hide the "Master Page" link from the settings.aspx page.
(A) ID: give any id, It is necessary to give id to
(B) Location : Location tells from where this link is getting reference. for more details click
here (SharePoint Custom Action Identifiers)
(C) GroupID : This is where the Action fall under which Group
(D) Hide Action ID : Id of Action, which you want to hide.(Note: write is as same as it is there in
Settings.aspx page
Steps To Bulk Publishing from draft/Pending Mode
These are the steps for bulk publishing content "Draft"/"Pending" Status.
- Open any sharepoint List
- Change view to "Approve/Reject Items"
- Go To Actions > Export To Spredsheet
- Click on Open.....Open for excel get open
- Change Status
- Right Click List > Syncronize List
- Click on "Retry All My Changes" just one time
- Click on "Cancel"
Subscribe to:
Posts (Atom)