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

workflow account permission

$
0
0
the account am using for site develpment (Permission - site collection owner) cannot create list workflow. wht neccesary permission does the account need to have to be able to create workflow.

SharePoint Work Flow designer - Send-email action canceled work flow

$
0
0

Hello, 

  •   I have create a simple SharePoint 2013 workflow  by SharePoint designer . 
  •   The workflow has "Send Email" action .
  •   I have add new item in list and run the workflow .  the workflow canceled automatically .

  •   I have Create another workflow "SharePoint 2010 workflow" by SharePoint designer .
  •   I repeat the previous steps . The Email sent successfully. 

      So why send Email action is working with SharePoint and not working with SharePoint ?

   here it is the exception that I get when the workflow is canceled 

    RequestorId: e19b955f-f426-5911-98ca-99a468c60325. Details: System.ApplicationException: HTTP 500 {"Transfer-Encoding":["chunked"],"X-SharePointHealthScore":["0"],"SPClientServiceRequestDuration":["45"],"SPRequestGuid":["e19b955f-f426-5911-98ca-99a468c60325"],"request-id":["e19b955f-f426-5911-98ca-99a468c60325"],"X-FRAME-OPTIONS":["SAMEORIGIN"],"MicrosoftSharePointTeamServices":["15.0.0.4420"],"X-Content-Type-Options":["nosniff"],"X-MS-InvokeApp":["1; RequireReadOnly"],"Cache-Control":["max-age=0, private"],"Date":["Sun, 26 Oct 2014 18:42:40 GMT"],"Server":["Microsoft-IIS\/8.5"],"X-AspNet-Version":["4.0.30319"],"X-Powered-By":["ASP.NET"]} at Microsoft.Activities.Hosting.Runtime.Subroutine.SubroutineChild.Execute(CodeActivityContext context) at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager,  

RequestorId: e19b955f-f426-5911-98ca-99a468c60325. Details: System.ApplicationException: HTTP 500 {"Transfer-Encoding":["chunked"],"X-SharePointHealthScore":["0"],"SPClientServiceRequestDuration":["45"],"SPRequestGuid":["e19b955f-f426-5911-98ca-99a468c60325"],"request-id":["e19b955f-f426-5911-98ca-99a468c60325"],"X-FRAME-OPTIONS":["SAMEORIGIN"],"MicrosoftSharePointTeamServices":["15.0.0.4420"],"X-Content-Type-Options":["nosniff"],"X-MS-InvokeApp":["1; RequireReadOnly"],"Cache-Control":["max-age=0, private"],"Date":["Sun, 26 Oct 2014 18:42:40 GMT"],"Server":["Microsoft-IIS\/8.5"],"X-AspNet-Version":["4.0.30319"],"X-Powered-By":["ASP.NET"]} at Microsoft.Activities.Hosting.Runtime.Subroutine.SubroutineChild.Execute(CodeActivityContext context) at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, 
RequestorId: e19b955f-f426-5911-98ca-99a468c60325. Details: System.ApplicationException: HTTP 500 {"Transfer-Encoding":["chunked"],"X-SharePointHealthScore":["0"],"SPClientServiceRequestDuration":["45"],"SPRequestGuid":["e19b955f-f426-5911-98ca-99a468c60325"],"request-id":["e19b955f-f426-5911-98ca-99a468c60325"],"X-FRAME-OPTIONS":["SAMEORIGIN"],"MicrosoftSharePointTeamServices":["15.0.0.4420"],"X-Content-Type-Options":["nosniff"],"X-MS-InvokeApp":["1; RequireReadOnly"],"Cache-Control":["max-age=0, private"],"Date":["Sun, 26 Oct 2014 18:42:40 GMT"],"Server":["Microsoft-IIS\/8.5"],"X-AspNet-Version":["4.0.30319"],"X-Powered-By":["ASP.NET"]} at Microsoft.Activities.Hosting.Runtime.Subroutine.SubroutineChild.Execute(CodeActivityContext context) at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, 

ASk

Workflow Sharepoint App / An unhandled exception ContentTypeId at Microsoft.Activities.Hosting.Runtime.Subroutine.SubroutineChild.Execute

$
0
0

Hello,

I am creating a Sharepoint-Hosted App to create a Workflow with VS2012.

I am adding the Workflow and on top an association form.

After getting the values I need with the help of a GetConfigurationValue I am creating a Single Task.

I have a List created as a Document Library and I add the Workflow to the List manually.

So far so good, the Association Form appears and I submit the values.

After that the Workflow gets stopped with the following message:

