qaz6908768 发表于 2020-11-20 16:26:11

脚本导入Excel数据到内容平台wiParameter到底起什么作用?

通过模仿固定资产formCommon脚本实现导入Excel数据,但是有些数据是需要从流程表单中获取的,到底如何把这些数据传到新创建的内容管理文档中?
1.通过查找importDocumentForExcel的API介绍得知wiParamter是传入的数据,创建的所有内容管理文档都会有这些数据,那么数据格式?示例呢?
2.formCommon脚本中哪怕注释掉wiParameter这一部分,仍然可以正常导入资产,那脚本写这部分的意义又何在呢?

qaz6908768 发表于 2020-11-23 09:43:35

顶一下

论坛管理员 发表于 2020-11-24 14:10:01

wiParameter的json格式,你可以拼接自己的数据

       @FieldDescribe( "数据路径或者属性名." )
      private String dataPath = null;
      
      @FieldDescribe( "数据类型: String | Integer | Boolean | Date." )
      private String dataType = "String";
      
      @FieldDescribe( "数据值:" )
      private String dataString = null;
      
      @FieldDescribe( "数据值:" )
      private Integer dataInteger = null;
      
      @FieldDescribe( "数据值:" )
      private Integer dataBoolean = null;
      
      @FieldDescribe( "数据值:" )
      private Integer dataDate = null;
页: [1]
查看完整版本: 脚本导入Excel数据到内容平台wiParameter到底起什么作用?