Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all 11571 articles
Browse latest View live

Adjusting one fields width in Custom List Form with SPD 10

$
0
0
I have a sharepoint 10 custom list form and I need to adjust the width of a multi line field to be wider than the standard.

How can I adjust the size without affecting other fields.

Matt Pinkston


Upload File to SharePoint and Populate Columns

$
0
0

This should be simple but does not appear to be so.

The requirement is to upload a file to SharePoint and populate the content type and associated columns.

The application is written in .Net and will run on a different machine to the server (I.e. the SharePoint Server side object model cannot be used).

My first thought was there to use CSOM but it does not seem to work.

The following code does not work.  Large files fail and if version control is enabled on the destination library then you get two versions of the file created.

_FileCreationInformation = new FileCreationInformation();
_FileCreationInformation.Url = _FileInfo.Name;
_FileCreationInformation.Content = System.IO.File.ReadAllBytes(_FileInfo.FullName);
_File = _List.RootFolder.Files.Add(_FileCreationInformation);
_ListItem = _File.ListItemAllFields;

_ListItem["Title"] = "MyTitle";

_ListItem.Update();
_ClientContext.ExecuteQuery();

The following code again does not work.  If version control is enabled on the destination library then you get two versions of the file created.

Microsoft.SharePoint.Client.File.SaveBinaryDirect(_ClientContext, _DestinationFolderAndFileRelativeUrl, _FileInfo.OpenRead(), true);
_File = _ClientContext.Web.GetFileByServerRelativeUrl(_DestinationFolderAndFileRelativeUrl);
_ClientContext.Load(_File);
_ListItem = _File.ListItemAllFields;

_ListItem["Title"] = "MyTitle";

_ListItem.Update();
_ClientContext.ExecuteQuery();

I am starting to look at web services; copy item into;

https://msdn.microsoft.com/en-us/library/copy.copy.copyintoitems(v=office.12).aspx

This, however, feels rather like getting in a time machine and going back to SharePoint 2007 so I am slightly hesitant.

Ideas?

How to convert sharepoint 2010 Classic mode Authentication to FBA

$
0
0

Hi,

I have created Classic Based Authentication SharePoint web application (Windows Authentication) . How could i extend it as a FBA.

Note:  I have created as "Classic Based Authentication" not as "Claim Based Authentication".

1. I have extended the existing Web Application with new port.

2. I have opened "Authentication Providers". I could not enable FBA for new Web application.

Thanks & Regards

Poomani Sankaran

Email workflow for content approval

$
0
0

Hi All,

I have a custom list on which I have enabled content approval and I want to implement following things :

Custom list workflow with following features:

1) Send email to approvers group when item is added/edited with Status pending & item url for approvers to the item.

2) Send email to Initiator when item is approved/rejected with comments.

Thanks in Advance ! 


To show sharepoint 2010 custom list data in a pie chart using KENDO ui third party tool

$
0
0

Hai,

    My requirement is to show a sharepoint 2010 custom list values in  a pie chart.how can we extract data from a sharepoint 2010 list ,to show a pie chart using KENDO UI tool.

SharePoint login from external network -FBA for SP2010

$
0
0

Dear all,

I have read in the blogs for SharePoint 2010 to accept/inputs from external network we can do two different types of access.

One through SQL authentication.

http://blogs.technet.com/b/mahesm/archive/2010/04/07/configure-forms-based-authentication-fba-with-sharepoint-2010.aspx

Second one through AD authentication(LDAP provider).

https://technet.microsoft.com/en-us/library/ee806882(v=office.14).aspx

Just want to know the difference between these two.

I think SQL database will allow external users to create ID's for them and allow them to get in. Do I need to use a separate url for SP2010 for external login.

I think the second we need to create users for the users in the respective OU's in the AD.

If somebody had enabled this - can you share the details if possible. I will choose one option and enable the same.

Cheers

Sathya

Change SharePoint modal dialog width

$
0
0
I'm created a custom master page that has a width of 944.  Unfortunately the dialog boxes are now 1500px wide.  I want to reset the dialog boxes to a width of 944.  I've tried using CSS and jquery with no success.  Here is what I've tried with no success (even the background color does not work:
.ms-dlgBorder .ms-dlgContent .ms-dlgTitle .ms-dlgOverlay ms-dlgTitleText
{
	background-color:green!important;
	width:944!important;
}
I've also tried jQuery:

$('div.ms-dlgContent').css('width','944px');

$('ms-dlgContent').css('width','944px');
Anyone ever accomplished this? Not even sure why SP made the dialogs larger since my page width dropped.


Programmatically find home page Url of SPWeb

$
0
0
Hello All,
How I can programmatically find the home page of SPWeb ? it can be team, publishing or wiki or any kind of site.
Shail

Capturing Timestamp when Status Changes in a SharePoint 2010 List

