sharepoint

Enable scrolling window in the Sharepoint 'Select an image' dialog window.

Is it possible to make the default image-select popup window in Sharepoint to be a scrolling window? It shows 8 images at a time in thumbnail view, but once there are a few hundred images in a collection it gets very tedious to click through the arrows to find your image. There is a 'detail view' which shows more images at once but wi...

SharePoint Closed web part

Hi All, I have a site developed in MOSS2007. where can I see the list of web parts that are closed and the user name who closed that web parts i.e(ClosedBy). Or Else, if a perticular web part is closed, how can I get to know that web part is closed by whome? Thanks, Sachin Katkar. ...

Why does my Sharepoint IRM module fail to re-initialze intermittently?

I have a Sharepoint IRM module that works most of the time. However, most mornings when I come in and try to exercise it it fails to work. An IISReset will generally get it going again. The Windows event log shows the following error most mornings at around 01:45 (GUID blanked for this post). Information Rights Management (IRM): Protec...

Study Materials for Sharepoint 2010 Development Exam (70-573)

My boss wants me to become certified in Sharepoint 2010 development ... like yesterday. What are some good study materials for the test? ...

Retrieve resource working hours from Project Server via PSI

Hi, I'm working with SharePoint and ProjectServer 2007 via PSI. I need to retrieve the working hours of an employee in a project during a date range but I can't find a way to do it. The closest data I've gotten is the RES_ACT_WORK from Project.ReadProject(), but this is a total value. Any ideas? ...

Web parts in SharePoint

I wonder if there's a limit in SharePoint about the number of WebParts I can have in a page. Also, if a web part zone has some kind of limit, or if a page can only have a certain number of web part zones. ...

Add Multi line text field to sharepoint

Hi, I am trying to add a multi-line text field to a document within Sharepoint but can't currently figure out how to do it. Below is the code i have which works for most of the fields. SPFile file = folder.Files.Add(*snip*); file.Item[guid] = stringValue; file.Item.SystemUpdate(true); The document adds with no issues the ...

SharePoint WebPart Type Question

I want to do some stuff to WebParts based on the type of WebPart is being passed to a method. I'm finding that I'm doing: if(obj is Microsoft.SharePoint.WebPartPages.ContentEditorWebPart) ... else if (obj is SummaryLinkWebPart) It smells funny to keep doing this for all WebParts. Is there a design pattern that I should be using instea...

Correct MultiChoice Values in LINQ to SharePoint Query

I am using a LINQ to SharePoint query to return items from a SharePoint list. var myOpenTasksQuery = from myTasks in tasks where myTasks.TaskStatus != TaskStatus.Completed select myTasks However, the list I am querying, an OOTB Tasks list, there are a number of multi-choice fields (Status,...

Issue with Picture Library Slideshow Web Part after export/import of site collection (SP2010)

I recently exported/imported an SP2010 site collection from Dev to Prod. The site collection had about 90 sites, which were all driven from a site template. Once the export/import had taken place, I created an additional 15 sites (in Prod), using the original site template that was created in the Dev environment. Everything seemed to be ...

Change ContentType - SharePoint Workflow in VS2008

Hi Everyone, I need to change the ContentType in my Sharepoint workflow. If I set the following will this change it? If not how. If I am presently using ContentType 1 for a List and want to switch to using ContentType 2 what code do I need in order to make this happen? SPListItem currentItem = workflowProperties.Item; SPContentType myC...

SharePoint - Set custom publishing page layout custom field programatically

I have a custom publishing page content type, based on the Publishing Article Page content type. On this content type, I have a custom field named "PageContentCategory". In my code to create new pages, I tried this: PublishingPage newPublishingPage = this.currentPublishingWeb.GetPublishingPages().Add(pageName, newPageSelectedLayout); i...

JAX-WS and SharePoint usergroup web service

Hi All, I have a small app which query our SharePoint server' Web Service interface for a list of all users for a group. I can see the raw HTTP response is coming back with all the users listed, but JAX-WS response object (as created under NetBeans 6.9) contains only a blank Group Name String value. There is no trace of all the user nam...

How to change email FROM address field?

I was trying to change FROM field with Name and Email address. But When I get email It is comaing like below My network <[email protected] [My network <[email protected]] Mycode is like below const string from = "My network <[email protected]>"; StringDictionary headers = new StringDictionary(); headers.Add("to"...

SharePoint -clear assembly cache

Hi -I have a WSS site on a shared third-party host. I have a solution with some custom controls -I then use the SmartPart web part to show these controls. Here is the problem -I update the code and publish the solution to the remote host. But then I see the results of the "old" assembly. I tried everything and the only solution is to ...

Security validation error when try get data from sharepoint using silverlight.

I try to execute this code in Silcerlight 4 contol hosted in webpart: clientCtx = new ClientContext(ApplicationContext.Current.Url); clientCtx.ValidateOnClient = true; clientCtx.Load(clientCtx.Web); clientCtx.ExecuteQueryAsync(updateConnectionStatus, Failed); but it fails and go Failed method and I recive error: "The security validat...

how to do sharepoint database disk usage analysis and selective replication?

Hello, I have a SharePoint 2007 database that is 16GB in size and I want to know why, and how I can reduce the size. Ideally I would like a trimmed replica to use as a developer workstation that retains a good sample data set, and has the ability to be refreshed. Can you please tell me if there are any third party tools or other meth...

FileNotFound Exception with Sharepoint 2010 with the SPSite Constructor

I try to instantiate a instance of SPSite on the farm server in a console app and I give in parameter the whole website (http://sp2010/). I also made sure that the account running MyApp.exe is Site Collection Administrator. However, I can't make an instance of SPSite whatever I am trying to do. I always gives back "FileNotFoundException...

Hiow to switch Infopath view in XMLFormView Webpart when the Web Part loads ?

Hi, I am using the code given at following link : How To: Display browser enabled InfoPath forms in a web part supporting connections in my custom web part. Does any one know how to switch the Infopath view to a specific View when the web part loads ? Thanks, Nikhil ...

validating form in sharepoint

Hi all, I developed a screen in which there are fields like first name,username,password and email. I validated these fields using javascript and came to know that javascript is not that safe. So i decided to validate on server side also. My question is whether i can use asp controls like requiredfieldvalidator, regularexpression validat...