0

ブール プロパティ IsGroup を持つ MachineProcess エンティティがあります。以下のような私のコードは機能しません。

 myapp.AddEditMachineProcess.Details_postRender = function (element, contentItem) {
// Write code here.  
contentItem.details.addChangeListener("IsGroup", function (e) {
    var isGroup = contentItem.value.MachineProcess.isGroup;
    var partGroup  = contentItem.findItem("PartGroups");
    if(isGroup){partGroup.isVisible}});};

正しいコードのために助けてください、ありがとう!

4

1 に答える 1

0

ブール値が true または false であることに基づいて、似たようなものがあります。このブール値がデータベースのテーブル内に保存されている場合、次のように機能します。

if (screen.MachineProcess.IsGroup == true) {
    screen.findContentItem("PartGroups").isVisible = true;
}
else
{
    screen.findContentItem("PartGroups").isVisible = false;
}
于 2015-01-02T11:57:13.333 に答える