Search in sources :

Example 16 with MBrowse

use of org.adempiere.model.MBrowse in project adempiere by adempiere.

the class BrowserSearch method loadData.

/**
	 *	Read Fields to display
	 *  @return true if loaded OK
	 */
public boolean loadData() {
    log.config("");
    //	Create Fields
    MBrowse browse = MBrowse.get(Env.getCtx(), m_AD_Browse_ID);
    //	Valid null
    if (browse == null)
        return false;
    //	
    List<MBrowseField> fields = browse.getCriteriaFields();
    if (fields == null || fields.size() == 0)
        return false;
    //	Add fields
    for (MBrowseField field : fields) {
        createField(field, m_WindowNo);
    }
    //	
    return true;
}
Also used : MBrowseField(org.adempiere.model.MBrowseField) MBrowse(org.adempiere.model.MBrowse)

Aggregations

MBrowse (org.adempiere.model.MBrowse)16 MBrowseField (org.adempiere.model.MBrowseField)6 FormFrame (org.compiere.apps.form.FormFrame)4 ProcessInfo (org.compiere.process.ProcessInfo)4 AdempiereException (org.adempiere.exceptions.AdempiereException)3 MViewColumn (org.adempiere.model.MViewColumn)3 I_AD_View_Column (org.adempiere.model.I_AD_View_Column)2 CommandReceiver (org.adempiere.pos.command.CommandReceiver)2 CustomForm (org.adempiere.webui.panel.CustomForm)2 ICreateFrom (org.compiere.grid.ICreateFrom)2 GridTab (org.compiere.model.GridTab)2 MBPartner (org.compiere.model.MBPartner)2 MColumn (org.compiere.model.MColumn)2 MProcess (org.compiere.model.MProcess)2 MRole (org.compiere.model.MRole)2 Query (org.compiere.model.Query)2 VBrowser (org.eevolution.form.VBrowser)2 WBrowser (org.eevolution.form.WBrowser)2 Dimension (java.awt.Dimension)1 Point (java.awt.Point)1