private fun statInit() {= lDocumentNo.setLabelFor(fDocumentNo) fDocumentNo.setBackground(AdempierePLAF.getInfoBackground()) fDocumentNo.addActionListener(this) lDescription.setLabelFor(fDescription) fDescription.setBackground(AdempierePLAF.getInfoBackground()) fDescription.addActionListener(this) lPOReference.setLabelFor(fPOReference) fPOReference.setBackground(AdempierePLAF.getInfoBackground()) fPOReference.addActionListener(this) fIsSOTrx.setSelected("N" != Env.getContext(Env.getCtx(), p_WindowNo, "IsSOTrx")) fIsSOTrx.addActionListener(this) fBPartner_ID = VLookup( "C_BPartner_ID", false, false, true, MLookupFactory.get( Env.getCtx(), p_WindowNo, 0, MColumn.getColumn_ID(MInOut.Table_Name, MInOut.COLUMNNAME_C_BPartner_ID), DisplayType.Search ) ) lBPartner_ID.setLabelFor(fBPartner_ID) fBPartner_ID.setBackground(AdempierePLAF.getInfoBackground()) fBPartner_ID.addActionListener(this) fShipper_ID = VLookup( "M_Shipper_ID", false, false, true, MLookupFactory.get( Env.getCtx(), p_WindowNo, 0, MColumn.getColumn_ID(MInOut.Table_Name, MInOut.COLUMNNAME_M_Shipper_ID), DisplayType.TableDir ) ) lShipper_ID.setLabelFor(fShipper_ID) fShipper_ID.setBackground(AdempierePLAF.getInfoBackground()) fShipper_ID.addActionListener(this) lDateFrom.setLabelFor(fDateFrom) fDateFrom.setBackground(AdempierePLAF.getInfoBackground()) fDateFrom.setToolTipText(Msg.translate(Env.getCtx(), "DateFrom")) fDateFrom.addActionListener(this) lDateTo.setLabelFor(fDateTo) fDateTo.setBackground(AdempierePLAF.getInfoBackground()) fDateTo.setToolTipText(Msg.translate(Env.getCtx(), "DateTo")) fDateTo.addActionListener(this) val datePanel = CPanel() datePanel.setLayout(ALayout(0, 0, true)) datePanel.add(fDateFrom, ALayoutConstraint(0, 0)) datePanel.add(lDateTo, null) datePanel.add(fDateTo, null) p_criteriaGrid.add(lDocumentNo, ALayoutConstraint(0, 0)) p_criteriaGrid.add(fDocumentNo, null) p_criteriaGrid.add(lBPartner_ID, null) p_criteriaGrid.add(fBPartner_ID, null) p_criteriaGrid.add(fIsSOTrx, ALayoutConstraint(0, 5)) p_criteriaGrid.add(lDescription, ALayoutConstraint(1, 0)) p_criteriaGrid.add(fDescription, null) p_criteriaGrid.add(lDateFrom, null) p_criteriaGrid.add(datePanel, null) p_criteriaGrid.add(lPOReference, ALayoutConstraint(2, 0)) p_criteriaGrid.add(fPOReference, null) p_criteriaGrid.add(lShipper_ID, null) p_criteriaGrid.add(fShipper_ID, null) }
Static Setup - add fields to parameterPanel