简体   繁体   English

我可以在导出Drupal 8 Webform提交的CSV文件时对列进行重新排序吗?

[英]Can I re-order columns in exporting CSV on Drupal 8 Webform Submissions?

Currently, there is a results download feature with webform core module and we can select the columns to include in exporting CSV file. 目前,有一个带有Webform核心模块的结果下载功能,我们可以选择要包含在导出CSV文件中的列。

在此处输入图片说明

But I couldn't figure it out how can we re-order these columns to show them in exact custom order we require in exporting CSV file. 但是我无法弄清楚我们如何重新排序这些列,以按照导出CSV文件时所需的确切自定义顺序显示它们。

Is this possible with current features provided or is this achievable using some custom code and Webform Submission Exporter provided? 是否可以通过提供当前功能来实现,还是可以通过使用某些自定义代码和Webform Submission Exporter来实现?

Any help, direction or guidance would be appreciated. 任何帮助,指导或指导将不胜感激。

You would have to extend the DelimitedWebformExporter and add the column sorting logic. 您将必须扩展DelimitedWebformExporter并添加列排序逻辑。

Another approach is to use the Webform View Integration module and build a completely custom CSV. 另一种方法是使用Webform View Integration模块并构建完全自定义的CSV。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM