How can I adjust the size without affecting other fields.
Matt Pinkston
Matt Pinkston
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.
_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?
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
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 !
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.
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.
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
.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.
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!
Hello,
How can we enable/configure winrm service of remote server by using c#?
Thanks,
Lovkesh Patel
Hi support,
where to download the file sts2007-kb2837616-fullfile-x64-glb.exe of kb2952166.
the link is invalid. http://download.microsoft.com/download/F/9/1/F91FB241-0843-4902-89A4-3B98663E6437/sts2007-kb2837616-fullfile-x64-glb.exe
Thanks,
Gan
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
Hi
I need to create a .ASPX page from Sharepoint Online (Plan-2) but just cannot activate it, please advise ...
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
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,
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
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
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
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