Posts

Showing posts from January, 2012

What is Impersonation in SharePoint

Image
What is impersonation in SharePoint?
Impersonation step is used in SPD workflow’s and it generally means running workflow steps with elevated privileges where the current user won’t have permission to do any action by workflow. When an impersonation step is created and published the workflows will be run on with person who created it.
How to add an impersonation step in SharePoint?
Only in an impersonation step the impersonation workflow activities can be used. To add an impersonation step in SPD workflow do the below
In SPD ribbon go to à Workflow and click Impersonation step


And now we can add the workflow activities in the impersonation step

 Using the impersonation step we can add or remove permissions to anyone for the current item.

Hide recycle bin and View all site content links from Quick Launch in SharePoint 2010

To hide the Recyle bin and view all site content links from the Quick launch in sharepoint 2010 follow the below procedure. You need to hide the links in the SP master page.

Find the master page v4.master or your custom master page and find head, above head add the following code:

STYLE
.s4-specialNavLinkList
{
display:none !important;
}
/STYLE

The two links will be hiddenfrom quick launch...!

How To Hide Sharepoint Ribbon From Anonymous Users

1)      Open your SharePoint master page
2)      Locate this line:
<div id="s4-ribbonrow">
3)      Change it to:
<div id="s4-ribbonrow" style="display:none">
4)      Now find the end of the “s4-ribbonrow” tag and add following block right after it:
<Sharepoint:SPSecurityTrimmedControl ID="SPSecurityTrimmedControl2" runat="server" PermissionsString="AddAndCustomizePages">
<script type="text/javascript">
document.getElementById("s4-ribbonrow").style.display = "block";
</script>
</Sharepoint:SPSecurityTrimmedControl>
5)      Save the new master page and publish it.

How to add Silverlight webpart in sharepoint 2010

Image

Promote Repeating table columns in infopath

Image
Promoting all the contents of a repeating table is not possible, but I found a way by using a hidden field which will have all the repeating table values concatenated and we can promote this hidden field to SharePoint.
Follow the below steps to promote the columns of repeating table , For teaching point of view I have used two columns to promote , For your point of view you can implement using the below method.
Step 1:
        Create a repeating table with two columns          Name         Number         Also create two Multi line text box’s to store the all the repeating table values by concatenating with semicolon (;)      Sum of Name     Sum of Number


Step 2:
Use the below code in fx of the sum of name
eval(eval(RepeatingGp, 'concat(substring(my:Name, 1, (current() = /my:myFields/my:FieldsGp/my:RepeatingGp) * string-length(my:Name)), substring(concat(my:Name, "; "), 1, (not(current() = /my:myFields/my:FieldsGp/my:RepeatingGp)) * string-length(concat(my:Name, "; &qu…