hi,
I am looking to animate a SharePoint announcement list. Is it possible through Jquery or css? Please help.
hi,
I am looking to animate a SharePoint announcement list. Is it possible through Jquery or css? Please help.
Hi ,
I am having one sharepoint 2013 . I have written the code to read sharepoint custom list item using C# and Jquery both ..My List is having 5000+ items into list ,and when I am binding those records into my Gridview It is taking time to bind the data into Gridview. I am using Paging of 10 items per page ..still I am facing performance issues ..
Could any one help me on same ...
Thanks..
In my Content Search Web Part I would like to filter on the date less than today. However, I am having an issue because the date could be null. If its null, I would still like those results to be included. I tried the following filters:
PublishingStartDateTime<{Today} -> doesn't return null date items
{? AND PublishingStartDateTime<{Today}} => doesn't return null date items
{? OR PublishingStartDateTime<{Today}} => returns all items including those where the date is greater than today
Any ideas?
My requirement is that after a certain step in a workflow the document will be send to another library and an MS Office watermark will be inserted automatically to the document.
What I am trying as one of the solution to create a similar content type and then put the water mark into the that CT, then after the specific stage in the workflow change the CT of the document programmatically to the CT with watermark, which I am able to do correctly.
But the problem is that although the CT is changing the document template still remains as that of original CT i.e. the one without watermark.
do anybody have any idea about the problem or any other alternate solution to the scenario?
Document Sets Modified By and Modified Date are getting changed to Sytsem Account and System Date respectively once a specific OOTB Timer Job named "Document Set Template Update Job"gets executed. It changes these values for document sets only but it does not change anything to the documents which are part of those document sets.
We want to preserve the actaul values of modified by and modified date at Document Set level as well.
This is only happening to those document libraries which have been created using a custom document library template.
After creating the document library using the custom library template, we are also adding Document Set and one more custom Content Type to it.
Can we prevent this happening ?
Thanks in advance.
Thanks, Bhadr :) Mark as Answer if it solves your problem. Vote As Helpful if the post is helpful for you.
I want to use single sign in page for windows & forms authentication in SharePoint 2013. So, request you to provide solution for the same.
Thansk & regards,
Aditya
HI,
I got the following error while deploying a app. I have not added any logic in App.
What i have tried yet:
1. Configured Server for Using App
2. Added permission to user2 (app developer account by which i open VS 2012) as mentioned in following URL
http://community.zevenseas.com/Blogs/Akhilesh/Lists/Posts/Post.aspx?ID=10
Please let me know if anyone have faced and resolved it before....
Here we go .............................
Active Deployment Configuration: Deploy App for SharePoint
Skipping deployment step because a pre-deployment command is not specified.
Skipping the uninstall step because the app for SharePoint is not installed on the server.
Install app for SharePoint:
Uploading the app for SharePoint...
Installation is in progress (00:00:00)
Installation is in progress (00:00:01)
Installation is in progress (00:00:02)
Installation is in progress (00:00:03)
Installation is in progress (00:00:04)
Installation is in progress (00:00:05)
App failed to install, cleaning up...
App installation cleanup failed due to errors. Please see the app on the SharePoint site’s “Site Contents” page for details.
App installation encountered the following errors:
11/19/2013 2:42:13 PM
@"Error 1
CorrelationId: e6d878ab-ae8b-442c-90c1-ee989f5e719b
ErrorDetail: The content database on the server is temporarily unavailable.
ErrorType: Transient
ErrorTypeName: Intermittent
ExceptionMessage: System.IO.FileNotFoundException: <nativehr>0x80070002</nativehr><nativestack></nativestack>
at Microsoft.SharePoint.Library.SPRequestInternalClass.GetMetadataForUrl(String bstrUrl, Int32 METADATAFLAGS, Guid& pgListId, Int32& plItemId, Int32& plType, Object& pvarFileOrFolder)
at Microsoft.SharePoint.Library.SPRequest.GetMetadataForUrl(String bstrUrl, Int32 METADATAFLAGS, Guid& pgListId, Int32& plItemId, Int32& plType, Object& pvarFileOrFolder)
at Microsoft.SharePoint.SPWeb.GetList(String strUrl)
at Microsoft.SharePoint.Administration.SPDeveloperData.AddToDraftApps(Guid appInstanceId)
at Microsoft.SharePoint.Lifecycle.FinalFixupTask.Deploy()
at Microsoft.SharePoint.Administration.SPAppTask.DeployOperation()
at Microsoft.SharePoint.Lifecycle.MonitoredTaskExecution.DoTask()
Source: Finalization
SourceName: App Deployment Finalization
@"Error 2
CorrelationId: e6d878ab-ae8b-442c-90c1-ee989f5e719b
ErrorDetail: The content database on the server is temporarily unavailable.
ErrorType: Transient
ErrorTypeName: Intermittent
ExceptionMessage: System.IO.FileNotFoundException: <nativehr>0x80070002</nativehr><nativestack></nativestack>
at Microsoft.SharePoint.Library.SPRequestInternalClass.GetMetadataForUrl(String bstrUrl, Int32 METADATAFLAGS, Guid& pgListId, Int32& plItemId, Int32& plType, Object& pvarFileOrFolder)
at Microsoft.SharePoint.Library.SPRequest.GetMetadataForUrl(String bstrUrl, Int32 METADATAFLAGS, Guid& pgListId, Int32& plItemId, Int32& plType, Object& pvarFileOrFolder)
at Microsoft.SharePoint.SPWeb.GetList(String strUrl)
at Microsoft.SharePoint.Administration.SPDeveloperData.RemoveFromDraftApps(SPSite site, Guid appInstanceId)
at Microsoft.SharePoint.Lifecycle.FinalFixupTask.Rollback()
at Microsoft.SharePoint.Administration.SPAppTask.DeployOperation()
at Microsoft.SharePoint.Lifecycle.MonitoredTaskExecution.DoTask()
Source: Finalization
SourceName: App Deployment Finalization
Harsh
Hi Everyone,
We have a requirement to create a SharePoint 2013 Ribbon button for a specific list. The functionality is to get all the selected items IDs and add an entry to another list ("ID1,ID2,ID3,ID4,etc"). can anyone please help us to achieve this? Thank you!!
Hi,
I'm trying to build an app that has a custom menu action, that is able to copy choosed list item and change some metadata automatically.
Need something to start with, this seems to fail when I try to read the item:
function getItemDetails() { appWebContext = new SP.ClientContext.get_current(); hostWebContext = new SP.AppContextSite(appWebContext, decodeURIComponent($.getUrlVar("SPHostUrl"))); selList = hostWebContext.get_web().get_lists().getById(decodeURIComponent($.getUrlVar("SPListId"))); selListItem = selList.getItemById(decodeURIComponent($.getUrlVar("SPListItemId"))); appWebContext.load(selList); appWebContext.load(selListItem, 'Title'); appWebContext.executeQueryAsync(onGetListItemSucceeded, onFail); }
We have a few users that are having sporadic issues when trying to open up Office documents. All users still using Office 2007 are fine, it is only users that use Office 2013 that have the issue. They click on the document, the splash screen for Word/Excel/PowerPoint shows up, the document opens in Read Only mode and when they click on Edit Document
We're having trouble connecting to the server. If this keeps happening, contact your help desk.
This is somewhat sporadic. A document I could open yesterday does not open today. Originally Check Out/In was not turned on for this library, then they turned it on, now they've turned it off. It happens to both in-house and remote employees (on VPN), on both wired and wireless connections.
Any ideas?
Hi Friends,
Below are my requirement:
I have two site collection, SiteA and SiteB. In SiteA, I have one custom list called ListA. When I have added any item in ListA, Programatically I need to create a document library in SiteB with the same name of title which I have added in ListA.
Environment:
SharePoint 2013
Visual Studio: 2012
If anyone has a suggestion on a code sample or a link I'd greatly appreciate it, preferably in c# if possible. Thanks in advance.
Mohd Yusuf
Hi,
I would like to ask you about currently famous AngularJS framework in developing custom application pages and webparts in SP 2013.
Do you recommend using this one in farm solutions or only in App Development process?
What is your experience in this area?
Thanx for any info.
Regards,
Kamil
Hello All,
I have created one timer job. When it executes it checks for the start time field.
For few times it returns start time value and for few times it returns created field value for the same code.
Can you help to resolve this.
I used following code:
SPWebApplication webApp = this.Parent as SPWebApplication;
using (SPSite objSite = webApp.Sites[0])
{ using (SPWeb objWeb = objSite.RootWeb)
{ SPList lstBirthday = objWeb.Lists.TryGetList("Birthday");
if (lstBirthday != null)
{ SPListItemCollection allBirthdays = lstBirthday.Items;
foreach (SPListItem birthday in allBirthdays)
{ string user = Convert.ToString(birthday["Title"]);
if (!string.IsNullOrEmpty(user) && !user.Contains("Deleted"))
{
DateTime birthdate = Convert.ToDateTime(birthday["Start
Time"]);
if (birthdate != null && birthdate.ToShortDateString()
== DateTime.Now.ToShortDateString())
{ //My logic }
} } } }
}
Thanks in advance.
Hi,
I want to create a spview on a doc lib and i wanna set this as the default one programmatically. is there any way i can do this?
StringCollection viewFields; SPView newVendorView =null; string myviewname="Vendor Doc Lib View"; SPSite site = null; string currsite = SPContext.Current.Web.Url.ToString(); try { using (SPSite oosite = new SPSite(currsite)) { using (SPWeb ooWeb = oosite.OpenWeb()) { ooWeb.AllowUnsafeUpdates = true; SPList vendorList = ooWeb.Lists.TryGetList("Vendor_Lib"); // Add an extra view to the list viewFields = new StringCollection(); viewFields.Add("Discipline"); viewFields.Add("StdDocNum"); viewFields.Add("Revision"); viewFields.Add("ApprovalCode"); viewFields.Add("ReasonforIssue"); viewFields.Add("ResponsibleOffice"); viewFields.Add("DocAuthor"); viewFields.Add("PONumber"); try { newVendorView = vendorList.Views[myviewname]; if (newVendorView == null) { newVendorView = vendorList.Views.Add(myviewname, viewFields, "", 100, true, true, SPViewCollection.SPViewType.Html, false); newVendorView.ContentTypeId = new SPContentTypeId("0x012001"); } else { newVendorView = vendorList.Views["Vendors View"]; } } catch (Exception) { } newVendorView.ViewFields.Add("Discipline"); newVendorView.ViewFields.Add("StdDocNum"); newVendorView.ViewFields.Add("Revision"); newVendorView.ViewFields.Add("ApprovalCode"); newVendorView.ViewFields.Add("ReasonforIssue"); newVendorView.ViewFields.Add("ResponsibleOffice"); newVendorView.ViewFields.Add("DocAuthor"); newVendorView.ViewFields.Add("PONumber"); newVendorView.Update(); vendorList.Update();
I have written the above code. But my reqmnt is that,I need to set this when my doc lib is created[ provisioned ]. For testing purpose I have coded this on button click, it throws me error. should i create this view on a spfeature recvr and read this spview on my web part? or should i create the view on my web part's button click and proceed? Can anyone pls help, where should i write this code[ am sure , it should not happen on button click ].
Hi,
I am trying to save a template of the subsite and I am not able to do so. I don't have publishing enabled either at Site collection or Site level features. Any idea what could be wrong. I have not deployed any custom features in the site that I am trying to save a template as.
Please help.
11/03/2014 01:28:57.50 w3wp.exe (0x48CC) 0x33E0 SharePoint Foundation Files aiv4wMedium Spent 15 ms to bind 202756 byte file stream 8e72c89c-f274-90aa-f431-817b5ff945b7I'm using SharePoint Online and have a SharePoint-hosted app.
I have a page with a question form that send data in to SharePoint. I show my question form in my DispForm for my list (I added my app as an app part) on DispForm. When I select a item and press on view item I see my question form just as I like it but I don't
know how to get the right ID of that item I want to show. Someone have any suggestion? I use
listItem.set_item('Title', $('#Title').val());
to send data in to my SharePoint list and
and get_fieldValues to read it back
$('#Title').val(item.get_fieldValues().Title);
Dear all,
Can anyone help me to show the contacts list details on people search result in SharePoint 2013.
Thanks in advance.
{I found one article regarding the same, but which is done on 2010 [http://johnliu.net/blog/2012/9/25/sharepoint-showing-contacts-in-people-search-results.html?lastPage=true&postSubmitted=true]}
Sharepoint Deployment : on premises with local domain address as http://sharepoint , windows server 2008 R2
In Order to deploy my app I added app URL in admin central as apps.mydomain.com
apps.mydomain.com is actually the sub domain I created on my company official website.
After compiling application and running it I am getting following error in output window
------ Build started: Project: SharePointApp1, Configuration: Debug Any CPU ------
------ Deploy started: Project: SharePointApp1, Configuration: Debug Any CPU ------
Active Deployment Configuration: Deploy App for SharePoint
Skipping deployment step because a pre-deployment command is not specified.
Skipping the uninstall step because the app for SharePoint is not installed on the server.
Install app for SharePoint:
Uploading the app for SharePoint...
App failed to install, cleaning up...
Successfully uninstalled the app for SharePoint.
App installation encountered the following errors:
03/11/2014 07:17:19
@"Error 1
CorrelationId: fc4c3483-a34c-4975-a6cb-c1d84436c8f5
ErrorDetail: The content database on the server is temporarily unavailable.
ErrorType: Transient
ErrorTypeName: Intermittent
ExceptionMessage: The App domain for this site has already been assigned.
Source: AppWeb
SourceName: App Web Deployment
Error occurred in deployment step 'Install app for SharePoint': Failed to install app for SharePoint. Please see the output window for details.
========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========
========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========
Can you please give me an idea here I am wrong ?
Tech Learner
Hello, below is my code: and the issue is very obvious. My downstream code executes even before the other functions upstream return. How do I modify this code so I can make this work?
Please help
// JavaScript source code
var roadmapList;
var collListItem;
var dashboardList;
var statusItem;
ExecuteOrDelayUntilScriptLoaded(loadRoadMap, "sp.js");
function loadRoadMap() {
var currentCtx = SP.ClientContext.get_current();
var currentWeb = currentCtx.get_web();
this.roadmapList = currentWeb.get_lists().getByTitle('Roadmap');
var camlQuery = new SP.CamlQuery();
this.collListItem = roadmapList.getItems(camlQuery);
currentCtx.load(collListItem);
currentCtx.executeQueryAsync(
Function.createDelegate(this, this.onQuerySucceeded),
Function.createDelegate(this, this.onQueryFailed)
);
}
function onQuerySucceeded(sender, args) {
var listItemInfo = '';
var listItemEnumerator = collListItem.getEnumerator();
while (listItemEnumerator.moveNext()) {
//alert("Success");
var oListItem = listItemEnumerator.get_current();
var projectUrl = oListItem.get_item('ProjectURL').get_url();
listItemInfo += '<tr><td>' + oListItem.get_item('Roadmap_x0020_Project') + '</td><td>' + getStatus(projectUrl) + '</td></tr>';
$('#statusTable').append($(listItemInfo));
}
}
function onQueryFailed(sender, args) {
alert('Request failed. ' + args.get_message() +
'\n' + args.get_stackTrace());
}
function getStatus(project) {
var crossSiteContext = new SP.ClientContext("http://myanothersite.com/it/");
var crossSiteWeb = crossSiteContext.get_web();
this.dashboardList = crossSiteWeb.get_lists().getByTitle('Dashboard');
var projectQuery = new SP.CamlQuery();
projectQuery.set_viewXml("<View><Query><Where><Eq><FieldRef Name=\'Project\'/>" +
"<Value Type=\'URL\'>" + project + "</Value></Eq></Where></Query>" +
"<RowLimit>1000</RowLimit></View>");
this.statusItem = dashboardList.getItems(projectQuery);
crossSiteContext.load(statusItem);
crossSiteContext.executeQueryAsync(
Function.createDelegate(this, this.onStatusQuerySucceeded),
Function.createDelegate(this, this.onStatusQueryFailed)
);
}
function onStatusQuerySucceeded(sender, args) {
var projectItemInfo = '';
var projectItemEnumerator = statusItem.getEnumerator();
while (projectItemEnumerator.moveNext()) {
var curstatusItem = projectItemEnumerator.get_current();
projectItemInfo += '\nID: ' + curstatusItem.get_id() +
'\nStatus: ' + curstatusItem.get_item('Project_x0020_Status').Label;
}
}
function onStatusQueryFailed(sender, args) {
alert('Request failed. ' + args.get_message() +
'\n' + args.get_stackTrace());
}
I have a page layout which is using content type A, A contain a field control, let's say a summary link control in it, so when people edie page layout, they can type in summary link, however someday we decided to switch to use content type B for my page layout, and content type B does not have summary link field control but have some other fields we needed, I can switch content type either from the UI or code, and I tested the page layout , created some testing page, it still working fine, the summary link control still can save the data, even though content type does not have it.
It looks like it still working fine and meeting our requirement, but i wondered if there is any potential issues?