将结果映射成表格式

输出模块支持表格输出格式并使用不同类型ViewConfig调用表ViewConfig.表ViewConfig拥有列内映射段分配选字段列前举例子使用ViewConfig输入API制作JSON树格式

下示例使用表ViewConfig.并发下{{domain}}/rest/2.0/outputModule/export/json端点使用表ViewConfigJSON有效载荷

狗万新闻c{    "TableViewConfig": {      "displayLength": 5,      "displayStart": 10,      "Resources": {        "Community": {          "Id": { "name": "communityId" },          "Name": { "name": "communityName" },          "Description": { "name": "communityDescription" }        }      },      "Columns": [        { "Column": { "fieldName": "communityId" } },        { "Column": { "fieldName": "communityName" } },        { "Column": { "fieldName": "communityDescription" } }      ]    }  }
狗万新闻c---  TableViewConfig:    displayLength: 5    displayStart: 10    Resources:      Community:        Id:          name: "communityId"        Name:          name: "communityName"        Description:          name: "communityDescription"    Columns:    -      Column:        fieldName: "communityId"    -      Column:        fieldName: "communityName"    -      Column:        fieldName: "communityDescription"

格式化时,本查询生成数列,每一列都包含请求列

{      "iTotalDisplayRecords": 48,      "iTotalRecords": 5,      "aaData": [          {              "communityId": "12345678-0006-0000-0000-000000000000",              "communityName": "Simple Community 6",              "communityDescription": ""          },          {              "communityId": "12345678-0007-0000-0000-000000000000",              "communityName": "Simple Community 7",              "communityDescription": ""          },          {              "communityId": "12345678-0008-0000-0000-000000000000",              "communityName": "Simple Community 8",              "communityDescription": ""          },          {              "communityId": "12345678-0009-0000-0000-000000000000",              "communityName": "Simple Community 9",              "communityDescription": ""          },          {              "communityId": "12345678-0010-0000-0000-000000000000",              "communityName": "Simple Community 10",              "communityDescription": ""          }      ]  }

因为列内映射决定何应返回,设置隐藏:真属性无效表ViewConfig.

下例中,“displayLength”值设为0查询显示实体数而不检索实际结果

新万博移动客户端JSON数据表输出包含Collibra可用记录总数iTotalDisplayRecords.内存记录数返回集Tot记录.

{iTotdisplayRecords>:48itrecords#0a

可使用表ViewConfig查询端点如下:

  • {{domain}}/rest/2.0/outputModule/export/{{json | csv}}
  • ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  • domain++/rest++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++