The process of developing software, including requirements gathering, solution design and analysis, implementation, testing, deployment, support and maintenance.

learn more… | top users | synonyms (3)

0
votes
1answer
279 views

Problem with join two lists by linq

I wanna join two list and fill drop down list by specific column but i have error in join query note:c.user_id is lookup field my code lst.DataSource = (from c in dc.Complainant ...
0
votes
0answers
20 views

How to validate multiple fields with c# custom code on button click before submitting

My main goal here is to pop up a validation box that lists which fields have not been populated(still empty) before allowing the user to submit. I know you can use the method built into InfoPath but ...
7
votes
1answer
2k views

Programmatically add quick launch link to a modal dialog box

I have implemented a feature that once activated adds a heading called Home, and a link underneath to a NewForm.aspx like such: // Add Home node var mainListsNode = new SPNavigationNode("Home", ...
7
votes
1answer
661 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 ...
6
votes
4answers
17k views

Error occurred in deployment step 'Activate Features': <nativehr>0x80070002</nativehr><nativestack></nativestack>

I have a feature. On the FeatureActivated event I am creating a list if it is not there. I also have an EventReceiver that in the elements.xml on the Receivers node has the attribute ListUrl. This is ...
6
votes
1answer
2k views

Attach a file to the list item

I attach a file to the list item when it is updating and when new item added. Additional condition when item updating - if the file already exists, remove it and replace the new one. I receive events ...
1
vote
2answers
78 views

Retrieve all site collections

I want to retrieve all site collections in an Online tenant through Visual Studio: I can do it via Powershell: get-sposite on-premise server : Get-SPSite on-premise again: var sites = ...
0
votes
1answer
646 views

Sharepoint 2013 Site Title only show parent site

I have a team site and am using the Site Title snippet, but I don't want that changing to show my subsite titles. For example here is an example team site hierarchy we are using for our companies ...
0
votes
1answer
336 views

Adding ListViewWebPart with CSOM

I have to add a few webparts to a default page using the Client side object model. For the most part this goes fine, I can add a XSLT and content query webparts. However, when i try to add a ...
4
votes
1answer
32 views

How to programmingly create a “Link to a Document” in an ASP.net web application?

I have a asp.net web application which requires to upload files to a SharePoint document library. I got that working. Now, I need to know how to code using C# in my web application to create a "Link ...
0
votes
1answer
566 views

Load properties of list item client object model c#

I have a situation where I need to load items from the list and which columns to be loaded cannot be hardocded, as it will be decided on user input. I have following code. ocamlQuery.ViewXml = ...
0
votes
1answer
1k views

Register a global.asax into a SharePoint Site

I'm trying add a .asax file into a SharePoint site. I've been following this tutorial. It's quite simple but I'm new to web programming, and I didn't understand where I must insert (and how) the ...
0
votes
2answers
33 views

Create a new site collection c#

I'm trying to create a new site collection in Sharepoint Online tenant with Visual Studio. 1) I found http://msdn.microsoft.com/en-us/library/office/ms448720(v=office.14).aspx which says that the ...
0
votes
1answer
716 views

Error: Unexpected response data from server - user Profile properties displays

I get the mentioned error message when i try to display the User Profile properties by using JSOM(Java Script Object Model) Error: Unexpected response data from server. The error occurs for around 1 ...
0
votes
1answer
17 views

Wrong hyperlink is generated for custom central administration action group image

I have a custom action group deployed to central administration; something like "Contoso IT" in this picture: The problem is that that for some reason, the hyperlink for "Contoso IT" (the title) is ...
6
votes
1answer
246 views

Programmatically set a WebPart title to a $Resources value

I need to programmatically add a web part to a page where the title is using a $Resources:Filename,Key; string. I know I can use SPUtility.GetLocalisedString() to retrieve the correct value (and loop ...
0
votes
1answer
469 views

GetitembyId in list

SPWeb web = SPContext.Current.Web; SPList list = web.Lists["MyList"]; SPListItem item = list.GetItemById(1); item["Title"] = TextBox_Name.Text; item["ProductNumber"] = TextBox_ProdNum.Text; ...
0
votes
1answer
19 views

What permissions are needed to develop apps on SPO 365?

I'm new with SPO365, but from what I read, to deploy and test apps I need a developer site (site collection), but I don't have access to create it, neither access to Central Admin. Does my developer ...
0
votes
1answer
21 views

Implement multi select lookup using listbox control in aspx page

How can I implement the multi look up select list items functionality in SharePoint using asp.net C#? Please help me with some code, I am using two list boxes and have added a add remove button on ...
0
votes
0answers
5 views

Timer Thread Method not executing properly

I have a method that refreshes a grid view, I need to run this method on a page every 60 seconds. To do so I have implemented the following timer thread: var timer = new System.Threading.Timer( ...
0
votes
2answers
30 views

How retrieve custom fields only when using SPListItemCollection?

Hi with following code I am retrieving a DataTable from a List: using (SPSite site = new SPSite("http:...")) { using(SPWeb web = site.OpenWeb()) { ...
2
votes
1answer
293 views

making an SP.UI print dialog

I'm thinking of adding a print button to my list ribbon , the minute I click on this button a print dialog appears showing the list of the available printers on my computer. so this printdialog i was ...
0
votes
2answers
1k views

Error when using ItemAdded event handler to update columns on newly uploaded document

I have an ItemAdded event handler connected to a document library, in order to automatically populate certain fields when a new document is uploaded: public class AutoPopulateDocumentFields : ...
0
votes
1answer
387 views

SiteMapProvider for MySites' breadcrumb

My question is regarding the site map provider. I have a breadcrumb in the mysites and i use SPContentMapProvider to build the breadcrumb, but the problem is it always shows 'Home', so if im on my ...
0
votes
2answers
37 views

Linq get Distinct or first from multiple group

Ok, I'm not understanding something here with what I am attempting to query here. I have a list like the following. Title Subject Content Date ...
0
votes
0answers
8 views

Translate GUIDs to library, list, webpart, or component name

I have a list of GUIDs used but I don't have a reference to tell what each guid is for. Could I programmatically convert these Guids to something more useful such as Guid ==> "Document Library" ...
10
votes
4answers
9k views

SP.UI.ModalDialog.showModalDialog using the html option

http://msdn.microsoft.com/en-us/library/ff410058.aspx says that you can use the option html to display html text in a modal. I have a string like this; var html = ...
1
vote
2answers
2k views

Trying to get user's manager: Getting SPServiceContext with SiteSubscriptionId of {00000000-0000-0000-0000-000000000000}

I am trying to get a user's manager with this code: SPSecurity.RunWithElevatedPriviliges(delegate { SPSite site = new SPSite(SPContext.Current.Site.Url); SPServiceContext context = ...
0
votes
1answer
24 views

Programmatically (C#) set date field to blank in 2010

I have tried setting my date field to an empty string ("") and setting it to "01/01/0001". Both returned the error "String is not formatted as date time". I have several thousand items across a few ...
0
votes
1answer
32 views

Developing Apps in Sharepoint

I want to learn how to develop apps for SharePoint. I created a new developer site collection. When I try to install NAPA I get the following message "Sorry this app is not supported on your server." ...
8
votes
2answers
112 views

How do I delimit Property bag values so search treats them as individual searchable words?

currently I'm using the property bag with values that are comma separated something like: web.AllProperties["fruits"] = "bananas, apples, oranges, tomatoes"; Currently search is treating them as one ...
0
votes
1answer
21 views

CAML query where date field is greater than another date field

Is it possible to write a CAML query that uses another field as the Value part of the filter? For example in SQL it would look like this: WHERE Field1 > Field2 This was by best guess but it is not ...
0
votes
1answer
25 views

color picker in custom webpart properties

I want to have custom color picker in web part properties to let users select colors for headings. Any idea how to achieve this.
0
votes
1answer
358 views

List Onload event

What I want to do: I have a custom list that contains a lot of items. When an user loads the list, all items of his view should be checked. If there is a special value in the listitem a notifiaction ...
2
votes
1answer
451 views

How to update metadata?

I have following code (didn't list the whole code) behind a button on a InfoPath Managed Form. and it works meaning I can submit data to a list. Now I have 2 controls on the form that is ...
1
vote
0answers
20 views

Replace default List View Web Parts

As the title explains, I am trying to remove the default Web Parts that are associated to list items and replace them with my own custom web parts. Here is what I've attempted so far: SPList list = ...
1
vote
0answers
8 views

Does writing a custom RBS provider force one to put SharePoint into unsupported state?

It is well known that modifying a content database directly by running SQL queries results in an unsupported state. However, it is possible to develop custom RBS providers. Note that when an item is ...
0
votes
1answer
15 views

how to check if domain group has any kind of permissions to web after ensure

I am adding user to web, he might be added or might not be. I want to only give him permissions if he already doesnot have/has. How can i check. SPSite site = new SPSite(webUrl); ...
0
votes
3answers
56 views

Building a Sharepoint project - the big picture

I'm a Sharepoint beginner so my question could be naive but I wasn't able to find any answer. Could someone give me a brief guide about developing a complete, enterprise class solutions in a shorat ...
1
vote
1answer
59 views

groups.getByName(groupname) is undefined

I have copied some snippets of code from here to test if a user belongs to a certain group, I am using Sharepoint 2010, however I am getting an method is undefined error. I am making sure that sp.js ...
0
votes
1answer
2k views

Limit a user group to a specific view created via InfoPath 2010

I have created a new view called 'RequesterView' (via InfoPath 2010) to add items to a issue tracking list. The purpose of this is to limit the visibility of certain fields such as 'Assigned To', 'Due ...
2
votes
0answers
76 views

Is it possible to dynamically hide specific custom retention actions in the dropdown menu?

I'm dynamically creating custom retention actions for information management policies. My problem is that in the retention action dropdown menu, I would like to show only some custom retention actions ...
2
votes
4answers
3k views

How to Password Protect a SharePoint Object (Reassuring High Level Users That its secure)

Edit to clarify: The purpose of this isn't to replace SharePoint security or to add some extra super security or about trust in SharePoint, it is instead to consider something that is very much ...
3
votes
1answer
129 views

Does adding custom code to native SharePoint aspx files automatically result in an unsupported state?

I want to add some custom code to one of the native SharePoint's aspx files in the hive (14\TEMPLATE\LAYOUTS). Specifically, I wish to implement a Page_LoadComplete event that does some additional ...
1
vote
1answer
24 views

Compare Credentials to his one's own login credentials

I would like to compare the current user credentials with my UserAccount and if they are identical then I would like to have an alert, but It doesn't work. I don't know why.I hoept that you can help ...
0
votes
0answers
14 views

This Webpage Is Not Available With SharePoint

I've create a new Cloud Business App for SharePoint in Visual Studio 3013. I've added no code or altered the project in any way. The only thing I've done is created the Cloud Business App from one of ...
0
votes
2answers
19 views

Move SharePoint list items into folders that exists in the same list programmatically?

Respected members of StackExchange, kindly help me with your kind suggestions to solve the issue. I have +20,000 items in a SharePoint list that i want to move into the folders that also exists in ...
2
votes
2answers
30 views

Complete new tasked with creating a SharePoint website… where do I begin?

I know a little bit about what SharePoint is (some kind of website designer kit that lets users design their web pages), but that's about it. I am tasked with assisting the creation of a website ...
3
votes
1answer
381 views

SPAppToken (context token) is null

I have a Sharepoint 2013 on premise environment for which I am developing an provider hosted app using Visual Studio. The Visual Studio project has an app project which contains a custom ribbon ...
0
votes
1answer
27 views

Why does client side .js or JQUERY sometimes not function at all and at other times does function?

SharePoint 2010 Enterprise on our network. Same site, same page, same time of day, same code behind yet sometimes our client side code functions and sometimes it doesn't. when pulling the custom ...