home | products | customer | support | forums | contact
Sign in | Join |
in
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 02-03-2012 2:50

    • chrisqn
    • Not Ranked
    • Joined on 09-26-2011
    • Austria

    Create export template with FS API?

    Hi,

    is ist possible to create xml export tempaltes via the FeedbackServer API?

    I would like to create export templates with C# code instead of using the FS user interface.

    thanks for your answer,

    Chris 

  • 02-03-2012 8:34 In reply to

    • Tom
    • Top 10 Contributor
    • Joined on 05-19-2007
    • Switzerland
    • Data Illusion

    Re: Create export template with FS API?

    Hi,

    yes you may check following post about data export through the API :
    http://www.dataillusion.com/Forums/t/390.aspx

     

  • 02-06-2012 2:23 In reply to

    • chrisqn
    • Not Ranked
    • Joined on 09-26-2011
    • Austria

    Re: Create export template with FS API?

    Hi,

     i implemented it like you described it in post http://www.dataillusion.com/Forums/t/390.aspx and it works. The problem is, that i have to create an export template in the FeedbackServer to export data. I would like to create an export template with C# and add it to a survey that i don't have to create the template every time i create a new survey.

     is there somthing like

    ExportTemplate template = new ExportTemplate(..., ..., ...);
    survey.addTemplate(template);

    thanks for your help,

    Chris

  • 02-09-2012 0:53 In reply to

    • Tom
    • Top 10 Contributor
    • Joined on 05-19-2007
    • Switzerland
    • Data Illusion

    Re: Create export template with FS API?

     Hi,

    you an create a template dynamically using :

     

                DataExportTemplateData templateData = new DataExportTemplateData();
                DataExportTemplateData.DataExportTemplatesRow template = templateData.
                    DataExportTemplates.NewDataExportTemplatesRow();

                template.DataExportTemplateId = -1;
                template.DataExportTemplateTypeId = (int)ExportDataType.Xml;
                template.TemplateTitle =
                template.ExportStartDate =
                template.ExportEndDate =
                template.ExportEncoding = "UTF-8";
                    template.SetFilterIdNull();
                template.SurveyId =
                template.UseReportingAlias =
                template.IncludeRespondentDate =
                template.IncludeRespondentEmail =
                template.IncludeRespondentId =
                template.IncludeRespondentIp =
                template.IncludeRespondentLanguage =
                template.IncludeRespondentUsername =
                template.IncludeSecurityAddin =
                template.ResponseExportType = (int)ResponseExportType.Completed;
                templateData.DataExportTemplates.AddDataExportTemplatesRow(template);

Page 1 of 1 (4 items)
(c) 2012 Data Illusion. All Rights Reserved.