Package org.compiere.grid.ed

Examples of org.compiere.grid.ed.VLookup


   @throws Exception if Lookups cannot be initialized
   */
  public void dynInit() throws Exception
  {
    MLookup orgL = MLookupFactory.get (Env.getCtx(), m_WindowNo, 0, 2163, DisplayType.TableDir);
    fOrg = new VLookup ("AD_Org_ID", false, false, true, orgL);
    //  lOrg.setText(Msg.translate(Env.getCtx(), "AD_Org_ID"));
    fOrg.addVetoableChangeListener(this);
   
    MLookup docActionL = MLookupFactory.get(Env.getCtx(), m_WindowNo, 3494 /* C_Invoice.DocStatus */,
        DisplayType.List, Env.getLanguage(Env.getCtx()), "DocAction", 135 /* _Document Action */,
        false, "AD_Ref_List.Value IN ('CO','PR')");
    docAction = new VLookup("DocAction", true, false, true,docActionL);
    //  lDcoACtion.setText((Msg.translate(Env.getCtx(), "DocAction")););
    docAction.addVetoableChangeListener(this);
   
    //
    MLookup bpL = MLookupFactory.get (Env.getCtx(), m_WindowNo, 0, 2762, DisplayType.Search);
    fBPartner = new VLookup ("C_BPartner_ID", false, false, true, bpL);
  //  lBPartner.setText(Msg.translate(Env.getCtx(), "C_BPartner_ID"));
    fBPartner.addVetoableChangeListener(this);
   
    //Document Type Sales Order/Vendor RMA
        lDocType.setText(Msg.translate(Env.getCtx(), "C_DocType_ID"));
View Full Code Here


    Language language = Language.getLoginLanguage(); // Base Language
    MLookup m_fieldProduct = MLookupFactory.get(ctx, m_WindowNo,
        MColumn.getColumn_ID(MProduct.Table_Name, "M_Product_ID"),
        DisplayType.Search, language, MProduct.COLUMNNAME_M_Product_ID, 0, false,
        " M_Product.IsSummary = 'N'");
    fieldProduct = new VLookup ("M_Product_ID", false, false, true,  m_fieldProduct) {
      private static final long serialVersionUID = 1L;
      public void setValue(Object value) {
        super.setValue(value);
        action_loadBOM();
      }
View Full Code Here

  protected void initBPartner (boolean forInvoice) throws Exception
  {
    //  load BPartner
    int AD_Column_ID = 3499;        //  C_Invoice.C_BPartner_ID
    MLookup lookup = MLookupFactory.get (Env.getCtx(), p_WindowNo, 0, AD_Column_ID, DisplayType.Search);
    bPartnerField = new VLookup ("C_BPartner_ID", true, false, true, lookup);
    //
    int C_BPartner_ID = Env.getContextAsInt(Env.getCtx(), p_WindowNo, "C_BPartner_ID");
    bPartnerField.setValue(new Integer(C_BPartner_ID));

    //  initial loading
View Full Code Here

   
    //  Editor
    VEditor editor = null;
    if (mField.isLookup())
    {
      VLookup vl = new VLookup(mField.getColumnName(), false, false, true,
        mField.getLookup());
      //setting mField to avoid NPE
      vl.setField(mField);

      vl.setName(mField.getColumnName());
      editor = vl;
    }
    else
    {
      editor = VEditorFactory.getEditor(mField, false);
View Full Code Here

TOP

Related Classes of org.compiere.grid.ed.VLookup

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.