sharepoint

SharePoint - get logged-in user with ASP, manipulate with javascript?

Hello, I have an .aspx page built in SharePoint that I want to get the user name of the currently logged-in user (through ASP) and then manipulate it (using javascript). I'm getting an "object expected" error. Here's some of the code: function checkGroupPermissions() { var loginNameVar = document.getElementById("LoginName1").innerHTML;...

different homepage to different group in sharepoint?

how can i show a different homepage to different audience (or group) in sharepoint moss? ...

Hiding "Group By" value in a Content Query Web part

Hello I'm making a Sharepoint 2007 Content Query web part, where I want to group by a field (ArticleSticky), but I don't want to show the field in the webpart. Is there some way I can hide the field in the webpart? Maybe in the XSLT definition ? ...

Items not included SharePoint search results if a property missing

I use an MSSQLFT query to poll Sharepoint's search through Search.asxm web service. The query goes like this: SELECT PreferredName, Department, AccountName, MobilePhone, WorkPhone Title, JobTitle, OfficeNumber FROM SCOPE() WHERE "scope"="People" AND JobTitle="Something" ORDER BY Department, OfficeNumber Some peop...

Which windows account is used to upload files to SharePoint document library?

I am using the following code WindowsIdentity wIdb4 = WindowsIdentity.GetCurrent(); string name = wIdb4.Name; in a workflow to show which user account is being used to upload a document. When i write the above mentioned string in a workflow history event, it always returns NETWORK SERVICE, even if i am logged in using the site...

Sharepoint Blog Comment Input textbox got disappeared...

I have one blog site created.I was working as required for almost 2 month. But,Suddenly Comments link stopped working.I am not able to see Add Comment Textboxes. There is no problem of security access,I have already checked those setting. Searched a lot...but cant find any solution. ...

CAML return only 10 results

Is it possible using CAML to limit the amount of results returned. Say for example my query would pull back 25 results I would like the first 10 only. ...

Help me understand Sharepoint

We've been asked to create a web application. One part of the specification is that in future, it can be integrated into Sharepoint. The last version of this app was written in PHP and "integrated" by means of an iframe embedded into Sharepoint; not ideal. I'm looking to understand the use of Sharepoint in this context. I believe that y...

Cannot associate a custom SharePoint Workflow with a Content Type in SharePoint Server 2010

To preface, I am working with SharePoint Server 2010 Beta 2, Visual Studio 2010 Ultimate RC. I have built a custom Content Type based on the Item type with a few custom site columns. I also have built a custom Sequential Workflow using Visual Studio 2010. This is a relatively simple workflow that creates a task, waits for the task to ...

Is this WSP uninstallation script complete?

I am using the following script for uninstallation of a wsp workflow feature. Please can someone check and confirm that it contains all the required steps for the uninstallation or not. I am doubtful because when i run this uninstallation script and install the new version of the wsp; the workflow still behaves similar to what it did wi...

How to get distinct values of a managed property through SharePoint search?

I am building a phone catalog of my organization (an AJAX application which accesses the search.asmx web service). I'd like to show a list box where the user could select a department (which is stored in managed property Department). To fill the list box with values, I need to somehow select all the distinct values of that property. Is ...

When is Sharepoint 2007 / Sharepoint 2010 suitable for Line of Business Applications?

From my experience, this is adding minor features at increased implementation and maintenance cost in comparison with using just "pure" Microsoft.Net, ASP.NET and IIS application. Sharepoint 2007 = ( no concept of deployment version control etc, narly css/skinning, weird cms features, sp webparts not recommended, very limited worfklow f...

SharePoint problem: opening a office 2007 document tries to open as a zip file

I have a number of Office 2007 documents (.pptx, .docx, .xlsx) in a SharePoint document library and when user tries to open the documents, it tries to open as a zip file. This happens to some users, but not all. I posted this issue at http://superuser.com/questions/110211/why-office-2007-documents-open-as-a-zip-file, but I failed to me...

Sharepoint webpart for conditional formatting??

Does anyone know of a Sharepoint webpart that provides conditional formatting? For example, if I am displaying a table, I would like to be able to change the backcolor of a row if a specific numeric cell exceeds a certain value. Of course this could easily be done in jQuery, but for political reasons I need to find a way to do it using...

Sharepoint Object Model applicaton cannot run outside of WSS server

I create a C# console application using Microsoft.SharePoint object model VS WSS extensions on Windows Server 2003. The application is supposed to iterate WSS3.0 sites looking for all available lists. It runs just fine on the server. But if I try to run the exe from another computer on the network, the application crashes instantly on...

Sys is undefined in an ajax enabled SharePoint

I have a SharePoint app that is configured correctly in the web.config for asp.net ajax, but when I try to use the Sys class it says it's undefined. I have installed SP2 and know that ajax is enabled because update panels work correctly. ScriptManager is being loaded to the page. I have a script link to register the external js file, and...

Problem - SharePoint Workflow runs as previous version when an email is received

I have modified a SharePoint visual studio workflow which works as per requirement on the dev machine. I have to deploy it to an email enabled document library on sharepoint server and it is set to be started automatically when a new item is added to the library. When i deploy it to the server, and perform a manual upload to the doc libr...

SharePoint feature not getting activated by default

I have created a feature and i am auto activating it whenever 'My Site' gets created. I am activating it for the template SPSMSITEHOST. This feature changes the Picture URL property of User Profile. Now, the problem is my feature gets activated but it seems it does not execute the code by default and and does not change the picture URL ...

Sharepoint Blog Posts : Sort based on Published date

I have a sharepoint intranet portal which has many blogs and they have customized design. We use default Data form webpart for displaying blog posts. By default the posts are sorted based on "created date". I have a new requirement from the client asking me to change the sorting criteria to "Published date". What is the easiest method t...

sharepoint licensing migration to 2008 causing complete failure

I currently use license.validate to check if my product is valid in sharepoint on windows 2003, i keep the license in the 12 hive and it all works. i am testing the same code on 2008 and the whole web application just hangs! Could this be a permissions problem? Any help would be much appreciated. Thanks ...