@Override protected void onGrdAMPSelectionChanged() throws ims.framework.exceptions.PresentationLogicException { form.grdVTM().getRows().clear(); form.grdVMP().getRows().clear(); try { IDMDValue amp = form.grdAMP().getValue(); VMPRefVo vmpRef = ((AMPVo)amp).getVMP(); if(vmpRef != null) { VMPVo vmp = domain.getVMP(((AMPVo)amp).getVMP()); if(vmp != null) { addVMPItem(vmp); if (vmp.getVTM() != null) //VTMID is optional SN. addVTMItem(domain.getVTM(vmp.getVTM())); } } } catch (DomainInterfaceException e) { engine.showMessage(e.getMessage(), "Error", MessageButtons.OK, MessageIcon.ERROR); } form.fireCustomControlValueChanged(); }
public AMPVo getAMP() { if(form.grdAMP().getValue() != null) return (AMPVo)form.grdAMP().getValue(); return null; }
public AMPVo getAMP(String ampProductId) throws DomainInterfaceException { if(ampProductId == null) throw new DomainInterfaceException("Invalid AMP reference"); AMPVoCollection ampCol = AMPVoAssembler.createAMPVoCollectionFromAMP(getDomainFactory().find("from AMP amp WHERE amp.productIdentifier = '" + ampProductId + "'")); if (ampCol != null && ampCol.size() > 0) return ampCol.get(0); else return null; }
public AMPVo getAMP() { return form.ccDMD().getAMP(); }
public AMPLoader() { super(); amp = new AMPVo(); loadErrors=false; }