windchill开发注意事项

60 阅读1分钟

1.panelbuilder中如果要展示附件类型(AttachmentInfo),一定要在bean中进行初始化

private AttachmentInfo additionalAttachment = new AttachmentInfo();

2.用这种方法DeviceGroupSuggest,搜索数据,输入框中的值不能被panelbuilder直接获取,需要这种方法获取。

String oid = clientData.getRequest().getParameter("oid");
HashMap<String, ArrayList<String>> text = clientData.getText();
String deviceGroup = String.valueOf(text.get("deviceGroup"));
cpPidXmlObject1.setDeviceGroup(deviceGroup);