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

learn more… | top users | synonyms (3)

1
vote
0answers
18 views

How to write an application page it do the function of OfficeExportPage and UnsecuredLayoutsPageBase

We deployed BI reports using performance point services to SharePoint BI site. When user try to Export to Excel, the page redirects to OfficeExportPage.aspx and ask for authentication for anonymous ...
2
votes
0answers
40 views

Implementing paging for a list

I have to implement paging for the list data and the paging should be as: previous 1 2 3 next And the new page number should be added automatically if any item is added to the list if it ...
2
votes
0answers
25 views

how to show less a text [closed]

I have created a function which duty is to Show more text. But i cannot create a Show less to show less my text i have the following html <div class="item"> Ronaldinho joined Barcelona in ...
0
votes
1answer
6k views

The remote server returned an error: (403) Forbidden

I am developing a C# console application on my local computer running on Windows 8. My target SharePoint server is SharePoint Online on Office 365. I am trying to get the web site name using web.Title ...
0
votes
0answers
16 views

Conditional validation Question - Required Fields

Is there a way to do the following type of conditional validation via SharePoint Designer? If a primary field is selected - then secondary fields become required If 1 primary field contains ...
1
vote
1answer
16 views

ObjectDataSource - schema seems cached - unable to refresh

Within a Visual Studio 2012 Visual Web Part, I've created a simple FormView referencing an ObjectDataSource to autogenerate an editable form. Creating this the first time, there was no issue. ...
3
votes
0answers
399 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 ...
0
votes
1answer
31 views

c#: how to write JavaScript function inside c# [closed]

How to add JavaScript function window.print()in C# code. C# snippet : private void CTRL3_5_Clicked(object sender, ClickedEventArgs e) { //JavaScript function here! }
1
vote
2answers
96 views

How i can remove views from my discussion board List name “Answered Questions” & “Unanwered questions”

I have added a discussion board list inside my team site. but I want to remove some views such as: Answered question, unanswered questions, etc... I am not sure if these are standard view or just a ...
5
votes
1answer
502 views

Adding an existing app part using the client object model( finding the xml)

