Maximo Anywhere 7.5.2,在WO列表页面中显示同一列中的值和描述

时间:2016-02-15 07:18:55

标签: maximo-anywhere

如何在WO列表页面的同一列中显示值和描述,

示例:ZIST- OPC和LPC的设备安装

1 个答案:

答案 0 :(得分:0)

您必须向工作订单资源添加新的本地属性,我建议您在该对象的onInitialize()方法中填充它。然后将该本地属性添加到工作订单列表中,就像任何其他属性一样。使用我们现有代码中的assetnum和assetdescription查看我们如何做到这一点。

onInitialize : function(workOrder) {
            workOrder.set("locationdesc", workOrder.get('maxlocationdesc'));



            if(workOrder.get('assetdesc')==null){
                workOrder.set("assetnumanddescription",'');

            }

            workOrder.set("assetdesc", workOrder.get('maxassetdesc'));

            if(workOrder.get('locationdesc')==null){
                workOrder.set("locationanddescription",'');

            }

            fieldUtil.initCompositeField("wonum", "description", "wonumanddescription", workOrder);
            fieldUtil.initCompositeField("asset", "assetdesc", "assetnumanddescription", workOrder);
            fieldUtil.initCompositeField("location", "locationdesc", "locationanddescription", workOrder);