Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hello. We're using contour for the first time on a project and need some help getting a start on this one.
Basically we need to display the date and time the last export occured and give an option to export entries entered since the last update.
So the quetions are:
What is the best way to approach this? and How/Where to "hook into" contour to insert custom code?
Thanks.
There are no hooks into the data export
But you can create a custom export type that has a setting (datepicker) so that the user can select a date and then use the selected date...
So default cv export looks like
public class ExportToExcel : ExportType {
public ExportToExcel() { this.Description = "Exports all data to a csv file"; this.Name = "CSV File"; this.Id = new Guid("94ED105A-87B3-4e1f-97CB-9A320AEE2745"); this.FileExtension = "csv"; } private string xslt = Configuration.Path + "/xslt/excel.xslt"; public override string ExportForm(Form form) { RecordsViewer rv = new RecordsViewer(); XmlDocument xs = new XmlDocument(); XmlNode XmlRecords = rv.GetXmlRecords(form, xs); rv.Dispose(); return XsltConvert(XmlRecords, HttpContext.Current.Server.MapPath(xslt)); } }
Or explain to your users that they can just filter it in excell...
Ok, thanks for the response.
Ok more details on extending Contour can be found here http://our.umbraco.org/projects/umbraco-pro/contour/documentation/Developer/Extending-Contour/
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Export Data Since Last Export
Hello. We're using contour for the first time on a project and need some help getting a start on this one.
Basically we need to display the date and time the last export occured and give an option to export entries entered since the last update.
So the quetions are:
What is the best way to approach this? and How/Where to "hook into" contour to insert custom code?
Thanks.
There are no hooks into the data export
But you can create a custom export type that has a setting (datepicker) so that the user can select a date and then use the selected date...
So default cv export looks like
public class ExportToExcel : ExportType {
Or explain to your users that they can just filter it in excell...
Ok, thanks for the response.
Ok more details on extending Contour can be found here http://our.umbraco.org/projects/umbraco-pro/contour/documentation/Developer/Extending-Contour/
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.