$
0
0

I've created a Risk/Issue/Decsion Log (list) in SharePoint 2010.

I need to capture the date/timestamp when an item changes from 'Open' to 'Resolved' Status and also when the status changes from 'Resolved' to 'Closed'.

I'm using the default 'Created' field to capture when the item is created and the 'Open' status is selected. I've already created 2 more fields in the list to capture when the status changes from 'Open' to 'Resolved' Status and also when the status changes from 'Resolved' to 'Closed'. I just need help with how to automatically capture the date/timestamp in those fields.

I would greatly appreciate the help.

Thanks!

How can we enable/configure winrm service of remote server by using c#?

$
0
0

Hello,

How can we enable/configure winrm service of remote server by using c#?

Thanks,
Lovkesh Patel

SP2010 to SP 2016 Migration

$
0
0
Hello All,
Is there a direct migration Strategy from SharePoint 2010 to SharePoint 2016? Our Project currently has custom Applications in SharePoint 2010 environment. As far as I have read the recent announcements all say that 1st SP 2010 has to upgraded to SP 2013 and then SP 2013 to SP 2016. This is due to DB architecture of SP 2016 being built on SP 2013. Please let me know if you have information on this.

where to download file sts2007-kb2837616-fullfile-x64-glb.exe

How could i add the users to extended SharePoint site.

$
0
0

Hi,

I have created Claim Based web application in SharePoint 2010 .By default it is running in 9090 port as windows authentication which is running in default. http://test:9090/

I have extented the same with 9091 as FBA authentication which is running in a Intranet zone. http://test:9091/

Now i can access http://test:9090/ as windows authentication. But http://test:9091/ is not log in as FBA. Since the extended port is not display in CA so i could not add uses vis "User Policy" of CA. Now how could i add the users to extended site.

Thanks & Regards

Poomani Sankaran

Cannot activate Publishing Feature, Site Page Library ....

$
0
0

Hi

I need to create a .ASPX page from Sharepoint Online (Plan-2) but just cannot activate it, please advise ... 

SharePoint 2010: I want to Create Matix style list form?

$
0
0

How its possible to have matrix style list form in SharePoint 2010?

I can't use survey as I can select single data type for answers. I have requirement to have different data type in columns.

Any help is really appreciated.

 

Thanks.

Regards,

Sunil Kumar


Using Workflow to Assign Value to Title Column

$
0
0

I cannot find the answer to this question using the search function, so hopefully someone can provide an answer to the following:

1. I am importing files to a document library using a C# console app. This works fine

2. When the file is added to the library it appears as a link in a 'Name' column which is a link to the file itself, this is fine.

3. The 'Title' column for a file remains unpopulated and this something I would like to change. I would like to automatically populate the Title column with the name of the file when a file is added to the document library. 

Does anyone know how to do this? 

Thanks,

how to Mock SPWeb

$
0
0

Hello, 

    I need to mock SPWeb for integration verification. I see a lot of samples for faking SPContext but not SPWEb. 

Please suggest some options. 

Thanks

How to check a domain user has permissions or not in a sharepoint site?

$
0
0

HI

In a sharepoint site i created a sharepoint group and added contribute permission level.

added an active directory group Domain/group1 this group has around 100 of domain users,

from sharepoint object model how i get the user has permissions on this site , if i pass parameter an domain user name.

1. should i write the code first get the spweb object 

2. after should i write the code for this user has inside this a.d group?



adil

Custom Edit form not able to commit field changes some times using GenFireServerEvent('_commit')

$
0
0

I have developed a custom list edit form in SP2010 using which I am updating a list. It has been developed using SPD.

Instead of using the out of the box Save button, I have used a custom Save button which checks some conditions in PreSaveAction() , then commits and redirects to another page. The code looks like below.

<input type="button" style="width: 151px; height: 22px;background:#9DCEFF;font-weight:bold" value="Submit "  id="btnCustSave" name="btnCustSave" onclick="javascript:  if( PreSaveAction()) {ddwrt:GenFireServerEvent(concat('__commit;__redirect={',$RedirectUrl,'}'))}" />

Using this button I am able to commit changes most of the times (say 70% times) , but for some instances the form does not commit changes to the list. 

I am not able to find any clue on how to resolve the issue as I do not have direct access to ULS logs in our environment.

My list has around 150+ columns of different types.

If anyone has faced this kind of issue, please let me know how to resolve it.

Thanks,


Thanks, Bibhu

RMS

$
0
0

Hello,

In our farm we have implemented Rights Management Service. It has been applied at a library level. Also we have created some RMS templates. Now I want to know within our farm - where have applied RMS at the library level. Is this possible information that can be easily sought from Powershell or console? Can someone please help on this one?

Thanks,

Anand


Thanks and Regards, Anand R. Deshpande

Viewing all 11571 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>