how to export data table into excel using web service in O365
I am taking the data from SharePoint list into data table
how to export data table into excel using web service in O365
I am taking the data from SharePoint list into data table
i want to perform the following operation
insert,update,delete list items using csom.
i am new to csom and i try to insert the list items used some javascript.
function Insert_Click() {
var name = $("#<%=txtname.ClientID%>").val();
var gender = $("#<%=ddlgender.ClientID%>").val();
var email = $("#<%=txtEmail.ClientID%>").val();
var city = $("#<%=txtcity.ClientID%>").val();
$().SPServices({
webURL: "http://trig-o-1117:7272/sites/SPAppSite1/",
operation: "UpdateListItems",
async: false,
batchCmd: "New",
listName: "Details",
valuepairs: [["Name", name]],
completefunc: function (xData, Status) {
}
});
}
</script>
<td colspan="2" class="auto-style1"><asp:Button ID="btninsert" runat="server" Text="Submit" OnClientClick="return Insert_Click();"/></td>
this method is not working,please suggest some other methods.
I am trying to insert the items to the below list "Display" using csom. showing the error TypeError: $(...).spservices is not a function
this my code once for the click event
<script type="text/javascript">Hi!
I have code that creates list view from xml document:
XmlDocument viewDoc = new XmlDocument(); viewDoc.LoadXml(myViewXmlNode.OuterXml); SPView srcView = new SPView(list, viewDoc);
I need to localize display name. So, In xml document, view display name specified by this string:
DisplayName="$Resources:MyCustomResources, ViewAllItems;"
It works fine in SP2013 - it creates view with name "All Items", but in SP2010 it creates view with name "$Resources:MyCustomResources, ViewAllItems;". Looks like SP can't find my resource string. But I've checked all resource files -it's ok. I restarted iis, sptimer, nothing helps.
Hi
How can we Show/Hide sharepoint quick launch navigation bar based on SharePoint User Group?
When I am trying to update SPNavigationNode by using C# code then I am getting below error stack-
Microsoft.SharePoint.SPException was unhandled by user code
Message=Updates are currently disallowed on GET requests. To allow updates on a GET, set the 'AllowUnsafeUpdates' property on SPWeb.
Source=Microsoft.SharePoint
ErrorCode=-2130243945
NativeErrorMessage=FAILED hr detected (hr = 0x80004005)
NativeStackTrace=""
StackTrace:
at Microsoft.SharePoint.SPGlobal.HandleComException(COMException comEx)
at Microsoft.SharePoint.Library.SPRequest.UpdateNavigationNode(String bstrUrl, Int32 lNodeId, DateTime dateParented, String bstrName, String bstrNodeUrl, Object& pvarProperties, String& pbstrDateModified)
at Microsoft.SharePoint.Navigation.SPNavigationNode.Update()
at IPVisualWebPartProject.VisualWebPart1.VisualWebPart1UserControl.<>c__DisplayClass2.<HideNodes>b__0()
at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass4.<RunWithElevatedPrivileges>b__2()
at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)
InnerException: System.Runtime.InteropServices.COMException
Message=<nativehr>0x80004005</nativehr><nativestack></nativestack>Updates are currently disallowed on GET requests. To allow updates on a GET, set the 'AllowUnsafeUpdates' property on SPWeb.
Source=""
ErrorCode=-2130243945
StackTrace:
at Microsoft.SharePoint.Library.SPRequestInternalClass.UpdateNavigationNode(String bstrUrl, Int32 lNodeId, DateTime dateParented, String bstrName, String bstrNodeUrl, Object& pvarProperties,
String& pbstrDateModified)
at Microsoft.SharePoint.Library.SPRequest.UpdateNavigationNode(String bstrUrl, Int32 lNodeId, DateTime dateParented, String bstrName, String bstrNodeUrl, Object& pvarProperties, String&
pbstrDateModified)
I have added ospWeb.AllowUnsafeUpdates = true; to our C# code but still getting above error. Could you please help me to resolve this issue.
Thank you.
I am trying to figure out how to set documentset properties in SharePoint 2013 using CSOM.
I can create the documentset successfully with this code, however, how would I set properties such as the description?
//Create a document set in the "Documents" library
ContentType ct = context.Site.RootWeb.ContentTypes.GetById("0x0120D520");
var dsName = "sampleDocumentset";
List list = oWeb.Lists.GetByTitle("Documents");
Folder parentFolder = list.RootFolder;
context.Load(ct);
context.ExecuteQuery();
//Create a document set in a library
DocumentSet.Create(context, parentFolder, dsName, ct.Id);
context.ExecuteQuery();
I have a requirement to read xml file stored in the document library into Dataset. For example,
dataset.ReadXML(@"C:\code\eventchart.xml") works just fine and my tool runs as well. However the .xml file is stored in a document library. I tried to add URL as shown below but throws error "401 Unauthorized")
dataset.ReadXML("http://spsite/documentlibrary/eventchart.xml")
Note, I have already added SP reference. I tried objects using OM
using (SPSite spSite = new SPSite("http://spsite"))
{
using (SPWeb spWeb = spSite.OpenWeb())
{
SPFolder workingFolder = spWeb.GetFolder("Documents");
SPFile currFile = workingFolder.Files["eventchart.xml"];
dataset.ReadXml(currFile.ToString());
}
}
Will you please help me to read xml url and assign to DataSet? I want exactly like this to work my application:
dataset.ReadXML("HTTP://spsite/documentlibrary/eventchart.xml")
Since this tool will be running on the server, I don't require client side object.
Appreciate your help on this!
Thanks
Shri
Hi,
Need powershell script to update webtemplate for existing site.
I made some change to template. Now I don't want to delete site and recreate.
Thanks,
Siva.
Hi,
Can anyone tell me that when should i go for a visual studio workflow in sharepoint 2013 ?. Sharepoint designer workflow are capable enough in 2013.
Regards:
sanjay
Please Help!
I've seen this problem posted previously, but have never seen an answer. Here is the problem:
I have an InfoPath Filler form with a repeating table. I have set up default values each row/column of the table, for a total of 60 rows.
When the template is published and a *new* form is created, the repeating table displays as expected: the default 60 rows populate the table with default column values.
When an *existing* form is opened, the repeating table displays 60 rows, but all of the data is a duplicate of the first default row's data.
I have re-published the template and cleared InfoPath cache, but the results are the same. New forms work fine, existing forms do not.
Any ideas?
We are trying to break up our SharePoint site because it has grown out of control. In order to do this we have created a new Site Collection for a large subset. And several Site Collections with SubSites for smaller subsets. I imported items into the standalone site collection with no issue using
importSettings.SiteUrl = sDestinationSite;
This works fine when the destination site = http://webapp/sitecollection.
However when it = http://webapp/sitecollection/site the content imports into http://webapp/sitecollection instead of importing into the named subsite.
I'm not sure that calculated columns can do this kind of formula but I'm hoping that I can use them since it seems the best for a no code solution.
I have a Title column in a workflow task list that is populated by a workflow with a concatenation of a task type indicator and a unique value. So it looks like "Pay Control PC-000008" or "Pay Control PC-029389" for one type of task type and "Pickup Checks PC-000008" or "Pickup Checks PC-029389" for another type of task.
Each type of task has a time limit for it to be processed.
So the psuedo code would be like
if [Title] contains "Pickup Checks " and [Status] is "In Progress" and ([ElapsedTime in Hours] > 1 and < 2) Display Yellow Indicator
Is it possible to use the FIND functions in a formul like this? I understand that times can't be stored in these columns since they don't update automatically. Would a server side solution then be required to update a column iwth the current time? Seems expensive
Thanks
Love them all...regardless. - Buddha
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,
Hi All,
we are using Excel Services in SharePoint 2010. We have several reports that use a connection file on the SharePoint to establish the connection to SSAS.
Our problem is that we have to specify the full URL of the connection in the report:
We could live with that for our Test environments. But in production, we will not be able to manually update the link. Is there a way of specifying this in a generic way so it would remain static across environments? Or as second best solution, do you know a way of programmatically updating the url (eg Powershell)? Or any alternatives???
Many thanks for your help!
Dominic
Dear All,
Does Anyone can show me how to join DataTables (from https://www.datatables.net/) to SharePoint 2010 List? I am not good with JavaScript.
I have Sharepoint List with 5 Column)
Best
Lasantha
Hello,
Is it possible to export a file with other columns as metadata to sharepoint?
We have a excel file that has a path to the file location on a network share. On the same row there are a few columns of metadata.
We need to export the files to sharepoint but preserve the metadata which is written in excel.
Does someone know of a script which could help us in this situation?
I have around 400+ file (.doc, .xls, .ppt) from different document library in single SharePoint site. How to delete there files through PowerShell script??
I am maintaining separate excel of these 400+ files name, which needs to be deleted form the site.
Mani
Hello,
I am facing a problem. I have templates as content types, user uploads it and closes document. Workflow should change document info but keeps the item is curently locked for editing status for 5-10 minutes (when i started on the site collection about 1 month ago it never took over 1 minute). It has slowed down by a crazy margin in the last month and it is causing alot of problems. Does anyone know why this is happening? I know the issue isent with the user pc keeping the document locked, because if you use the same workflow manualy it works instantly after document is closed.
I created a site in SharePoint 2016 and I am trying to open it up in my mobile . It opens the site in the desktop view, but in the mobile view it gives me the blank page, and when I click on Go to button at the bottom left it gives me error Your connection seems to be very slow, try using wifi which is not the case . I am already using a very good wifi network. When I click on Switch to PC view it leads me to nowhere. I am using Samsung Galaxy S6 phone with Google Chrome. I tried deactivating the Mobile browser view feature and it shows the full site, but I want it to have hte mobile view enabled as well. What shall I do? I get this in the log :
the url that i use is : https://portal.council.ae:443/_layouts/15/touchapp.aspx?Mode=TeamSite&Page=ListOfLists
i tried putting : |
Hi all!
We're trying to call SharePoint 2010 SOAP API /_vti_bin/Lists.asmx with .NET application for inserting or updating List Items. On the development server everything works like a charm but the production server reponds with the following error message:
Server was unable to process request. ---> Cannot load dynamically generated serialization assembly. In some hosting environments assembly load functionality is restricted, consider using pre-generated serializer. Please see inner exception
for more information. ---> Could not load file or assembly '2uaeydjv, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Failed to grant permission to execute. (Exception from
HRESULT: 0x80131418) ---> Invalid syntax.
For every request the assembly name "2uaeydjv
" changes:lwn9xgsf
, nhbeu9kl
, ...
What is the problem and how can we fix it?
Best regards,
Harri