The process of developing software, including requirements gathering, solution design and analysis, implementation, testing, deployment, support and maintenance.
2
votes
3answers
188 views
Deny user access from SharePoint Native but allow it from custom application
How can i restrict a user from entering SharePoint - unless he is using my custom application?
For example, a user tries to open http://Mysite , he gets an access denied error.
But as the same time, ...
0
votes
2answers
101 views
Access the column DisplayName from within a custom field's CreateChildControls()
I am making a custom field in SharePoint 2010. From within the CreateChildControls() function, I would like to refer to the field by the name it has been given in the list. Is this possible?
For ...
1
vote
2answers
603 views
Show deleted users in User Information List programmatically
I am working with retrieving user info programmatically in WSS 3.0. I understand that users are stored in each Site Collection's User Information List. Deleted users are not visible in the User ...
0
votes
1answer
694 views
How Do I Get the MySite Images and Full Name of the MySite owner in MOSS 2007 in C#
I am building a simple web part that needs the image that is used from the MySite and the First and Last name of the site owner. I know how to get the current user, I need the name. I am also having ...
2
votes
2answers
3k views
How do I disable\stop or enable\start Sharepoint 2010 on my Windows 7 development machine
I used the SharePoint 2010 Easy Setup Script to setup my Windows 7 machine for Sharepoint Development. However, I don't want the Sharepoint services hogging up CPU in the background when I'm doing ...
2
votes
1answer
926 views
Programmaticly change Document ID's
I want to change the Document ID through code, the why is out scope for this question. I do have a reason, and I can explain this if you want, but please accept the fact that I have the need to change ...
1
vote
1answer
502 views
What are the best options for parsing an email message?
So I have a document library setup to accept incoming emails. As I can see from the library's columns, there are a number of fields that I can leverage for information (i.e. E-Mail CC, etc) for ...
0
votes
1answer
303 views
How can I close this web part using Javascript?
I'm trying on my site's homepage to close a web part programmatically using Javascript. The code fires, but the web part doesn't close. How can I close the web part programmatically?
var ...
0
votes
1answer
141 views
Workflow security exception with custom dll
I have a workflow that uses a custom dll that I built. I have placed the dll into Inetpub website bin folder.
custom dll has 2 classes
XMLUtilities now refferd to as xml
Sharepoint helper now ...
2
votes
2answers
532 views
Workflow for CustomList
I'm creating a Sequential Workflow on a CustomList in viualstudio 2010.
My problem is: when I publish the workflow, the list forms (for NewItem, EditItem and so on) get changed and now just contain ...
0
votes
1answer
186 views
ChangeLayoutMode(null, true): what are the parameter names?
This saves a page you're editing in SharePoint:
<a href="javascript:ChangeLayoutMode(null,true);">Save</a>
What are the names of the two parameters to this method? More important, what ...
2
votes
2answers
286 views
how to show infopath form in an email
is it possible to have a form in an email? I'm needing to create a form that will be sent to a user based on a workflow variable. This email will have two field in it that will need to be filled out ...
1
vote
0answers
58 views
Everytime I try to add an existing or new project to my SharePoint 2010 Solution it says “File not Found”
Everytime I try to add a class library to my SharePoint 2010 solution (which consists of about 4 other projects), I get the error:
Could not load file or assembly 'AF.XMLMapping, Version=1.0.0.0, ...
0
votes
4answers
1k views
Error: The Web application at http://[URL to SharePoint]/ could not be found?
I have googled it but am unable to find the correct answer to this problem. Below is my code that I used in my development server. Please tell me the exact solution related to that problem:
The ...
1
vote
2answers
2k views
Lists.asmx returning 401 Unauthorized
I extended the DataFormWebPart to use a SoapDataSource and get the data from the lists.asmx webservice
it works fine as long as i access data from the same webapplication but as soon as i try to get ...
1
vote
1answer
29 views
How to code against the navigation area next to the site actions
I'm trying to create a custom navigation area. Is there a way to get a custom coded control/web part, ect in this area? Any advice would be greatly appreciated. I'm trying to get a "most visited" ...
2
votes
1answer
651 views
UP sync - External content type picker doesn't show content type
I create simple content type in SPDesigner. After that I gave all privilegies to that content type (in CA->BDCService; for my user account). Also this content type has both necessary (ReadItem and ...
1
vote
1answer
719 views
4
votes
1answer
2k views
Open modal dialog from code-behind with parameters
What I need to do is to open an aspx-page in a modal dialog when the user clicks on a asp:button.
Currently I'm doing this:
(Markup)
<asp:Button runat="server" ID="TestButton" Text="Add ...
1
vote
5answers
1k views
SP2010 Show lists and libraries from a top site in subsites
I would like to create a web part page or custom layout page in several subsites which is displaying lists and libraries of my top site (root site collection).
One of the solutions I found was the ...
2
votes
2answers
357 views
Programming without being at the SharePoint Server
From my understanding, if one need to use Visual Studio to do some programming (be it C# or VB) on the SharePoint Server, one need to be at the Server that have Visual Studio, SharePoint Server and ...
0
votes
2answers
154 views
how to calculate the other country time. using my local machine time in c#?
Example:
My system having India time and my array contains all the countries GMT time.
How to do the calculation to get the other country time?
if my time is 5.00 P.M if the country is Pakistan it ...
2
votes
0answers
248 views
SPLongRunning in page_load without redirect
Is there a way for SPLongOperation not to reload the page but only to hide the processing-Wheel? My scenario is that when I open a model-dialog I want to show a loading/processing information to the ...
1
vote
1answer
289 views
Error in deployment from VS2010 - The type initializer for 'MyClass' threw an exception
When trying to deploy a SharePoint 2010 solution from Visual Studio 2010, I'm getting the following error:
Error occurred in deployment step 'Add Solution': The type initializer for 'Singleton' threw ...
0
votes
3answers
3k views
Add values to lookupmulti field in c#
I want to add values to a lookupmulti field with c#. the form shows the field correctly but my code just won't work:
SPList list = SPContext.Current.Web.Lists["testlist"];
SPListItem item = ...
2
votes
1answer
302 views
Security Exception - Trying to load MySite Blog
When I try to run this async query it fails:
private void SomeFunction()
{
Thread thread = new Thread(GetBlogInfo);
thread.Start();
}
private void GetBlogInfo()
{
...
1
vote
2answers
56 views
DispatcherTimer in Sharepoint 2010 [closed]
My dispatcher timer is not calling on timer_tick event.
it's my code:
DispatcherTimer timer = new DispatcherTimer();
timer.Tick += timer_tick();
timer.Interval = new TimeSpan(0,0,0,10);
...
5
votes
1answer
343 views
Client Object Model SystemUpdate
I need to have the SystemUpdate functionality from the Client Object Model. Is there any way I can do it since the ListItem.SystemUpdate() does not exist.
Another solution would be to disable the ...
3
votes
3answers
3k views
FeatureActivated event receiver giving access denied when trying so set WebApplication property
When a Site event feature is activated I am trying to set some properties on the web application. My feature uses this value.
public override void FeatureActivated(SPFeatureReceiverProperties ...
1
vote
3answers
2k views
Not receiving e-email notification when creating new tasks in a custom sequential workflow
I am setting the AssignedTo and SendEmailNotification properties for the SPWorkflowTaskProperties object, the task gets created and assigned correctly but no email is received.
How can I check if ...
2
votes
4answers
509 views
why doesn't SPMetal generate Publishing Schedule columns?
Happy 2011 experts,
I have a sharepoint 2010 publishing site that I use SPMetal to generate classes to. The problem is some fields do not get generated like:
PublishingStartDate and ...
2
votes
1answer
437 views
Using Foundation Search and Search Server Express simultaneously
i am using the Sharepoint api to return search results which i am getting with Microsoft.SharePoint.Search.Query.KeywordQuery.
On my development machine this is working fine.
On the Server where ...
3
votes
2answers
176 views
How to programmatically detect if a solution is deployed?
Situation:
There's a sharepoint farm with ~60 solutions. On some not specified time someone can deploy a new /update an existing solution to this farm. Everytime a deployment is successfull I need to ...
3
votes
3answers
218 views
How do you organize your sharepoint developments?
I am starting to do a lot of sharepoint development lately, and some of the things that I have done and I dont like is to use sharepoint designer directly for things like pagelayouts, lists ...
2
votes
2answers
119 views
SP 2010 Views on a list depending on the access rights
Is there a possibility to link views on a custom list to the access rights on this list?
E.g. I have a custom list with information stored in diffrent columns
I've created two views: one for owners ...
1
vote
2answers
440 views
FlexPaper in SharePoint 2010
I'd like to create a custom web part with the FlexPaper component so we can use it in SharePoint 2010. The user would go to the web part properties to select a SWF file (converted PDF) from the Site ...
2
votes
2answers
318 views
display a warning message visible on every page
Occasionally we would like to display a warning message on our Sharepoint site, for example to warn in advance users of scheduled downtime or that the site is temporarly overloaded.
This message ...
0
votes
1answer
156 views
Right Management
I'm planing a sharepoint application. One part of the solution should be a list. Each list item should have two persons who are allowed to make changes on it (plus two Administratorgroups). The ...
2
votes
1answer
2k views
How to remove a permission to a SPPrincipal on a Item (programmatically)
I'm trying to work with privileges on elements of a list. I want the item to mantain the same privileges for all SPPrincipal I don't modify.
This is the code
public static void ...
2
votes
1answer
66 views
how to get webapplication from a site
I have a site object. How do I get the webapplication from the site? I do not have spcontext available. I am using SharePoint 2010. I am trying to do this in a feature event reciever when my feature ...
1
vote
2answers
417 views
Sharepoint site throws exception on clicking save button after uploading a file
I have deployed an event reciever with item added event on a document library in sharepoint site.
In item added event I am calculating the number of pages for the uploaded document and updated a ...
1
vote
1answer
282 views
File Attachment control events in InfoPath 2010
Does anyone know of any kind of click events for the File Attachment Control in InfoPath 2010 forms? Here is a link to the control http://msdn.microsoft.com/en-us/library/dd958468(v=office.12).aspx.
...
0
votes
2answers
652 views
FeatureInstalled event receiver acessubg spweb
I am trying to add a propertie to a WebAplication on FeatureInstalled event receiver.
public override void FeatureInstalled(SPFeatureReceiverProperties properties)
{
...
1
vote
2answers
345 views
A way of setting custom configuration properties that can be changed via power shell
I have a few custom settings for my feature that I am creating. I want a way to populate these values on install with some default values. However if needed an admin should be able to change the ...
2
votes
3answers
2k views
SP2010 Activate feature through code
I'm using the below code to activate the "SharePoint Server Publishing Infrastructure" feature for a site collection. My code runs fine when I'm logged in as a site collection administrator. The ...
2
votes
1answer
120 views
Is there a way to execute commandline-arguments via code from a feature/webpart (Sharepoint 2010)?
I mean, for example, something like a deployment. Is it possible to force something like this from within a webpart using the "standard" sharepoint functionality?
Using the central-administration is ...
1
vote
1answer
650 views
How to impersonate specific user in sharepoint foundation by code
I'm trying to impersonate another user by code.. I know in Sharepoint Enterprise there's a method which uses the UserProfileManager to impersonate...
I wrote down this "trace code" without know if it ...
1
vote
3answers
1k views
SharePoint InputFormTextBox saving values to sharepoint list
I am using a input form text box here is the tag
</asp:Label><SharePoint:InputFormTextBox
runat="server" ID="respRichTextBox" ValidationGroup="CreateCase" Rows="10" RichText="true"
...
2
votes
1answer
258 views
How to implement chat using XMPP in SharePoint?
I need to implement chat using the XMPP protocol in a SharePoint site. Can anyone provide sample code, or recommendations about how this can be done?
0
votes
1answer
185 views
accordian view for webparts
is there an out of the box feature / other that will allow me to create a view to give an "accordion" effect to hide and show webparts?
example:
section1
webpart 1
webpart 2
webpart 3
...

