0

我有一个包含对象的列表,我希望选择带有完整的对象。属性选择不起作用

我怎样才能做到这一点?

...
    records:bind="$myWindow.ObjectList"
    selection={{
                        type: KeySelection,
                        keyFields: ["Name","MyId","otherprops"], <--here i would need all my object properties. but i cannot list a hundret and they may change
                        bind: "$linkWindow.selectedObject"
                    }}
...

谢谢

4

1 回答 1

0

选择应基于id领域。当您需要访问记录时,您应该在数组中找到它。或者,您可以创建一个computable,如示例中所示:

https://docs.cxjs.io/concepts/controllers#computed-values

于 2018-04-26T10:56:33.477 回答