Skip to content

Instantly share code, notes, and snippets.

@Dheer-Rajpoot
Dheer-Rajpoot / CustomExportFormDataToExcel.cs
Created September 16, 2017 18:06
WFFM | Customizing export form data to excel functionality
using Sitecore;
using Sitecore.Diagnostics;
using Sitecore.Jobs;
using Sitecore.Security.Accounts;
using Sitecore.WFFM.Abstractions.Analytics;
using Sitecore.WFFM.Abstractions.Data;
using Sitecore.WFFM.Abstractions.Dependencies;
using Sitecore.WFFM.Services.Pipelines;
using Sitecore.WFFM.Speak.ViewModel;
using System;
@Dheer-Rajpoot
Dheer-Rajpoot / SaveToDatabaseAction.cs
Last active September 17, 2017 06:25
WFFM | Save to Database Action
using Sitecore.Data;
using Sitecore.Diagnostics;
using Sitecore.WFFM.Abstractions.Actions;
using Sitecore.WFFM.Abstractions.Analytics;
using Sitecore.WFFM.Abstractions.Dependencies;
using Sitecore.WFFM.Actions.Base;
using Sitecore.WFFM.Analytics.Providers;
using System;
using System.Collections.Generic;
using System.Web;
@Dheer-Rajpoot
Dheer-Rajpoot / CustomSqlFormsDataProvider.cs
Created September 16, 2017 17:20
WFFM : custom SQL provider to store form data
using Sitecore.Diagnostics;
using Sitecore.WFFM.Abstractions.Analytics;
using Sitecore.WFFM.Abstractions.Shared;
using Sitecore.WFFM.Analytics.Providers;
using System;
using System.Collections.Generic;
using System.Web;
namespace Website.WFFM.Providers
{
@Dheer-Rajpoot
Dheer-Rajpoot / Sitecore.Support.75227.aspx
Last active September 9, 2017 12:21
WFFM upgrade issue | Radio List Field or Drop List Field is empty in Form Designer
<%@ Page Language="c#" Debug="true" Async="true" %>
<%@ Import Namespace="System" %>
<%@ Import Namespace="System.Collections.Generic" %>
<%@ Import Namespace="System.Web" %>
<%@ Import Namespace="System.Net" %>
<%@ Import Namespace="System.Configuration" %>
<%@ Import Namespace="System.IO" %>
<%@ Import Namespace="Sitecore.Data.Items" %>
<%@ Import Namespace="Sitecore.Links" %>
public class XMLElementValueAccessorConverter : ValueAccessorConverter
{
//the id from the value accessor template you created named XML Element Value Accessor.
private static readonly Guid TemplateId = Guid.Parse("{9B88A6C5-C38E-4A41-9798-17AC92F3BD20}");
public XMLElementValueAccessorConverter(IItemModelRepository repository) : base(repository)
{
this.SupportedTemplateIds.Add(TemplateId);
}
public class XMLElementValueReader : IValueReader
{
public readonly string ElementName;
public XMLElementValueReader(string elementName)
{
this.ElementName = elementName;
}
public CanReadResult CanRead(object source, DataAccessContext context)
public class XMLElementValueAccessorItemModel
{
public const string ElementName = "ElementName";
}
[RequiredEndpointPlugins(typeof(XMLSystemSettings))]
public class ReadXMLDataStepProcessor : BaseReadDataStepProcessor
{
public ReadXMLDataStepProcessor()
{
}
protected override void ReadData(
Endpoint endpoint,
PipelineStep pipelineStep,
public class ReadXMLDataStepConverter : BasePipelineStepConverter<ItemModel>
{
// the id from the pipeline step template you created named Read XML Data Pipeline Step.
private static readonly Guid TemplateId = Guid.Parse("{00191A02-F1B4-406C-B3CB-60568CCDD6D3}");
public ReadXMLDataStepConverter(IItemModelRepository repository) : base(repository)
{
this.SupportedTemplateIds.Add(TemplateId);
}
protected override void AddPlugins(ItemModel source, PipelineStep pipelineStep)
{
public class ReadXMLDataStepItemModel : ItemModel
{
public const string EndpointFrom = "EndpointFrom";
}