代码之家  ›  专栏  ›  技术社区  ›  MuchaZ

将输入值注入Orbeon服务请求

  •  0
  • MuchaZ  · 技术社区  · 8 年前

    我创建了一个POST请求,该请求在一些定义的操作之后执行。

    <json type="object">
        <variables type="object">
            <customerId type="object">
                <value ref="control-1">CUSTOMERID</value>
                <type>String</type>
            </customerId>
        </variables>
    </json>
    

    我想做的是从中获得价值 control-1 并更换 customerId->value 价值它不起作用。然而,我注意到设置 name= 而不是 ref= 使值为空。

    1 回复  |  直到 8 年前
        1
  •  0
  •   MuchaZ    8 年前

    解决方案是在action的编辑器中使用XPath设置服务请求值:

    /json/variables/customerId/value