RequestorId: b049408c-e114-a668-0000-000000000000. Details: An unhandled exception occurred during the execution of the workflow instance. Exception details: System.ArgumentException: ContentTypeId at Microsoft.Activities.Hosting.Runtime.Subroutine.SubroutineChild.Execute(CodeActivityContext context) at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)

I have found that this error appears when one uses a custom workflow content type id which is not added to the task list.

The problem is that I am using the default Sharepoint Workflow 2013, and I have no access to the content types of the list which is created automatically inside the Workflow instance.

I have also created a Task List inside the App but I cannot link the WorkflowTaskList to my Task List. The List just doesnt appear as an Option in the WorkflowTaskList Property of the Workflow.

After debugging with Visual Studio I get the following error:

Unhandled exception at line 1, column 25064 in http://app-29686f0f64c9a8.penguins.local/_layouts/15/callout.js?rev=ryx2n4ePkYj1/ALmcsXZfA==

0x800a139e - JavaScript runtime error: Error: Argument has no callout associated with it.

Any help would be appreciated!

Thanx in advance!

Grey background when trying to place page in edit mode

$
0
0

Hi,

When I try to place a particular page in edit mode in my sharepoint site, it displays a grey background with no content i.e. it doesn't go into edit mode.  I have tried reverting to previous versions of the page and I have the same issue. This issue even spans multiple browsers.

I have even tried changing my master page to one that works in the testting environment, but this still doesn' work in production. Any ideas of what next to do?

thanks,

Sherazad.


Sherazad

Trying to upload pdf documents to sharepoint document library with metadata

$
0
0

Hi

I'm trying to upload pdf document to document library with metadata tagging. Filename has underscores which we are using as separator and trying to update columns with Filename[0] , Filename[1], Filename[2] etc.. values to columns simultaneously as we upload files..Using an event receiver item added for this purpose but surprisingly its failing.. Did anyone of you try this before if so let me know for any helpful insights..

try
            {
                string itemFileName = properties.ListItem["Name"].ToString();
                string[] subFilenames = itemFileName.Split('_');
                
                string strItemPeriod = "";
                string strItemName = "";

                if (subFilenames.Length > 0)
                {
                    strItemName = subFilenames[0];
                    strItemPeriod = subFilenames[1];

                }
                else
                {
                    strItemName = "Default Description";
                    strItemPeriod = "1000"; //default
                }

                properties.ListItem["Year"] = strItemYear;
                properties.ListItem["Description"] = strItemName;

                //Stop other events from firing while this method executes
                this.EventFiringEnabled = false;

                // save the new value
                properties.ListItem.SystemUpdate();
            }
            catch (Exception ex)
            {
                properties.ErrorMessage = string.Format("An error occurred during execution of ItemAdded event: {0}.", ex.Message);
                properties.Status = SPEventReceiverStatus.CancelWithError;
                //properties.Cancel = true;
            }
            finally
            {

                //Enable event firing again
                this.EventFiringEnabled = true;
            }
        }

Thanks

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




Chart control data points not visible - Visual WebPart

$
0
0

Hi,

I have created a Chart control based visual webpart. I have used custom labels for both x and y axis.The problem - when i am trying to plot xy values, it is not visible on the chart.

Code

    chart1.Series["Series1"].ChartType=SeriesChartType.Bar;
    chart1.Series["Series1"]["PointWidth"]="0.6";foreach(string x in axisXValues){
         clabelX =newCustomLabel(xpos, xpos +1, x,0,LabelMarkStyle.None);
         chart1.ChartAreas[0].AxisX.CustomLabels.Add(clabelX);
         xpos++;}foreach(DataRow r in dt.Rows){string c=r[0].ToString();string s=r[1].ToString();
        chart1.Series["Series1"].Points.AddXY(c,s);}

Thanks,

Thomas

Deploying Two Lists In Same Project Adds Same Columns To Second

$
0
0

Hi,

I have a SP project with two different lists definitions and instances. All are deployed by the same feature.

The problem is: when I access them, the list that is deployed second has the exact same columns as the first! If I look at its settings, I can see that it is using the same content type, although the files in Visual Studio say otherwise!

Is this a known problem?

Thanks,

RP


copy sharepoint 2013 subsite names to top level site list

$
0
0
How could I copy sharepoint 2013 subsite names to a top site list by using workflow?

HTTPS SharePoint site with HTTPS Provider hosted app - The remote certificate is invalid according to the validation procedure

$
0
0

We have SharePoint 2013 site configured with SSL and we have developed a provider hosted app which interacts with SharePoint list.

