返回列表 发布新帖

LowCode设计器中,单身配置开窗参数,取单头字段值无效

9 2
发表于 前天 11:44 | 查看全部 阅读模式
问答

紧急程度

已完结

环境:华为云测试区
租户:电子半导体事业部
租户编号:icd
问题描述:
LowCode设计器中,单身配置开窗参数,取单头字段值无效。如题实现步骤如下:
1.API中单头新增虚字段:uiModeType
image.png
2.单头虚字段uiModeType的值由“模板编号”栏位带值过来。
image.png
3.单身“列名”栏位开窗,需要把单头“类型”值做为入参。入参配置如下图所示:
image.png
列名栏位开窗源码如下:
  1. {
  2.   "id": "17d545cf-e228-91d3-91f3-dceab19dc79e",
  3.   "mode": "row",
  4.   "sequence": 0,
  5.   "operate": "openwindow",
  6.   "name": "开窗",
  7.   "applyToField": "column_no",
  8.   "target": "data_replace_rule_detail.data_replace_rule_d",
  9.   "openWindowDefine": {
  10.     "multipleSelect": false,
  11.     "applyToArray": false,
  12.     "enableInputSearch": true,
  13.     "title": "查询规则列名信息",
  14.     "lang": {
  15.       "title": {
  16.         "zh_CN": "查询规则列名信息",
  17.         "zh_TW": "查詢規則列名資訊",
  18.         "en_US": "查询规则列名信息"
  19.       }
  20.     },
  21.     "allAction": {
  22.       "actionId": "esp_spa.icd.rule.column.d.get",
  23.       "actionParams": [
  24.         {
  25.           "name": "rule_column_d.mode_type",
  26.           "type": "ACTIVE_PARENT_ROW",
  27.           "value": "uiModeType"
  28.         }
  29.       ],
  30.       "name": "rule_column_d",
  31.       "type": "ESP",
  32.       "serviceName": "spa.icd.rule.column.d.get",
  33.       "dataKeys": [
  34.         "mode_type",
  35.         "column_no"
  36.       ],
  37.       "metadataFields": [],
  38.       "searchInfos": [
  39.         {
  40.           "searchField": "column_no",
  41.           "dataType": "string"
  42.         },
  43.         {
  44.           "searchField": "column_name",
  45.           "dataType": "string"
  46.         }
  47.       ]
  48.     },
  49.     "selectedFirstRow": true,
  50.     "useHasNext": true,
  51.     "buttons": [
  52.       {
  53.         "id": "confirm",
  54.         "title": "提交",
  55.         "lang": {
  56.           "title": {
  57.             "zh_TW": "提交",
  58.             "en_US": "Submit",
  59.             "zh_CN": "提交"
  60.           }
  61.         },
  62.         "language": {
  63.           "title": {
  64.             "zh_TW": "提交",
  65.             "en_US": "Submit",
  66.             "zh_CN": "提交"
  67.           }
  68.         },
  69.         "actions": [
  70.           {
  71.             "backFills": [
  72.               {
  73.                 "key": "column_no",
  74.                 "valueScript": "selectedObject['column_no']"
  75.               },
  76.               {
  77.                 "key": "column_name",
  78.                 "valueScript": "selectedObject['column_name']"
  79.               },
  80.               {
  81.                 "key": "uiModeType",
  82.                 "valueScript": "selectedObject['mode_type']"
  83.               }
  84.             ],
  85.             "type": "UI"
  86.           }
  87.         ]
  88.       }
  89.     ],
  90.     "layout": [
  91.       {
  92.         "type": "ATHENA_TABLE",
  93.         "path": "",
  94.         "dataType": "array",
  95.         "checkbox": false,
  96.         "rowDelete": false,
  97.         "rowIndex": false,
  98.         "rowSpanTree": false,
  99.         "schema": "rule_column_d",
  100.         "id": "68bead09-0f70-0626-b520-03fc96c3a251",
  101.         "columnDefs": [
  102.           {
  103.             "headerName": "类型",
  104.             "path": "rule_column_d",
  105.             "level": 0,
  106.             "columns": [
  107.               {
  108.                 "type": "SELECT",
  109.                 "schema": "mode_type",
  110.                 "path": "rule_column_d",
  111.                 "dataType": "string",
  112.                 "editable": false,
  113.                 "disabled": true,
  114.                 "headerName": "类型",
  115.                 "label": "类型",
  116.                 "placeholder": "类型",
  117.                 "lang": {
  118.                   "headerName": {
  119.                     "zh_CN": "类型",
  120.                     "zh_TW": "類型",
  121.                     "en_US": "mode_type",
  122.                     "label": "类型"
  123.                   },
  124.                   "placeholder": {
  125.                     "label": "类型",
  126.                     "zh_CN": "类型",
  127.                     "zh_TW": "類型",
  128.                     "en_US": "mode_type"
  129.                   },
  130.                   "label": {
  131.                     "zh_CN": "类型",
  132.                     "zh_TW": "類型",
  133.                     "en_US": "mode_type",
  134.                     "label": "类型"
  135.                   }
  136.                 },
  137.                 "isFocusDisplay": false,
  138.                 "id": "2ce1d995-a00e-b62f-33c7-7dd2a44b087f",
  139.                 "sortable": true,
  140.                 "filterable": true,
  141.                 "rowGroupable": false,
  142.                 "width": 83,
  143.                 "level": 1,
  144.                 "options": [
  145.                   {
  146.                     "value": "1",
  147.                     "title": "回货",
  148.                     "lang": {
  149.                       "title": {
  150.                         "zh_CN": "回货",
  151.                         "zh_TW": "回貨",
  152.                         "en_US": "回货"
  153.                       }
  154.                     }
  155.                   },
  156.                   {
  157.                     "value": "2",
  158.                     "title": "WIP",
  159.                     "lang": {
  160.                       "title": {
  161.                         "zh_CN": "WIP",
  162.                         "zh_TW": "WIP",
  163.                         "en_US": "WIP"
  164.                       }
  165.                     }
  166.                   }
  167.                 ],
  168.                 "dictionaryKey": "mode_type",
  169.                 "enumKey": "icd-mode_type"
  170.               }
  171.             ],
  172.             "width": 160,
  173.             "lang": {
  174.               "headerName": {
  175.                 "zh_CN": "类型",
  176.                 "zh_TW": "類型",
  177.                 "en_US": "mode_type",
  178.                 "label": "类型"
  179.               }
  180.             },
  181.             "id": "67f0fd9a-9412-8132-a8b9-324affce465f"
  182.           },
  183.           {
  184.             "headerName": "字段编号",
  185.             "path": "rule_column_d",
  186.             "level": 0,
  187.             "columns": [
  188.               {
  189.                 "type": "INPUT",
  190.                 "schema": "column_no",
  191.                 "path": "rule_column_d",
  192.                 "dataType": "string",
  193.                 "editable": false,
  194.                 "disabled": true,
  195.                 "headerName": "字段编号",
  196.                 "label": "字段编号",
  197.                 "placeholder": "字段编号",
  198.                 "lang": {
  199.                   "headerName": {
  200.                     "zh_CN": "字段编号",
  201.                     "zh_TW": "欄位編號",
  202.                     "en_US": "column_no",
  203.                     "label": "字段编号"
  204.                   },
  205.                   "placeholder": {
  206.                     "label": "字段编号",
  207.                     "zh_CN": "字段编号",
  208.                     "zh_TW": "欄位編號",
  209.                     "en_US": "column_no"
  210.                   },
  211.                   "label": {
  212.                     "zh_CN": "字段编号",
  213.                     "zh_TW": "欄位編號",
  214.                     "en_US": "column_no",
  215.                     "label": "字段编号"
  216.                   }
  217.                 },
  218.                 "isFocusDisplay": false,
  219.                 "id": "d92ca056-aff7-3184-bd77-06a77d1c2169",
  220.                 "sortable": true,
  221.                 "filterable": true
  222.               }
  223.             ],
  224.             "width": 160,
  225.             "lang": {
  226.               "headerName": {
  227.                 "zh_CN": "字段编号",
  228.                 "zh_TW": "欄位編號",
  229.                 "en_US": "column_no",
  230.                 "label": "字段编号"
  231.               }
  232.             },
  233.             "id": "de19864e-a3f0-d812-d392-d3098995dbca"
  234.           },
  235.           {
  236.             "headerName": "字段名称",
  237.             "path": "rule_column_d",
  238.             "level": 0,
  239.             "columns": [
  240.               {
  241.                 "type": "INPUT",
  242.                 "schema": "column_name",
  243.                 "path": "rule_column_d",
  244.                 "dataType": "string",
  245.                 "editable": false,
  246.                 "disabled": true,
  247.                 "headerName": "字段名称",
  248.                 "label": "字段名称",
  249.                 "placeholder": "字段名称",
  250.                 "lang": {
  251.                   "headerName": {
  252.                     "zh_CN": "字段名称",
  253.                     "zh_TW": "欄位名稱",
  254.                     "en_US": "column_name",
  255.                     "label": "字段名称"
  256.                   },
  257.                   "placeholder": {
  258.                     "label": "字段名称",
  259.                     "zh_CN": "字段名称",
  260.                     "zh_TW": "欄位名稱",
  261.                     "en_US": "column_name"
  262.                   },
  263.                   "label": {
  264.                     "zh_CN": "字段名称",
  265.                     "zh_TW": "欄位名稱",
  266.                     "en_US": "column_name",
  267.                     "label": "字段名称"
  268.                   }
  269.                 },
  270.                 "isFocusDisplay": false,
  271.                 "id": "b6b374db-92f5-882c-0707-12750e98b448",
  272.                 "sortable": true,
  273.                 "filterable": true
  274.               }
  275.             ],
  276.             "width": 160,
  277.             "lang": {
  278.               "headerName": {
  279.                 "zh_CN": "字段名称",
  280.                 "zh_TW": "欄位名稱",
  281.                 "en_US": "column_name",
  282.                 "label": "字段名称"
  283.               }
  284.             },
  285.             "id": "8b973d88-6bed-9715-d36d-8c65b0e23fd4"
  286.           }
  287.         ],
  288.         "allFields": [],
  289.         "setting": {
  290.           "orderFields": [],
  291.           "hideDefaultToolbar": [],
  292.           "options": []
  293.         },
  294.         "hideDefaultToolbar": [],
  295.         "saveColumnsWidth": true,
  296.         "suppressAutoAddRow": false,
  297.         "disabledUserDefined": true,
  298.         "tableTitle": "",
  299.         "lang": {
  300.           "tableTitle": {
  301.             "zh_CN": "",
  302.             "zh_TW": "",
  303.             "en_US": ""
  304.           }
  305.         },
  306.         "checkboxOperation": false,
  307.         "openRowHeight": true
  308.       }
  309.     ],
  310.     "searchDebounceTime": 200
  311.   },
  312.   "description": "查询规则列名信息",
  313.   "lang": {
  314.     "description": {
  315.       "zh_CN": "查询规则列名信息",
  316.       "zh_TW": "查詢規則列名資訊",
  317.       "en_US": "查询规则列名信息"
  318.     }
  319.   },
  320.   "fields": [
  321.     {
  322.       "schema": "column_no",
  323.       "show": true
  324.     },
  325.     {
  326.       "schema": "column_name",
  327.       "show": true
  328.     },
  329.     {
  330.       "schema": "uiModeType",
  331.       "show": true
  332.     }
  333.   ],
  334.   "navigationConfig": {
  335.     "enable": false,
  336.     "urlParams": {}
  337.   },
  338.   "applyAlthoughFinished": false
  339. }
