Sebastien Stettler
  • Member for 10 years, 3 months
  • Last seen more than 2 years ago
Get Items Under Folder CAML
Accepted answer
32 votes

i managed to get it working . i changed the scope from "Recursive" to "RecursiveAll", RecursiveAll gets all files and all folders under the specidified location. Caml query was replaced with ...

View answer
Powershell command to copy file from Document Library to a fileshare
3 votes

You can use this method. $fileUrl = url for file on sharepoint $destinationfolder = destinationFolder function ProcessURL { param($fileUrl,$destinationfolder) $pathToTry = "http:...

View answer
Getting a count of list items in a list via ECMAScript
3 votes

The object Sharepoint.client.List has a property ItemCount which will return to you a count of the total items in that list http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.client....

View answer
Uploading file version - Client Object Model
3 votes

Here is a little code sample that will simulate versioning of a file public File changeDocumentVersion(string version,File file){ string [] versions = version.Split(new char[]{'.'}); int ...

View answer
Knowledge areas of a SharePoint Architect
2 votes

A Sharepoint Architecht will design a solution from a high level so he will not get into the nity grity of configuration and development. He should have experties in all fields of sharepoint. if he ...

View answer
How to start a workflow from events within a custom webpart
Accepted answer
2 votes

if it is a webpart you have built you can manualy start and stop the workflow here is a snippet public void StartWorkflow(SPWorkflowManager manager,string eventData,SPListItem listItem,...

View answer
Performance of Client Object Model vs. Server Object Model
2 votes

I have done extensive work with Client object model and it is definately slower then using the sharepoint core libraries. the reason for this is because if you use the client object model. you have to ...

View answer
Unable to create an instance of "ActivityManager" using Powershell?
Accepted answer
1 votes

It takes two arguments: public ActivityManager( UserProfile userProfile, SPServiceContext serviceContext ) You are giving it a Microsoft.Office.Server.ServerContext, not a SPServiceContext. ...

View answer
Is there any way to allow upload of files whose name contains the "#" character without changing the name?
Accepted answer
1 votes

the only way i see you being able to do this is with a custom application that uploads them to SharePoint and handles the names. should be pretty easy to build

View answer
Open link to a local folder
1 votes

try these two and tell me what results you get for each <a href="file:///F:/dir1/dir2/readme.txt" onclick="window.open(&#39;file:///F:/dir1/dir2/readme.txt&#39;); return false;" target="...

View answer
Exception in file C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\Template\Layouts\EditingMenu\SiteAction.xml:
Accepted answer
1 votes

<?xml version="1.0" encoding="utf-8" ?> <Console> <customfile FileName="CustomSiteAction" /> <references> <reference TagPrefix="cms" assembly="...

View answer
How to pass FBA credentials to a custom wcf service @ SP
1 votes

you can pass the users token to the wcf service token of current user can be found as follows: SPWeb myWeb = SPContext.Current.Web; SPUser user = myWeb.CurrentUser SPUserToken token = user.UserToken ...

View answer
Visual Studio assembly references form common assemblies and SharePoint
1 votes

You will have to deploy shared libraries to the gac if you are using Sharepoint objects... i had a simialar issue like this... Issue Refrence just have a look at my answer, it will explain why it ...

View answer
Using PowerShell vs. cmd.exe in SharePoint development?
1 votes

you cannot do much using cmd.exe in terms of working with sharepoint. the key difference between cmd.exe and powershell when it comes to sharepoint is the fact that yuo can use C# assemblies within ...

View answer
Getting the ID of a newly uploaded document
1 votes

_dlc_DocId is the internal field that has allows you to change or retrive the document id. also agree with row limit. but if a newly created/uploaded document as in version 1. then maybe insted of ...

View answer
Listdata svc - Copying SPListItems with attachments
Accepted answer
1 votes

i haven't tried getting the binaries using the svc, but if you can get the URL of the attachment then, you can use the client object model to get the actual document. http://msdn.microsoft.com/en-us/...

View answer
Publish contenttype after activating feature (Office 365)
1 votes

Hi Here is a example how to create a custom content type and add it to 365 ClientContext clientContext = new ClientContext("http://anmol-pc"); Web web = clientContext.Web; ContentTypeCollection ...

View answer
Authoring Environment
1 votes

From what i can gather from your post, is that you might have content that is required for your webparts, that must be prebuilt. for eg a List containing template data for a webpart this list would ...

View answer
Redirect from ItemAdded event
0 votes

from my understanding about event receivers is that you cannot edit the users current session as it is back end work. perhaps a workflow with a workflow history could be used in your case. if the ...

View answer
Add a column to an existing site from a site column
0 votes

here is a snippet followed by some documention for second part SPList list = web[listname] SPView view = list.Views[viewname] view.ViewFields.Add(col1) view.ViewFields.Add(col2) view.Update http://...

View answer
Webpart updating event
0 votes

Ok so i found the soltion if you make a custom webpart editor panel using the class Editorpart http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.webparts.editorpart.aspx you can ...

View answer
Data View Webpart
0 votes

you could use powershell to create a new instance of a dvwp. configure all the settings via powershell. get the instance of a page, access the webpart manager of that page, add the newly created ...

View answer
Is there a way to have the tool part pane open where the WebPart zone is located?
0 votes

you could try editing the master page with java script. you put in some sort of on scroll down move that controls div my the distance that you have scrolled

View answer
Kicking off a workflow with an event handler on an anonymously submitted list item
0 votes

here is a method that will solve this issue for you public void StartWorkflow(SPWorkflowManager manager, string eventData, SPListItem listItem, SPWorkflowAssociation workflow) { ...

View answer
Is it possible for ECMAScript to manipulate a library?
0 votes

Yes You can. Your code does look correct to retrive items from your document library. Judging from your error it has something to do with the configuration of your library. what else would you like ...

View answer
How to make datasheet view 100% of browser height
0 votes

maybe it will be better to put the datasheet view into a popup and it expand it their?

View answer
Dataview Web part and SQL - Way to use trusted connection?
0 votes

I am using sp2010 but it might work for 2007 http://msdn.microsoft.com/en-us/library/ff647396.aspx you can set the asp datasource in this manner static void Main(string[] args) { ...

View answer
Datasheet view for sql table?
0 votes

Very Simple soltion connect the sql table to sharepoint using BCS you can do this easily in sharepoint designer. your interface will then be the same as a list

View answer
Workflow security exception with custom dll
Accepted answer
0 votes

Ok i have solved this issue. the problem was that the dll was not running under full trust, so you can use any objects other then the SP objects. if you have deployed your dll to %winroot%\inetpub\...

View answer
How to increase the web service timeout to a larger value so that publishing a large infopath form to SharePoint library can be successful?
Accepted answer
0 votes

{Root Drive}:\inetpub\wwwroot\wss\VirtualDirectories{Web Application Port} in that directory you will find web.config file, you should be able to change time out values in that xml file their are ...

View answer