If we try accessing the Provider hosted app from the SharePoint site with HTTP [http://mysharepointsite.com/] there are no any errors thrown.

But whenever the same Provider hosted app is tried accessing from the same SharePoint site using https address[https://mysharepointsite.com/] we are getting below error:

The remote certificate is invalid according to the validation procedure.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.

Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:
[AuthenticationException: The remote certificate is invalid according to the validation procedure.]
   System.Net.Security.SslState.StartSendAuthResetSignal(ProtocolToken message, AsyncProtocolRequest asyncRequest, Exception exception) +2983172
   System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest) +473
   System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest) +86
   System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest) +262
   System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest) +473
   System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest) +86
   System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest) +262
   System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest) +473
   System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest) +86
   System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest) +262
   System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest) +473
   System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest) +8530566
   System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult) +230
   System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) +645
   System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) +9
   System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) +87
   System.Net.TlsStream.ProcessAuthentication(LazyAsyncResult result) +1467
   System.Net.TlsStream.Write(Byte[] buffer, Int32 offset, Int32 size) +84
   System.Net.PooledStream.Write(Byte[] buffer, Int32 offset, Int32 size) +22
   System.Net.ConnectStream.WriteHeaders(Boolean async) +761

[WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.]
   System.Net.HttpWebRequest.GetResponse() +8534156
   Microsoft.SharePoint.Client.SPWebRequestExecutor.Execute() +58
   Microsoft.SharePoint.Client.ClientRequest.ExecuteQueryToServer(ChunkStringBuilder sb) +975
   ProviderHostedHTTPSWeb.Default.Page_Load(Object sender, EventArgs e) +348
   System.Web.UI.Control.LoadRecursive() +71
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3178
We have already added the certificate used for the SharePoint site and the provider hosted app in the SharePoint central admin trusts.

Any idea's how can I resolve this issue?

Get the Version history of a sharepoint 2013 Custom List item

$
0
0

Hi All,

I am having doubt to retrieve the field version information with the comments.

For this field i am done like this

1.Creating a custom list

2.And enable versioning for the list

3.And add a field with field type 'Multiple Lines of Text' and in the Addition Column Settings section 'select yes radio button option in 'Append changes to the Existing text'.

4.If we done like this the changes to the list item are available outside of field control.

Can any one help me regarding this field to get the all the versions of list item along with modified data.

Custom Field Type that inherits from SPFieldLookup

$
0
0

hello

I am creatinga customfieldtypethatinherits from alookup.Wellbelowthe codeofVaireclasses:

-Theclass that derives fromSPFieldLookup

           

namespace CustomTypeFieldLkUpFilter.CustomControlsCTFFilter
{
    class CustomTypeFieldLkUpFilter : SPFieldLookup
    {
        public CustomTypeFieldLkUpFilter(SPFieldCollection fields, string fieldName) : base(fields, fieldName) { }

        public CustomTypeFieldLkUpFilter(SPFieldCollection fields, string fieldName, string displayName) : base(fields, fieldName, displayName) { }


        /// <summary>
        /// metodo che definisce come renderizza il controllo sulla form page
        /// </summary>
        public override BaseFieldControl FieldRenderingControl
        {
            [SharePointPermission(SecurityAction.LinkDemand, ObjectModel = true)]
            get
            {

                BaseFieldControl ctr = new CustomTypeFieldLkUpFilterControl();
                ctr.FieldName = this.InternalName;

                return ctr;
            }
        }

        public override object GetFieldValue(string value)
        {
            if (string.IsNullOrEmpty(value))
                return null;
            SPFieldLookupValueCollection field = new SPFieldLookupValueCollection();
            SPFieldLookupValue newValue = new SPFieldLookupValue(1, "aaa");
            field.Add(newValue);
            newValue = new SPFieldLookupValue(2, "bbb");
            field.Add(newValue);
            return field;
        }

        public override void OnAdded(SPAddFieldOptions op)
        {
            base.OnAdded(op);
            Update();
        } 
        public override string GetValidatedString(object value)
        {
            if ((this.Required == true)
               &&
               ((value == null)
                ||
               ((String)value == "")))
            {
                throw new SPFieldValidationException(this.Title
                    + " must have a value.");
            }

            return String.Format("{0}", value);

        }

        public override void Update()
        {
            SPSecurity.RunWithElevatedPrivileges(delegate()
            {
                using (SPSite site = new SPSite(SPContext.Current.Web.Url))
                {
                    using (SPWeb web = site.OpenWeb())
                    {
                        SPList list = web.Lists["Misure"];
                        base.LookupList = list.ID.ToString();
                        base.LookupField = "Title";
                        base.AllowMultipleValues = true;
                        base.LinkToItemAllowed = ListItemMenuState.Allowed;
                        base.LinkToItem = true;
                        base.Update();
                    }
                }
            });


        }
    }
}