复制代码

运行效果:
image.png
查询ESP请求记录,并没有配置参数:
image.png







最佳答案

查看完整内容

解法方法: 1、条件中的value值需要填写全路径名称,如你的字段在主表下,就是data_replace_rule_detail.xxx字段(可以使用 path + schema) 2、需要打开开窗,在开窗的数据源代码中添加"parameterType":"ACTIVE_PARENT_ROW",(单身获取单头、单头获取单身都是这个类型)需要注意这行代码需要插在开窗数据源"openWindowDefine"结构下,如下图 ...

评论2

翁俊Lv.7 发表于 前天 13:29 | 查看全部
收到问题,内部排查确认中~
翁俊Lv.7 发表于 前天 14:41 | 查看全部
解法方法:
1、条件中的value值需要填写全路径名称,如你的字段在主表下,就是data_replace_rule_detail.xxx字段(可以使用 path + schema)
2、需要打开开窗,在开窗的数据源代码中添加"parameterType":"ACTIVE_PARENT_ROW",(单身获取单头、单头获取单身都是这个类型)需要注意这行代码需要插在开窗数据源"openWindowDefine"结构下,如下图
image.png
大家来答
    精选文章
    Athena平台-任务到期催办功能(逾期提醒)
      需求背景:           对于任务卡发卡后任务在
    前端定制基于postmessage通讯机制使用说明
     业务场景:       在前端定制开发场景中需要实现不同任务
    DAP后端应用写法-使用DWDataSet进行数据库的新增/修改
    场景使用高代码后端要去数据库变更数据, 除了直接下SQL的方式外, 更可用java物件的方
    DAP后端应用写法-使用DWQueryInfo进行数据库的查询
    场景使用高代码后端要去数据库查资料, 除了直接下SQL的方式外, 更可用java物件的方式,
    排錯技巧 - 雅典娜签核,间歇性会报错
     问题描述顾问反馈:雅典娜签核套件点击OA送签或查看签核流程时,间歇性会报错。
    • 关注公众号
    Copyright © 2026 鼎捷数智股份有限公司 版权所有 All Rights Reserved. Powered by Discuz! X5.0
    关灯 在本版发帖
    即将开放
    返回顶部
    快速回复 返回顶部 返回列表