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
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
Hi All,
I have a list view webpart on a page and I want to show a filter icon only on Month Column, how can this be done ?
Hi All,
My list is as follows :
Application name | Month | Test cases |
A | Jan | 100 |
B | Feb | 200 |
A | Jan | 300 |
I want to find total test cases for Application A in Jan and so on, there are different instances(as in list items) of data and display it in HTML data
So I already know how to use SPServices but I dont know how to write a loop with SPServices to get data for each unique month.
meaning Application A, Month Jan, count | Application A, month Feb,count and so on
need to get data for each month for each application and need to add loop
please guide.
Hi ,
i have to develop a web part in which i have to construct a list of images dinamically. Every image will have a link to another page .
The source of this configuration will be stored in a Sharepoint list (eg. image link, list of parameters to pass etc etc).
It is possible to interact with this list by page code behind?
If yes, anyone have a sample code?
Thanks a lot!
I need to undeclare everything in the Records Library (Records Center Site) as not a record, so I can delete all documents in the library. Is there a way to do this all at once (bulk)? This is a SharePoint 2010 Online site, so cannot use SharePoint Object Model code. Would need to be client side. The code snippet below works in an on-prem environment. Note, Microsoft.Office.RecordsManagement.RecordsRepository is in Microsoft.Office.Policy dll. Does anyone know if there is an equivelant in client side libraries?
Or is there another way to delete all documents in a Records Library effciently/quickly?
using (SPSite siteCollection = new SPSite(site)) using (SPWeb web = siteCollection.OpenWeb()) { SPList list = web.Lists[libraryName]; foreach (SPListItem item in list.Items) { if (Microsoft.Office.RecordsManagement.RecordsRepository.Records.IsRecord(item)) Microsoft.Office.RecordsManagement.RecordsRepository.Records.UndeclareItemAsRecord(item); }
Hi all,
For one of our customers I have a customization in which I have to determine if the page with a certain URL is published or not. To do this I run the following code with elevated priveledges:
using (SPSite site = new SPSite(url)) { using (SPWeb web = site.OpenWeb()) { PublishingWeb publishingWeb = PublishingWeb.GetPublishingWeb(web); if (publishingWeb != null) { try { SPListItem item = web.GetListItem(url); isPagePublished = item.HasPublishedVersion; } catch (Exception ex) { LogMessage("IsPagePublished: fout: " + ex.Message); } } } }
When I run this code on my development environment and on my test environment it works as expected and no errors occur. But when the customer installs it in their test environment an exception is caught, the exception message is: <nativehr>0x80070057</nativehr><nativestack></nativestack>
I have no clue why the exception occurs and how I can prevent it. Any hint would be welcome!
Thanks in advance!
Henk
hi there,
I know this has been analyzed in various blogs and forums, but I still haven't found any valid solution for this. Let me get more specific: Very often (at least 9-10 times day) we are getting workflows terminated, due to the following error in the logs:
OWSTIMER.EXE (0x14E8): Error in persisting workflow: System.Transactions.TransactionAbortedException:The transaction has aborted. ---> System.TimeoutException: Transaction Timeout
We have increased event throttling and transaction timeout in our web application, and the error doesn't occur when the process that is running the workflow is IIS. However, after a delay activity,when the workflow is picked up by the timer service of our application server(you will notice that the source process of the error is ALWAYS the timer job/owstimer.exe) , our workflows very frequently crash with the above error. I think it's not coincidence that the error happens aboutone minute after it gets picked upby the timer job, which probably means that we should increase the transaction timeouts for the timer process also (the default is one minute so 99% this is the source of our problem).
As I wrote above, I have already increased the <system.transactions>entry in the web config of our web app, but this setting seems to be ignored by the timer process of our app server. I also tried to add it in the owstimer.exe.config file to no avail. So the real question is:How can the system.transaction timeout value be changed so that it affects the workflow timer job of the sharepoint timer service (owstimer.exe)?
Any help would be highly appreciated because this has turned to be a really annoying problem for our users in the production farm - imagine having to restart ~10 workflows during the work day.
Thanks,
Spyros
Buddies, I got a new requirement yesterday. The customer would like to open "Read" permission to people but want to "Restrict" them to download documents in Library. To open "Restriction", they need fill a request form for approval and then move forward.
Do you guys have such similar request before?
Thanks,
Kevin
Hi,
Can any one suggest.
How to export all the Titles of "document libraries and Folders in the list" available under each site of web application to CSV file.
Thanks & Regards, Krishna
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.
Hi,
I have created Web Application with windows authentication. Now we want to extend the same with Form based Authentication also.
Now i want to access the sites by FBA credentials which has been created already by Windows Authentication. Vise versa i want to access the sites.
How could i do it.
Thanks & Regards
Poomani Sankaran
Hi All,
I have my ASP.NET 4.5 application running on the server and a F5 load balancer is configured with SSl certificate on it , the initial login page url is accessed as (through load balancer) https:\\server\login.aspx and is working fine but after login when the application redirects it to home page [..\server\home.aspx] it is redirecting with http and thus the page doesn't get loaded.
can some one help me on this.
Regards
-PJ-
Hi All,
I am using Bamboo chart plus webpart instead of out-of-the box chart webpart
Can anyone help me in adding a tooltip to Bamboo chart webpart ?
Hi!
I am looking into using sharepoint for an approval process. It looks pretty straight-forward, but I do have a wrinkle that I would like to get forum input on.
I have a bank file that needs to be approved by different users. the bank file is not in a readable format, but is text. Currently, I generate the email from our Linux system and build it as html using the bank file to retrieve the data that is inserted into the email so that the approver know what it is they are approving.
My need here is to be able to do the same thing in Sharepoint. File A gets created with three checks in it for three different suppliers. The file creation (placed in a folder that is monitored by the workflow) kicks off an approval workflow. The workflow sends an email to approver A. At this point, I could attach the file so that the three checks are viewable by the approver, but it looks really messy.
Is it possible to write a step in between the file creation and the first approver that will use the file to create the email body with a more readable content? This would be huge! Our current system is being changed and we have to come up with a replacement.
Regards,
David Langschied
Hi
We have an Office 365 site that is moved to vNext and is being authenticated with Azure (by federating with an on-premise Active Directory) . We tried to access the Client context using "SPOnlineCredential" class and "Network Credentials", but it throws an error with either of the options and doesnt allow to create the context object.
Has anyone observed such a scenario and how was the Client Context created and made to work?
Any help would be appreciated.
Thanks
Vijay
Hi, I'm using SP2010 and I'm having the same issue as described in this link below. Any other resolution on this issue. In powershell EnsureUser is generating this error
I would like to add the rolename to SharePoint Group so I'm using EnsureUser to get the rolename.
Exception calling "EnsureUser" with "1" argument(s): "The specified user c:0-.f|lfbaroleprovider|rolename could not be found."
Thanks,
JohnWeb
Not sure if this is an SP question or MS Access, but we have some SP 2010 linked lists in MS Access 2007. And, we query a specific list for a specific record, using VBA in an MS Word doc, that contains a bit of Lookup data. I believe it is less than it's lookup limit.
The issue we have for "some" users is that when the record is returned, one of the column values we ask for is blank. The best way to describe this is:
Computer A, BOB opens a VBA enabled doc which queries for a project record and the results are returned except stakeholder columns data is empty.
Computer B, Stan opens same VBA enabled doc which queries for the same project record and the results are returned correctly.
Computer A, Stan opens same VBA enabled doc which queries for the same project record and the results are returned except stakeholder columns data is empty.
I know we don't have column permissions in SP and I believe, we've had the issue come and go with user profile replacement, though it sounds like an MS Office issue.
I hope I was clear on the issue. Any Idea what is going on?
Ken.
Hello Techies,
I have a webpartwhere there are fields like:
Here i got the requirement like if Year and Month
values are "0" then I need to disable and reset the values of other fields say Employer,CTClakhs,CTCThousandsand Currency
so for this I wrote the validations in javascript which are called
onChange event of Year and Month
dropdowns
function clearFunction() { if (document.getElementById('ctl00_PlaceHolderMain_form1_ddlYears').value == 0 && document.getElementById('ctl00_PlaceHolderMain_form1_ddlMonth').value == 0) { document.getElementById('ctl00_PlaceHolderMain_form1_txtEmployer').value = ""; document.getElementById('ctl00_PlaceHolderMain_form1_txtLacs').value = ""; document.getElementById('ctl00_PlaceHolderMain_form1_txtThousand').value = ""; document.getElementById("ctl00_PlaceHolderMain_form1_ddlCurrency").selectedIndex = 0; //document.getElementById("ctl00_PlaceHolderMain_form1_ddlCurrency").value = 0; document.getElementById('ctl00_PlaceHolderMain_form1_txtEmployer').disabled = true; document.getElementById('ctl00_PlaceHolderMain_form1_txtLacs').disabled = true; document.getElementById('ctl00_PlaceHolderMain_form1_txtThousand').disabled = true; document.getElementById("ctl00_PlaceHolderMain_form1_ddlCurrency").disabled = true; } else { document.getElementById('ctl00_PlaceHolderMain_form1_txtEmployer').disabled = false; document.getElementById('ctl00_PlaceHolderMain_form1_txtLacs').disabled = false; document.getElementById('ctl00_PlaceHolderMain_form1_txtThousand').disabled = false; document.getElementById('ctl00_PlaceHolderMain_form1_ddlCurrency').disabled = false; }
But here values of all the fields are getting reset except Currency dropdown
Later I check the value of Currency through console and the value was getting reset but it was not reflected in UI (still shows selected value)
Here I wanted to reset the value of Currency dropdown :( :(
Again for this i tried to achieve .cs file and made the change on .ascx file like
<asp:UpdatePanel ID="OuterUpdatePanel" runat="server" UpdateMode="Conditional"><ContentTemplate><tr class="contactForm twoSelects"><td><label for="exp"> Total Experience <span class="required"></span></label></td><td class="selector" id="uniform-undefined"><div><asp:DropDownList ID="ddlYears" CssClass="uniformselect" onSelectedindexChanged="drp_Commoncleardata" autopostback="true" runat="server" Width="100%" BackColor="Transparent"></asp:DropDownList></div><div><asp:DropDownList ID="ddlMonth" CssClass="uniformselect" onselectedindexchanged="drp_Commoncleardata" autopostback="true" runat="server" Width="100%" BorderStyle="None"><asp:ListItem Value="-1">-- In Months -- </asp:ListItem><asp:ListItem Value="0">0 </asp:ListItem><asp:ListItem Value="1">1</asp:ListItem><asp:ListItem Value="2">2</asp:ListItem><asp:ListItem Value="3">3</asp:ListItem><asp:ListItem Value="4">4</asp:ListItem><asp:ListItem Value="5">5</asp:ListItem><asp:ListItem Value="6">6</asp:ListItem><asp:ListItem Value="7">7</asp:ListItem><asp:ListItem Value="8">8</asp:ListItem><asp:ListItem Value="9">9</asp:ListItem><asp:ListItem Value="10">10</asp:ListItem><asp:ListItem Value="11">11</asp:ListItem></asp:DropDownList></div></td></tr><tr class="contactForm"><td><label for="org"> Current Organization <!--<span class="required"></span>--></label></td><td><asp:TextBox ID="txtEmployer" runat="server" CssClass="textbox" MaxLength="50" BackColor="Transparent"></asp:TextBox></td></tr><tr class="contactForm"><td></td><td colspan="2"><label style="width: 250px !important;"><!--(Enter NA in case of fresher)--></label></td></tr><tr class="contactForm"><td><label for="CTC"> Current Compensation (CTC) <!--<span class="required"></span>--></label></td><td><asp:TextBox ID="txtLacs" onkeypress="return numbersonly(event, false)" runat="server" CssClass="textbox_CTC" MaxLength="10" BackColor="Transparent"></asp:TextBox> <span class="field_Desc">Lacs</span> <asp:TextBox ID="txtThousand" onkeypress="return numbersonly(event, false)" runat="server" CssClass="textbox_CTC" MaxLength="10"></asp:TextBox><br /> <span class="field_Desc">Thousand</span></td></tr><tr class="contactForm"><td><label for="currency"> Currency</label></td><td><asp:DropDownList ID="ddlCurrency" runat="server" CssClass="combobox_new uniformselect" Width="100%" BackColor="Transparent" ></asp:DropDownList></td></tr></ContentTemplate><Triggers><asp:AsyncPostBackTrigger ControlID="ddlYears" EventName="SelectedIndexChanged" /><asp:AsyncPostBackTrigger ControlID="ddlMonth" EventName="SelectedIndexChanged" /></Triggers></asp:UpdatePanel>
.cs code
protected void drp_Commoncleardata(object sender, EventArgs e) { if ((ddlMonth.SelectedValue == "0") && (ddlYears.SelectedValue == "0")) { ddlCurrency.ClearSelection(); } }
the above code is also not helping me
Please help and let me know what needs to be done to reset DropDown selection