-- the  XML file fldtypes_CustomTypeFieldLkUpFilter.xml

<?xml version="1.0" encoding="utf-8" ?>
<FieldTypes>
  <FieldType>
    <Field Name="TypeName">CustomTypeFieldLkUpFilter</Field>
    <Field Name="TypeDisplayName">Custom Type Field LkUp Filter</Field>
    <Field Name="TypeShortDescription">CustomTypeFieldLkUpFilter</Field>
    <Field Name="ParentType">LookupMulti</Field>
    <Field Name="UserCreatable">TRUE</Field>
    <Field Name="FieldTypeClass">CustomTypeFieldLkUpFilter.CustomControlsCTFFilter.CustomTypeFieldLkUpFilter, $SharePoint.Project.AssemblyFullName$</Field>
    <Field Name="Sortable">TRUE</Field>
    <Field Name="Filterable">TRUE</Field>
  </FieldType>
</FieldTypes>

-- the user control ascx CustomTypeFieldLkUpFilterControl.ascx

    

<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %> 
<%@ Register TagPrefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Control Language="C#" %>


<SharePoint:RenderingTemplate runat="server" ID="SRBaseFiledControlforEdit">
    <Template>
        <h1>SRBaseFiledControlforEdit</h1>
        <asp:Literal runat="server" ID="ltrlFieldValue"></asp:Literal>
        <asp:TextBox ID="inputTexTBox" runat="server"></asp:TextBox>
    </Template>

</SharePoint:RenderingTemplate>
<SharePoint:RenderingTemplate runat="server" ID="SRBaseFiledForDisplay">
    <Template>
            <h1>SRBaseFiledForDisplay</h1>
        <asp:Literal runat="server" ID="ltrlFieldValue"></asp:Literal>
   </Template>
</SharePoint:RenderingTemplate>

-- la class control CustomTypeFieldLkUpFilterControl.cs

namespace CustomTypeFieldLkUpFilter.CustomControlsCTFFilter.Controls
{
    class CustomTypeFieldLkUpFilterControl : BaseFieldControl
    {

        protected Literal ltrlFieldValue;
        protected TextBox inputTexTBox;
        #region Metodi in override

        protected override void CreateChildControls()
        {
            base.CreateChildControls();


            if (ControlMode == SPControlMode.Display)
            {
                InitializeView();
                return;
            }

            if (this.Field != null && this.ControlMode != SPControlMode.Invalid)
            {
                InitializeEdit();
                inputTexTBox.Text = "cornuto";
            }

        }

        protected override string DefaultTemplateName
        {
            get
            {
                if (this.ControlMode == SPControlMode.Display)
                {
                    //visualizza nel Displayform
                    return this.DisplayTemplateName;
                }
                else
                {
                    //visualizza negli altri form
                    return "SRBaseFiledControlforEdit";
                }
            }
        }

        public override string DisplayTemplateName
        {
            get
            {
                return "SRBaseFiledForDisplay";
            }
        }

        public override object Value
        {
            get
            {
                EnsureChildControls();
                SPFieldLookupValueCollection field = new SPFieldLookupValueCollection();
                SPFieldLookupValue newValue = new SPFieldLookupValue(1, "aaa");
                field.Add(newValue);
                newValue = new SPFieldLookupValue(2, "bbb");
                field.Add(newValue);
                //ltrlFieldValue.Text = "set Interno";
                return field.ToString(); 
            }
            set
            {
                //SPFieldLookupValueCollection lkpValueCollection = (SPFieldLookupValueCollection)this.ItemFieldValue;
                //extendedLookupValue.Value = lkpValueCollection.ToSemicolumnSeparatedLookupIds();
                //extendedLookupTextBox.Text = lkpValueCollection.ToSemicolumnSeparatedLookupValues();
                EnsureChildControls();
                ltrlFieldValue.Text = value.ToString();
            }
        }


        public override void UpdateFieldValueInItem()
        {
            //string ppp = inputTexTBox.Text;



            base.UpdateFieldValueInItem();
        }

        #endregion


        private void InitializeView()
        {
            ltrlFieldValue = (Literal)this.TemplateContainer.FindControl("ltrlFieldValue");
            if (ltrlFieldValue == null) throw new ArgumentException("Literal ltrlFieldValue non trovata");
        }

        private void InitializeEdit()
        {
            ltrlFieldValue = (Literal)this.TemplateContainer.FindControl("ltrlFieldValue");
            if (ltrlFieldValue == null) throw new ArgumentException("Literal ltrlFieldValue non trovata");
            inputTexTBox = (TextBox)this.TemplateContainer.FindControl("inputTexTBox");
            if (inputTexTBox == null) throw new ArgumentException("TextBox inputTexTBox non trovata");
        }
    }
}

