Project Server synchronizes the permission and reset it back to default permission , I need to change following settings in server settings for this reason.To break the permissions and assign custom site permissions to groups Programmatically follow as
Saturday, June 2, 2012
Friday, May 11, 2012
Enterprise Project Management:Project Site Approval Workflow in Project Server 2010 -- Part - I
This workflow creates the project site for Basic project plan EPT when workflow task is approved.(This is the correction done over the Branching workflow provided with Project Server 2010 SDK).
Workflow task is created using PSWApprovalTask Content type in Project Server Workflow Task List.
1)Configure Visual Studio for Project Server activities.
New Project SharePointWorkflow -Create site workflow
And enter the url of PWA site
2)Map workflow stages activities to actual Workflow stages in PWA SharePoint Site
3)Enable PSWEnableApprovalTask Content Type in Project Server Workflow Task List
4)Add the Web reference of Project.asmx and WssInterop.asmx to the Solution
5)Build and Deploy and Associate it Enterprise Project Type
For detailed description of above steps please visit CodePlex and download the source and document
Workflow task is created using PSWApprovalTask Content type in Project Server Workflow Task List.
1)Configure Visual Studio for Project Server activities.
New Project SharePointWorkflow -Create site workflow
And enter the url of PWA site
2)Map workflow stages activities to actual Workflow stages in PWA SharePoint Site
3)Enable PSWEnableApprovalTask Content Type in Project Server Workflow Task List
4)Add the Web reference of Project.asmx and WssInterop.asmx to the Solution
5)Build and Deploy and Associate it Enterprise Project Type
For detailed description of above steps please visit CodePlex and download the source and document
Labels:
Project Server Workflow
Location:
Pune, Maharashtra, India
Friday, February 17, 2012
SharePoint Dialog Framework:Modal Popups With Dynamic Html
1)Make sure that ' this character dont appear in string in dynamic string as following.
tootipText=tootipText+" <a style=color:"+fontColor+" href=javascript:portal_openModalDialog("+EventUrl+"); >"+iEventCount +"."+this.toString()+"</a>";
$(tdEvent).attr("onclick", "CalendarEventsPopup('"+tootipText+"');");
2)Popup
function CalendarEventsPopup(result)
{
result = result.replace(/[(]/g,"('");
result = result.replace(/[)]/g,"')");
var div= "<div id=htmlDiv>
" + result + "</div>
";
$('body').append(div);
SP.UI.ModalDialog.showModalDialog({
html: document.getElementById('htmlDiv'),
title: "Events",
allowMaximize: false,
showClose: true,
autoSize: true,
dialogReturnValueCallback: Function.createDelegate(
null, portal_modalDialogClosedCallback)
});
function portal_modalDialogClosedCallback(result, value)
{
SP.UI.ModalDialog.RefreshPage(result);
}
For details about the calendar customization ,I have uploaded source code @CodePlex
tootipText=tootipText+" <a style=color:"+fontColor+" href=javascript:portal_openModalDialog("+EventUrl+"); >"+iEventCount +"."+this.toString()+"</a>";
$(tdEvent).attr("onclick", "CalendarEventsPopup('"+tootipText+"');");
2)Popup
function CalendarEventsPopup(result)
{
result = result.replace(/[(]/g,"('");
result = result.replace(/[)]/g,"')");
var div= "<div id=htmlDiv>
" + result + "</div>
";
$('body').append(div);
SP.UI.ModalDialog.showModalDialog({
html: document.getElementById('htmlDiv'),
title: "Events",
allowMaximize: false,
showClose: true,
autoSize: true,
dialogReturnValueCallback: Function.createDelegate(
null, portal_modalDialogClosedCallback)
});
function portal_modalDialogClosedCallback(result, value)
{
SP.UI.ModalDialog.RefreshPage(result);
}
For details about the calendar customization ,I have uploaded source code @CodePlex
Saturday, February 11, 2012
SharePoint 2010 Social Features: Retrieve Noteboard data with SocialDataService.asmx
Noteboard is social data webpart for posting comments for any user activity.Read more..
To get Comments count on particular url
1)Add the jquery reference to masterpage
2)Invoke CountCommentsOnUrl webmethod of Social Data Webservice
<script type="text/javascript">
$(document).ready(function () {
var strURL = "http://server/Pages/PageWithNoteBoard.aspx?ID=3";
var CountMethod = '/_vti_bin/SocialDataService.asmx?op=CountCommentsOnUrl';
// var soapEnv = "<soap:Envelope xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/XMLSchema'xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'><soap:Body><CountCommentsOnUrl xmlns='http://microsoft.com/webservices/SharePointPortalServer/SocialDataService'><url>+ strURL +</url></CountCommentsOnUrl></soap:Body></soap:Envelope>";
var soapEnv = "<soap:Envelope xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/XMLSchema'
xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'>
<soap:Body>
<CountCommentsOnUrl xmlns='http://microsoft.com/webservices/SharePointPortalServer/SocialDataService'>
<url>" + strURL + "</url>
</CountCommentsOnUrl>
</soap:Body>
</soap:Envelope>";
$.ajax({
url: CountMethod,
type: "POST",
async: true,
dataType: "xml",
data: soapEnv,
complete: proccessTagsAndNotes,
contentType: "text/xml; charset="utf-8""
});
function proccessTagsAndNotes(data, textStatus) {
alert(data.responseText);
var count = 0;
//alert(status);
//alert(xData.xml);
// count = $('CountCommentsOnUrlResponse', data).find('CountCommentsOnUrlResult').text();
count = $(data.responseText).find('CountCommentsOnUrlResult').text();
alert(' count' + count);
}
This code was working fine in my case but the link that helped me is here
To get Comments count on particular url
1)Add the jquery reference to masterpage
2)Invoke CountCommentsOnUrl webmethod of Social Data Webservice
<script type="text/javascript">
$(document).ready(function () {
var strURL = "http://server/Pages/PageWithNoteBoard.aspx?ID=3";
var CountMethod = '/_vti_bin/SocialDataService.asmx?op=CountCommentsOnUrl';
// var soapEnv = "<soap:Envelope xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/XMLSchema'xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'><soap:Body><CountCommentsOnUrl xmlns='http://microsoft.com/webservices/SharePointPortalServer/SocialDataService'><url>+ strURL +</url></CountCommentsOnUrl></soap:Body></soap:Envelope>";
var soapEnv = "<soap:Envelope xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/XMLSchema'
xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'>
<soap:Body>
<CountCommentsOnUrl xmlns='http://microsoft.com/webservices/SharePointPortalServer/SocialDataService'>
<url>" + strURL + "</url>
</CountCommentsOnUrl>
</soap:Body>
</soap:Envelope>";
$.ajax({
url: CountMethod,
type: "POST",
async: true,
dataType: "xml",
data: soapEnv,
complete: proccessTagsAndNotes,
contentType: "text/xml; charset="utf-8""
});
function proccessTagsAndNotes(data, textStatus) {
alert(data.responseText);
var count = 0;
//alert(status);
//alert(xData.xml);
// count = $('CountCommentsOnUrlResponse', data).find('CountCommentsOnUrlResult').text();
count = $(data.responseText).find('CountCommentsOnUrlResult').text();
alert(' count' + count);
}
This code was working fine in my case but the link that helped me is here
Friday, February 3, 2012
Assign Custom Permission Levels in User Information List
1)To Add permissions in User Information List browse
server/_catalogs/users/detail.aspx
2)right click on any user name link -->copy shortcut-->to get User Information List id
/_Layouts/listform.aspx?PageType=x&ListId={Guid}&ID=y
3)form the URL
_layouts/listedit.aspx?List=guid obtained as above
4)In Permission Settings add the Group having Custom Permission
5)Create the custom permission level as shown in following Image
6)you may need to add the custom permission levels for discussion board or to let the ad authenticated user modify there user info,in user information list
1)by default AD authenticated user don't have permissions to edit all the lists
so break the permissions for this list and create custom permissions for ad-authenticated user and add to User Information List
2)same is the case for discussion boards
server/_catalogs/users/detail.aspx
2)right click on any user name link -->copy shortcut-->to get User Information List id
/_Layouts/listform.aspx?PageType=x&ListId={Guid}&ID=y
3)form the URL
_layouts/listedit.aspx?List=guid obtained as above
4)In Permission Settings add the Group having Custom Permission
5)Create the custom permission level as shown in following Image
6)you may need to add the custom permission levels for discussion board or to let the ad authenticated user modify there user info,in user information list
1)by default AD authenticated user don't have permissions to edit all the lists
so break the permissions for this list and create custom permissions for ad-authenticated user and add to User Information List
2)same is the case for discussion boards
Sunday, January 29, 2012
Silverlight Video and Image Carousal With SharePoint Client OM
Carousal/Video Slider using Silverlight Client Object Model.
This sample is for learning SharePoint client object model using Silverlight
This Includes
1)Fetch and Display SharePoint Data using Client OM
i)create class and identify the display properties
ii)set the properties with Client OM
iii)Display Video/Image/List Data on Tick Event of Timer and on Button Click
private void Tick(object o, EventArgs sender)
{
CurrentVideo(currentImageIndex);
Application resource = Application.Current;
foreach (UIElement c in videoButtons.Children)
{
Button videoButton = c as Button;
if(Convert.ToString(videoButton.Content)
==Convert.ToString(currentImageIndex+1))
{
videoButton.Style = (Style)resource.Resources["RoundedBtnActive"];
}
else
{
videoButton.Style = (Style)resource.Resources["RoundedBtn"];
}
}
if (currentImageIndex < bannerImages.Count - 1) { //Moves to Next Image/Video Data of List currentImageIndex++; } //Set the current image index to 0 if the current image is the last one in the collection else { currentImageIndex = 0; } for more details view BannerGallery.xaml.cs
2)Applying Sliding animation to Picture/Video summary with Silverlight
public Storyboard SlideImageEffect(UIElement controlToAnimate, double positionToMove)
{
DoubleAnimation da = new DoubleAnimation();
if(timer!=null)
da.Duration = new Duration(timer.Interval); //TimeSpan.FromSeconds(1)
else
da.Duration = new Duration(TimeSpan.FromSeconds(1));
Storyboard sb = new Storyboard();
if (timer!=null)
sb.Duration = new Duration(timer.Interval);
else
sb.Duration = new Duration(TimeSpan.FromSeconds(1));
sb.Children.Add(da);
da.From = 560;
da.To = 0;
Storyboard.SetTarget(da, controlToAnimate);
Storyboard.SetTargetProperty(da, new PropertyPath("(UIElement.RenderTransform).(TranslateTransform.X)"));
//da.To = positionToMove;
return sb;
}
3)Applying Style and Positioning in Silverlight
i)write the style element in App.xaml(more details view app.xaml of source code)
ii)Style can be created in Expression Blend and added to app.xaml
and it can be accessed as below
Application resource = Application.Current;
videoButton.Style = (Style)resource.Resources["RoundedBtn"];
iv)for positioning different elements use grid control
I have uploaded the modified source code @CodePlex
This source code is extended from Silverlight SDK example
SharePointAndSilverlightTrainingKit\CreatingSelfServiceSilverlightApplicationsLab
This sample is for learning SharePoint client object model using Silverlight
This Includes
1)Fetch and Display SharePoint Data using Client OM
i)create class and identify the display properties
ii)set the properties with Client OM
iii)Display Video/Image/List Data on Tick Event of Timer and on Button Click
private void Tick(object o, EventArgs sender)
{
CurrentVideo(currentImageIndex);
Application resource = Application.Current;
foreach (UIElement c in videoButtons.Children)
{
Button videoButton = c as Button;
if(Convert.ToString(videoButton.Content)
==Convert.ToString(currentImageIndex+1))
{
videoButton.Style = (Style)resource.Resources["RoundedBtnActive"];
}
else
{
videoButton.Style = (Style)resource.Resources["RoundedBtn"];
}
}
if (currentImageIndex < bannerImages.Count - 1) { //Moves to Next Image/Video Data of List currentImageIndex++; } //Set the current image index to 0 if the current image is the last one in the collection else { currentImageIndex = 0; } for more details view BannerGallery.xaml.cs
2)Applying Sliding animation to Picture/Video summary with Silverlight
public Storyboard SlideImageEffect(UIElement controlToAnimate, double positionToMove)
{
DoubleAnimation da = new DoubleAnimation();
if(timer!=null)
da.Duration = new Duration(timer.Interval); //TimeSpan.FromSeconds(1)
else
da.Duration = new Duration(TimeSpan.FromSeconds(1));
Storyboard sb = new Storyboard();
if (timer!=null)
sb.Duration = new Duration(timer.Interval);
else
sb.Duration = new Duration(TimeSpan.FromSeconds(1));
sb.Children.Add(da);
da.From = 560;
da.To = 0;
Storyboard.SetTarget(da, controlToAnimate);
Storyboard.SetTargetProperty(da, new PropertyPath("(UIElement.RenderTransform).(TranslateTransform.X)"));
//da.To = positionToMove;
return sb;
}
3)Applying Style and Positioning in Silverlight
i)write the style element in App.xaml(more details view app.xaml of source code)
ii)Style can be created in Expression Blend and added to app.xaml
and it can be accessed as below
Application resource = Application.Current;
videoButton.Style = (Style)resource.Resources["RoundedBtn"];
iv)for positioning different elements use grid control
I have uploaded the modified source code @CodePlex
This source code is extended from Silverlight SDK example
SharePointAndSilverlightTrainingKit\CreatingSelfServiceSilverlightApplicationsLab
Monday, January 23, 2012
Debugging and Deploying Silverlight Applications In SharePoint
There are so many posts on Debugging and Deploying Silverlight Applications In SharePoint like
1)http://geekswithblogs.net/djacobus/archive/2010/08/01/141149.aspx
2)http://msdn.microsoft.com/en-us/library/ff798492.aspx
But few things I would like to add above posts
1)Select Sharepoint Project-->Tools -->Attach to Process -->select iexplorer.exe with Type Silverlight (In case if its showing script,silverlight in Attach Process box)
2)Project Reference of silverlight application in sharePoint Project through module element.
For more detail insight on SharePoint Integration with Silverlight
download training kit
1)http://geekswithblogs.net/djacobus/archive/2010/08/01/141149.aspx
2)http://msdn.microsoft.com/en-us/library/ff798492.aspx
But few things I would like to add above posts
1)Select Sharepoint Project-->Tools -->Attach to Process -->select iexplorer.exe with Type Silverlight (In case if its showing script,silverlight in Attach Process box)
2)Project Reference of silverlight application in sharePoint Project through module element.
For more detail insight on SharePoint Integration with Silverlight
download training kit
Subscribe to:
Posts (Atom)