I've recently found this nice thread on adding an existing webpart using the csom: Add an existing WebPart Using the Sharepoint client object Model I've tried the same approach for an app part (so an ...
2
votes
1answer
34 views

How to make a print button in infopath form?

In infoPath form I have a button which duty is to print the current document, I have been trying this one thisXdocument.PrintOut(); but the following error occurs "The name "thisXdocument" does not ...
3
votes
0answers
28 views

The Repository Pattern , refactoring code

I'm trying to develop simple sharepoint application using the repository pattern.Application should return employee informations from SPList based on some queries and than show them into HTML ...
5
votes
3answers
63 views

Optimizing class that contains CAMLQuery, multitier architecture

I'm new to developing sp projects , especially with multitier architecture, so I'm looking for some advices and suggestion how to optimize my code.I've got lot of "similar" queries that I need to ...
1
vote
0answers
25 views

Saving and fetching DateTime values

I have now confused myself how the SharePoint SPListItem DateTime field values should be set and fetched. I'm doing comparison of the dates, and running into issues probably due to me doing double Utc ...
0
votes
2answers
97 views

Is it possible to create a Link to a Document with REST or JSOM?

Is it possible to create a SharePoint list item that uses the Link to Document content type? I would like to be able to add new links with REST, but JSOM could work too. I was thinking if I could just ...
0
votes
1answer
36 views

Download attachments as .zip file

I need to develop a C# custom webpart which allow users to download attachments from a sharepoint list. My webpart lists the attachments which the user has selected. Then, it must show him a link to ...
3
votes
1answer
685 views

GetUserEffectivePermissions returns wrong results

I'm checking the permissions for user on a SharePoint 2013 list: using (var ctx = new ClientContext("http://comtoso.com")) { var list = ctx.Web.Lists.GetByTitle("TestList"); ...
0
votes
1answer
51 views

Retrieve column's source in content type programatically

The source of a column in a content type can be retrieved in the User Interface as follows: Go to List Settings Click on Advanced Settings, set Allow Management of Content Types to Yes and click OK ...
1
vote
1answer
5k 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 ...
5
votes
1answer
1k views

Setting an audience from declarative WebPart?

I have a module that deploys some page. I'm adding webparts to these page, using a <AllUsersWebPart> node within a <View>: <View WebPartZoneID="Body" WebPartOrder="5" ...
0
votes
1answer
51 views

Need to remove permission on Sub-Folders for group programmatically

I am struggling to remove subfolders permissions for a specific group. I've been on internet and of all the solutions I keep getting the error Object does not belong to a list Here is my code ...
0
votes
0answers
27 views

Set a value for all field in desired column? javascript

i have the following solution: in my SP list called QUIZ i have a column named koha i also have a userinterface that is build via XML in my javascript solution the current setting are when you ...
0
votes
2answers
768 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 ...
1
vote
2answers
155 views

Save button to close window after saving

For adding an item to list, the newForm.aspx is opened in new window. After clicking on save button I need to close the window. I used window.close(), It just closes the window but the item is not ...
1
vote
1answer
19 views

How to include referenced external assembly into my wsp

I've referenced SPMeta2 dlls into several of my solutions and I'm wondering if there is a way to add them to my wsp. "Copy to local" adds them to the output folder, but they're not included into the ...
4
votes
3answers
8k views

List Item “value does not fall within the expected range” error--strange behavior

I am getting the error on the following line for a timer job: if (listItem["Department"] != null) Normally this error indicates that it cannot find the field, but there are no spaces and the field ...
0
votes
0answers
28 views

Button to change value in a list

How can I code a button that changes the value of a field in a list?
0
votes
0answers
65 views

Upload files to SharePoint using C#

I'm trying to upload files to a folder using SharePoint and C#. I managed to create folders with my code and it works fine. This is my Document class: [DataContractAttribute] public class Document ...
1
vote
3answers
402 views

Modifying a default value for hidden column will set it as optional instead of hidden

Sometimes you are faced with problems that you can not understand. Now I have a hidden column inside my Issue tracking list, which is used to store a series of string to be read by the list workflow. ...
0
votes
4answers
68 views

How to retrieve and read items from sharepoint list and assign them to a variable with JavaScript?

I have the following list how can i retrive the value of koha column for first row and second row separate, datatype for koha column is number and how to assign value of koha into a variable var ...
1
vote
1answer
22 views

column name space

I am working on visual studio. I have written a code which updates columns and list in SharePoint programmatically using C#. But whenever I am creating a column name with a space it is taking as an ...
3
votes
1answer
1k views

RichHtmlField showing html markup in display mode

I am trying to render html tags with text in RichHtmlField control in SharePoint. Following is html code. <%@ Register TagPrefix="Publishing" ...
0
votes
1answer
46 views

Remove user with CSOM C# gives System.UnauthorizedAccessException

With the following code I'm trying to remove an external user programmatically from a Provider Hosted App: Context.Web.SiteUsers.RemoveById(userId); Context.ExecuteQuery(); This is giving me a ...
1
vote
1answer
36 views

Change Web's Work Week/First Day of Week Programmatically

In Site Settings > Regional Settings it is possible to define a working week: Is it possible to change the first day of the week with server-side code?
0
votes
0answers
21 views

How to convert an item that is retrieved from list to a string datatype?

I am having problems with some strings i have the following code in javascript: _result = currentQuizItem.get_fieldValues()["Audience"]; "Audience" is a column in my sharepoint list, and it has ...
1
vote
0answers
31 views

How does sharepoint deal with the column internal names as defined inside the site level Vs. as defined inside the list level

I want to move my lists items from one list "SourceList" to another List "Destinationist", so i write the following script:- $web = get-spweb "http://*****/teamsites/SoftwareDevelopment/" $list = ...
0
votes
3answers
193 views

SharePoint 2013 Development on Surface Pro 3

I am considering buying a Surface Pro 3 i7 8gb with 512gb storage and I am thinking of using it for development. I am wondering if anyone here has used their Surface for SharePoint 2013 development. ...
1
vote
0answers
68 views

How to access Choice Field Value by using Lookup Field in REST API?

I have a list(ListA) which has a lookup field(LookupF) for another list(ListB). ListB includes a choice field(ChoiceF) which can take a single value. I want to call the selected value of the ChoiceF ...
1
vote
0answers
30 views

Column 'TaskDueDate' does not exist. It may have been deleted by another user

I have the following Power-Shell script to copy an item from one list named "Action" to another list named "Risk Issue":- $web = get-spweb "http://***/businessfunctions/UserSupportDelivery/" $list = ...
0
votes
0answers
18 views

How to Import SharePoint Web parts from a Publishing Page

I am trying to import complete site collection programmatically. I almost done everything. But i have not find any solution to import web parts from that page.
4
votes
2answers
8k views

Get the current site url

How to get the current site url in SharePoint? I am using SPContext.Current.Site.Url but this returns parent site url. If I create a new site in existing site and activate my feature in it, and call ...
0
votes
0answers
35 views

How to add permission to a site collection?

I have a solution that is built with Visual Studio and I have no permission to delete a list or modify a list. I can not even see the lists that are inside current solution. so i cant access to ...
0
votes
1answer
60 views

Assign a field of type Date Only using powershell will always subtract one day

I have the following powershell script to create a copy of a item:- $web = get-spweb "http:*********" $list = $web.lists["Action"] $list2 = $web.lists["Risk Issue"] foreach ($i in $list.items) { $a = ...
1
vote
1answer
15 views

Reading addIn XML using Xml.Linq

I have seen many instances of this question in this forum, with answers! So why am I still asking? Because I have tried for hours to read specific parts of the XML below using XDocument and yet no ...
2
votes
1answer
60 views

Error :- Unable to index into an object of type Microsoft.SharePoint.SPListItemVersion

I am working on an Issue tracking list inside SharePoint team site and i need to modify the "Editor" & "Modified" fields for an existing item's version comment:- so i wrote the following ...
1
vote
1answer
40 views

add SPListItem to a SPListItemCollection

I have the following code to load a list from SharePoint site. All is working well except a SPList item to SPListItemCollection. private void Data_load() { DataTable dt = new ...
2
votes
1answer
126 views

Merge Word Documents in Document Library

There is need where I need to merge Word documents saved in a Document Library. I was looking for out of the box solution but did not come across one. Please provide custom C# solution if there ...
0
votes
1answer
25 views

Custom Web Part in fixed height div

I am developing a web part and it loads correctly, however when it is set to a fixed height a DIV is appearing before my rendered content with a height set that is the same as the fixed height I set ...
1
vote
1answer
45 views

Setting a TimerJob Property via Powershell

I am currently adding a Property to my Timerjob in FeatureActivated via C#. This is my code. public override void FeatureActivated(SPFeatureReceiverProperties properties) { ...
0
votes
1answer
33 views

What is the best way to create a Dev & Prod environment in 1 environment

We need to make changes to the design of the site. Unfortunately the client doesn't have the luxury of a Dev environment. What would be the best way to allow the Devs to perform work on a backup of ...