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

Announcement list animated

$
0
0

hi,

I am looking to animate a SharePoint announcement list. Is it possible through Jquery or css? Please help.


Use paging in Sharepoint List items

$
0
0

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..

CSWP - Filtering on date field that could be null

$
0
0

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?

Changing Document Template Programatically

$
0
0

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 Set Modified By and Modified Date are getting updated to Current System Date and System Account automatically

$
0
0

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.

Single Sign In page for Windows & forms authentication

$
0
0

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

The content database on the server is temporarily unavailable while deploying a app

$
0
0

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

Ribbon Button to Copy Selected Items IDs

$
0
0

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!!


SharePoint 2013 App Copy List Item Office365

$
0
0

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);
}

SP2013 - Sporadic error when editing PPT using Office 2013

$
0
0

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?

programmatically create a document library when I added an item in a custom list

$
0
0

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


AngularJS + SharePoint Application Pages / WebParts

$
0
0

  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

How to programmatically get Start Time value from event type list.

$
0
0

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.

create a spview and set columns and set this as a default view

$
0
0

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 ].




Can't save as template - even without publishing activated,

$
0
0

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-817b5ff945b7
11/03/2014 01:28:57.61 w3wp.exe (0x48CC)                      0x33E0 SharePoint Foundation         Topology                      8u9yHigh    [Forced due to logging gap, cached @ 11/03/2014 01:28:57.53, Original Level: Verbose] Solution Deployment : Deleting temporary directory {0}8e72c89c-f274-90aa-f431-817b5ff945b7
11/03/2014 01:28:57.61 w3wp.exe (0x48CC)                      0x33E0 SharePoint Foundation         Topology                      88g8High    [Forced due to logging gap, Original Level: Verbose] Solution Id : {0} 8e72c89c-f274-90aa-f431-817b5ff945b7
11/03/2014 01:28:57.61 w3wp.exe (0x48CC)                      0x33E0 SharePoint Foundation         Topology                      umadMedium  Solution Deployment : Looking for 'ReceiverAssembly' attribute in manifest root node for solution 'TestSave.wsp'.8e72c89c-f274-90aa-f431-817b5ff945b7
11/03/2014 01:28:57.61 w3wp.exe (0x48CC)                      0x33E0 SharePoint Foundation         Topology                      umaeMedium  Solution Deployment : Looking for 'ReceiverClass' attribute in manifest root node for solution 'TestSave.wsp'.8e72c89c-f274-90aa-f431-817b5ff945b7
11/03/2014 01:28:57.61 w3wp.exe (0x48CC)                      0x33E0 SharePoint Foundation         Topology                      umalMedium  Solution Deployment : Missing one or more of the following attributes from the root node in solution TestSave.wsp: assembly '', type ''.8e72c89c-f274-90aa-f431-817b5ff945b7
11/03/2014 01:28:57.63 w3wp.exe (0x0A68)                      0x3D64 SharePoint Server Search       Query                        ac3iqHigh    Ims::EndPoints: old: net.tcp://SC-SPSTD-DEV/5DC7B4/QueryProcessingComponent1/ImsQueryInternal;, new: net.tcp://SC-SPSTD-DEV/5DC7B4/QueryProcessingComponent1/ImsQueryInternal;
11/03/2014 01:28:57.72 w3wp.exe (0x48CC)                      0x33E0 SharePoint Foundation         Topology                      aa8uiHigh    [Forced due to logging gap, Original Level: Verbose] Solution Deployment : Exception thrown during solution loading: {0}, {1}8e72c89c-f274-90aa-f431-817b5ff945b7
11/03/2014 01:28:57.75 w3wp.exe (0x48CC)                      0x33E0 SharePoint Foundation         Solution Exporter            ad0n3MonitorableMicrosoft.SharePoint.SPException: Feature definition with Id eea995b4-32f9-4f6d-ba2a-1ae388cb288c failed validation, file 'TestSaveListInstances\ElementsFields.xml', line 7, character 250: The 'Hidden' attribute is invalid - The value '' is invalid according to its datatype 'http://schemas.microsoft.com/sharepoint/:TRUEFALSE' - The Enumeration constraint failed.     at Microsoft.SharePoint.Administration.SPSolutionPackage.FeatureXmlValidationCallback.XmlValidationCallBack(Object sender, ValidationEventArgs evtargs)     at System.Xml.Schema.XmlSchemaValidator.CheckAttributeValue(Object value, SchemaAttDef attdef)     at System.Xml.Schema.XmlSchemaValidator.ValidateAttribute(String lName, String ns, XmlValueGetter attributeValueGetter, String attributeStringValue, XmlSchemaInfo schemaInfo)  ...8e72c89c-f274-90aa-f431-817b5ff945b7
11/03/2014 01:28:57.75*w3wp.exe (0x48CC)                      0x33E0 SharePoint Foundation         Solution Exporter            ad0n3Monitorable...   at System.Xml.XsdValidatingReader.ValidateAttributes()     at System.Xml.XsdValidatingReader.ProcessElementEvent()     at System.Xml.XsdValidatingReader.Read()     at System.Xml.XmlReader.MoveToContent()    at System.Xml.XmlReader.IsStartElement()     at Microsoft.SharePoint.Utilities.SPUtility.XsdValidateXml(XmlTextReader xmlStreamReader, String friendlyName, String pathXsdFile, String tagExpectedRootNode, Int32 desiredPathVersion, ValidationEventHandler xsdValEventHandler)     at Microsoft.SharePoint.Utilities.SPUtility.XsdValidateXml(XmlTextReader xmlStreamReader, String friendlyName, String pathXsdFile, String tagExpectedRootNode, ValidationEventHandler xsdValEventHandler)     at Microsoft.SharePoint.Administration.SPSolutionPackage.SolutionFile.ValidateFeatureXmlFile(String rootTa...8e72c89c-f274-90aa-f431-817b5ff945b7
11/03/2014 01:28:57.75*w3wp.exe (0x48CC)                      0x33E0 SharePoint Foundation         Solution Exporter            ad0n3Monitorable...gElement)     at Microsoft.SharePoint.Administration.SPSolutionPackage.AddFeatureElementsCore(XmlNodeList nodeList, String strFeatureDirRelativeToCabFile, Guid featureId, Dictionary`2 filesAdded)     at Microsoft.SharePoint.Administration.SPSolutionPackage.AddFeatureElements(XmlNode root, String strFeatureDirRelativeToCabFile, String strFeatureXmlFilename, Guid featureId)     at Microsoft.SharePoint.Administration.SPSolutionPackage.WspSolutionFeature.ProcessFeatureXml()     at Microsoft.SharePoint.Administration.SPSolutionPackage.InitSolutionFeatures(XmlNode root)     at Microsoft.SharePoint.Administration.SPSolutionPackage.ProcessSolutionManifest()     at Microsoft.SharePoint.Administration.SPSolutionLanguagePack.CreateSolutionPackage(SPRequest request, String name, String signature, Byte...8e72c89c-f274-90aa-f431-817b5ff945b7
11/03/2014 01:28:57.75*w3wp.exe (0x48CC)                      0x33E0 SharePoint Foundation         Solution Exporter            ad0n3Monitorable...[] fileBytes)     at Microsoft.SharePoint.SPUserSolutionCollection.<>c__DisplayClass4.<AddOrUpgrade>b__0()     at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)     at Microsoft.SharePoint.SPUserSolutionCollection.AddOrUpgrade(SPListItem item, SPUserSolution existingSolution)     at Microsoft.SharePoint.SPUserSolutionCollection.Add(Int32 solutionGalleryItemId)     at Microsoft.SharePoint.SPSolutionExporter.ExportWebToGallery(SPWeb web, String solutionFileName, String title, String description, ExportMode exportMode, Boolean includeContent, String workflowTemplateName, String destinationListUrl, Action`1 solutionPostProcessor, Boolean activateSolution)8e72c89c-f274-90aa-f431-817b5ff945b7
11/03/2014 01:28:57.75 w3wp.exe (0x48CC)                      0x33E0 SharePoint Foundation         General                      8ncaMedium  Application error when access /_layouts/15/savetmpl.aspx, Error=Error copying temporary solution file to solutions gallery: _catalogs/solutions/TestSave.wsp   at Microsoft.SharePoint.SPSolutionExporter.ExportWebToGallery(SPWeb web, String solutionFileName, String title, String description, ExportMode exportMode, Boolean includeContent, String workflowTemplateName, String destinationListUrl, Action`1 solutionPostProcessor, Boolean activateSolution)     at Microsoft.SharePoint.ApplicationPages.SaveAsTemplatePage.BtnSaveAsTemplate_Click(Object sender, EventArgs e)     at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)8e72c89c-f274-90aa-f431-817b5ff945b7
11/03/2014 01:28:57.75 w3wp.exe (0x48CC)                      0x33E0 SharePoint Foundation         Runtime                      tkauUnexpectedSystem.InvalidOperationException: Error copying temporary solution file to solutions gallery: _catalogs/solutions/TestSave.wsp    at Microsoft.SharePoint.SPSolutionExporter.ExportWebToGallery(SPWeb web, String solutionFileName, String title, String description, ExportMode exportMode, Boolean includeContent, String workflowTemplateName, String destinationListUrl, Action`1 solutionPostProcessor, Boolean activateSolution)     at Microsoft.SharePoint.ApplicationPages.SaveAsTemplatePage.BtnSaveAsTemplate_Click(Object sender, EventArgs e)     at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)8e72c89c-f274-90aa-f431-817b5ff945b7
11/03/2014 01:28:57.75 w3wp.exe (0x48CC)                      0x33E0 SharePoint Foundation         General                      ajlz0High    Getting Error Message for Exception System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.InvalidOperationException: Error copying temporary solution file to solutions gallery: _catalogs/solutions/TestSave.wsp     at Microsoft.SharePoint.SPSolutionExporter.ExportWebToGallery(SPWeb web, String solutionFileName, String title, String description, ExportMode exportMode, Boolean includeContent, String workflowTemplateName, String destinationListUrl, Action`1 solutionPostProcessor, Boolean activateSolution)     at Microsoft.SharePoint.ApplicationPages.SaveAsTemplatePage.BtnSaveAsTemplate_Click(Object sender, EventArgs e)     at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)     at System.Web.UI.Pag...8e72c89c-f274-90aa-f431-817b5ff945b7
11/03/2014 01:28:57.75*w3wp.exe (0x48CC)                      0x33E0 SharePoint Foundation         General                      ajlz0High    ...e.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)     at System.Web.UI.Page.HandleError(Exception e)     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)     at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)     at System.Web.UI.Page.ProcessRequest()     at System.Web.UI.Page.ProcessRequest(HttpContext context)     at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()     at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)8e72c89c-f274-90aa-f431-817b5ff945b7
11/03/2014 01:28:57.77 w3wp.exe (0x48CC)                      0x33E0 SharePoint Foundation         Monitoring                    b4lyHigh    Leaving Monitored Scope (Request (POST:http://www.contoso.com:80/it/ITForum/ForumTemplate/_layouts/15/savetmpl.aspx)). Execution Time=21335.52253149498e72c89c-f274-90aa-f431-817b5ff945b7
11/03/2014 01:28:57.94 w3wp.exe (0x48CC)                      0x3DA4 SharePoint Foundation         Monitoring                    nasqMedium  Entering monitored scope (Request (GET:http://www.contoso.com:80/it/ITForum/ForumTemplate/_layouts/15/error.aspx?ErrorText=An%20unexpected%20error%20has%20occurred%2E&ErrorCorrelationId=8e72c89c%2Df274%2D90aa%2Df431%2D817b5ff945b7)). Parent No
11/03/2014 01:28:57.94 w3wp.exe (0x48CC)                      0x3DA4 SharePoint Foundation         Logging Correlation Data      xmnvMedium  Name=Request (GET:http://www.contoso.com:80/it/ITForum/ForumTemplate/_layouts/15/error.aspx?ErrorText=An%20unexpected%20error%20has%20occurred%2E&ErrorCorrelationId=8e72c89c%2Df274%2D90aa%2Df431%2D817b5ff945b7)9372c89c-82b5-90aa-f431-854df2195f3b
11/03/2014 01:28:57.95 w3wp.exe (0x48CC)                      0x3DA4 SharePoint Foundation         Authentication Authorization  agb9sMedium  Non-OAuth request. IsAuthenticated=True, UserIdentityName=0#.w|contoso\johndoe, ClaimsCount=389372c89c-82b5-90aa-f431-854df2195f3b

  



Get selected item ID to display in customized DispForm javascript

$
0
0

I'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);

Showing Contacts in People Search results

$
0
0

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 App Deployment Error

$
0
0

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


SharePoint 2013 JSOM asynchronous calls issue

$
0
0

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());
}

change the content type of a page layout issue

$
0
0

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?

Viewing all 25064 articles
Browse latest View live


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