简体   繁体   English

如何使用 Guidewire 中的反射控制 PCF 的可见性

[英]How to control visibility of a PCF using Reflection in Guidewire

I am trying to use <Reflect> on my PCF RangeCell element ( ClaimCenter version -10) to control the visibility of this field.我正在尝试在我的 PCF RangeCell 元素(ClaimCenter 版本 -10)上使用<Reflect>来控制该字段的可见性。 Is that possible at all?这有可能吗?

What I have now is below: it doesn't work...我现在所拥有的如下:它不起作用......

   <RangeCell
      editable="UI.Status.editable(document)"
      id="Status"
      label="&quot;Status&quot;"
      required="UI.Status.required(document)"
      value="document.Status_ext"
      valueRange="UI.Status.filter(Status_ext.getTypeKeys(false), document) as java.util.List&lt;Status_ext&gt;"
      valueType="typekey.Status_ext"
      valueVisible="UI.Status.visible(document)">
      <Reflect
        triggerIds="SomeType"
        valueRange="UI.Status.filter(Status_ext.getTypeKeys(false), document) as java.util.List&lt;Status_ext&gt;">
      </Reflect>
    </RangeCell>

Also tried adding <ReflectCondition> which didn't work too.还尝试添加<ReflectCondition>也不起作用。

You can use visible property in pcf with the approprite conditions.您可以在适当的条件下使用 pcf 中的可见属性。 Another way to write a boolean function in the enhancement class and call this function to the 'available' property.另一种在增强 class 中编写 boolean function 并将此 ZC1C425268E68385D1AB50741 属性调用的方法。 Not sure about reflection.不确定反射。

Hope, it helps.希望能帮助到你。

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

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