AS YOU CAN SEEIN THEMETHODGETTHEVALUECREATEDASPFieldLookupValueCollection

WELLTHECOLUMNDOESBRINGTHE VALUESCORRECTLY, BUT WHENI GOON THESHOWISALLITEMS.APSX LISTBELOW

HAVE SOMETIPS

HELLO


Cross Domain without an app is it possible?

$
0
0

is it possible to make a cross domain call using javascript in SharePoint 2013? Please note that building a SharePoint hosted app is not an option for me. I just need to add a content editor webpart and make a call to List on site A from Site B. 

Please help,

Save sharepoint root site a template

$
0
0

Hi

Pease help me to save a 'Root level site' i.e. a 'site collection' as a template, i am getting the option to save a subsite as a template but not the whole site collection.

Is this possible to achieve?

Paru

Cross domain

$
0
0

Hi,

I need to make a cross domain call to another SharePoint site which is on a different domain. I understand that, if we are building a Sharepoint hosted app then we have libraries and examples on how to accomplish this. But, I am not building any app. I am just trying to add a content editor webpart on Site A and need to call and Query some data on Site B. Please help!


Custom authentications SharePoint 2013

$
0
0

Hi,

We need to implement two specific authentications mode for SharePoint 2013.

  • The first one is based on OTP (One Time Password).
  • The second is based on Smart Card.

Does anyone have some feedback on such authentications ?

Thank you for your help

Tracid83

Set "Hide physical URLs from search" default value

$
0
0

SharePoint 2013 publishing site.

I need, for a specific "Pages" list, to set the default value for the field "Hide physical URLs from search" via powershell.

I used the following script:

$web = get-spweb "http://xxx"
$list = $web.Lists["Pages"]
$field = $list.Fields["Hide physical URLs from search"]
$field.DefaultValue = "1"
$field.Update()

but the default value is not set.

If I add a custom bool field to the list and do the same thing, everything instead works:

$web = get-spweb "http://xxxx"
$list = $web.Lists["Pages"]
$field = $list.Fields["pippo"]
$field.DefaultValue = "1"
$field.Update()
any idea?


Nicola

Adding a new version in version collection of Document set using SharePoint 2013 JSOM

$
0
0

Hi,

I have to add new version to document set using SharePoint 2013 JSOM (Javacript Client side object Model). I am not getting any way in JSOM to achieve the same. I have to achieve this functionaliy inSharepoint hosted App.

Please find below server side working Code

                            web.AllowUnsafeUpdates = true;
                            listItem.Update();
                            DocumentSet documentSet = DocumentSet.GetDocumentSet(listItem.Folder);
                            documentSet.VersionCollection.Add(true, currentUser.Name);
                            web.AllowUnsafeUpdates = false;
I have to achieve same functionality using Sharepoint 2013 JSOM.

Requesting any one to please help me on this.





Error occurred in deployment step 'Install app for SharePoint': The provided App differs from another App with the same version and product ID.

$
0
0

I am facing this problem while start debugging the Provider-Hosted app through VS2013. I want to deploy the app with same version. So please let me know any solution to remove the app instance from office365 online, so that I can deploy the same app with same version on the specified "Developer Site".

Note: If I change the version in AppManifesst.xml file then this problem/error gets resolved. But I want to deploy with the same version as per my business requirement.

The actual error renders while I click to "Start" button of the Visual Studio 2013 to deploy the provider-hosted app, for the sake to deploying it on say "ABC" site collection (i.e. developer site). I work on office365 online. Therefore, request you to please provide the solution for SharePoint online office 365. The occurrences is:

"Error occurred in deployment step 'Install app for SharePoint': The provided App differs from another App with the same version and product ID."

Please assist me anyone. It will be so kind of you.....

Naveen Kumar

Steria India Ltd.




Additional data connections not supported.

$
0
0

Hello,

I am currently using SharePoint 2013 and InfoPath 2013.

I want to create a drop down list in InfoPath that points to external data content (in this case a lookup table in SQL server).

The process works in the InfoPath "preview" mode, but when I go to publish it to my SharePoint website, I get the following error:

"Additional data connections not supported."

I've also tried deploying the data source to my InfoPath Connection library on the SharePoint website and pointing it to that, but to no avail.

Any help would be greatly appreciated.

One further thing to note is that I am limited to a non-HTML5 web brower so I can't use Light Switch.

Kind regards,

Joshua



Viewing all 25064 articles
Browse latest View live