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;
}
Aggregations