View source | Discuss this page | Page history | Printable version   
Main Page
Upload file
What links here
Recent changes

PDF Books
Add page
Show collection (0 pages)
Collections help


ERP/3.0/Developers Guide/Reference/Entity Model/OBUISEL Selector Field

This article is protected against manual editing because it is automatically generated from Openbravo meta-data. Learn more about writing and translating such documents.
Back button.png   Back to ERP/3.0/Developers_Guide/Reference/Entity_Model#OBUISEL_Selector_Field


Defines the columns which are shown in the suggestion box and in the popup grid.

To the database table (OBUISEL_Selector_Field) of this entity.



Property Column Constraints Type Description
id* Obuisel_Selector_Field_ID Mandatory
Max Length: 32
java.lang.String Unique identifying key for the selector field record.
obuiselSelector# Obuisel_Selector_ID Mandatory
OBUISEL_Selector The unique identifying key for the selector.
client AD_Client_ID Mandatory
ADClient A Client is a company or a legal entity. You cannot share data between Clients.
organization AD_Org_ID Mandatory
Organization An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.
module AD_Module_ID Mandatory
ADModule Indicates the module the element forms part of.
column AD_Column_ID ADColumn Link to the database column of the table
name# Name Mandatory
Max Length: 60
java.lang.String A more descriptive identifier (that does need to be unique) of a record/document that is used as a default search option along with the search key (that is unique and mostly shorter). It is up to 60 characters in length.
description Description Max Length: 255
java.lang.String A description is limited to 255 characters.
helpComment Help Max Length: 2000
java.lang.String The Help field contains a hint, comment or help about the use of this item.
property Property Max Length: 255
java.lang.String Path/name of the property to show in the selector
obserdsDatasourceField Obserds_Datasource_Field_ID OBSERDS_Datasource_Field The datasource field is part of the datasource definition.
centralMaintenance Iscentrallymaintained Mandatory
java.lang.Boolean The Centrally Maintained checkbox indicates if the Name, Description and Help maintained in 'System Element' table or 'Window' table.
sortable Sort Mandatory
java.lang.Boolean Allow sorting by this field in the popup grid.
filterable Filter Mandatory
java.lang.Boolean Make it possible to filter in the grid using this field.
searchinsuggestionbox Searchinsuggestionbox Mandatory
java.lang.Boolean Defines if the field is used to search when retrieving values in the suggestion box.
showingrid Showingrid Mandatory
java.lang.Boolean Defines if the field is shown in the popup grid.
sortno Sortno Mandatory
active Isactive Mandatory
java.lang.Boolean There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reporting. There are two reasons for de-activating and not deleting records:

(1) The system requires the record for auditing purposes. (2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are existing invoices for it. By de-activating the Business Partner you prevent it from being used in future transactions.

creationDate Created Mandatory
java.util.Date The Created field indicates the date that this record was created.
createdBy Createdby Mandatory
ADUser The Created By field indicates the user who created this record.
updated Updated Mandatory
java.util.Date The Updated field indicates the date that this record was updated.
updatedBy Updatedby Mandatory
ADUser The Updated By field indicates the user who updated this record.
isoutfield Isoutfield java.lang.Boolean
defaultExpression Default_Expression Max Length: 2000
java.lang.String Defines a JavaScript expression that will be evaluated in the server side and used as default value for the property. You can use any type of variable but it must match the property type, examples:

true - the property associated is boolean "Hello" - the propery associated is string 5.3 - the property associated is numeric

You can also access the Openbravo API through the OB object and do some more complex expressions, e.g.


This will retrieve the session variable SESSIONVAR and use it as default value for the selector field

suffix Suffix Max Length: 60
java.lang.String The Suffix indicates the characters to append to the document number.
displayColumnAlias Display_Expression Max Length: 255
java.lang.String Alias of the HQL query column to be shown
clauseLeftPart Clause_Left_Part Max Length: 255
java.lang.String Left part of a clause to be used on the where or order by clauses of the HQL.
reference AD_Reference_ID ADReference The Reference indicates the type of reference field
showInPicklist Showinpicklist Mandatory
java.lang.Boolean Sets additional fields to appear on the selectors pick list.
oBUISELSelectorFieldTrlList OBUISEL_Selector_Field_Trl

Java Entity Class

  * The contents of this file are subject to the Openbravo  Public  License
  * Version  1.1  (the  "License"),  being   the  Mozilla   Public  License
  * Version 1.1  with a permitted attribution clause; you may not  use this
  * file except in compliance with the License. You  may  obtain  a copy of
  * the License at
  * Software distributed under the License  is  distributed  on  an "AS IS"
  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
  * License for the specific  language  governing  rights  and  limitations
  * under the License.
  * The Original Code is Openbravo ERP.
  * The Initial Developer of the Original Code is Openbravo SLU
  * All portions are Copyright (C) 2008-2019 Openbravo SLU
  * All Rights Reserved.
  * Contributor(s):  ______________________________________.
 package org.openbravo.userinterface.selector;
 import java.util.ArrayList;
 import java.util.Date;
 import java.util.List;
 import org.openbravo.base.structure.ActiveEnabled;
 import org.openbravo.base.structure.BaseOBObject;
 import org.openbravo.base.structure.ClientEnabled;
 import org.openbravo.base.structure.OrganizationEnabled;
 import org.openbravo.base.structure.Traceable;
 import org.openbravo.model.common.enterprise.Organization;
 import org.openbravo.service.datasource.DatasourceField;
  * Entity class for entity OBUISEL_Selector_Field (stored in table OBUISEL_Selector_Field).
  * NOTE: This class should not be instantiated directly. To instantiate this
  * class the {@link org.openbravo.base.provider.OBProvider} should be used.
 public class SelectorField extends BaseOBObject implements Traceable, ClientEnabled, OrganizationEnabled, ActiveEnabled {
     private static final long serialVersionUID = 1L;
     public static final String TABLE_NAME = "OBUISEL_Selector_Field";
     public static final String ENTITY_NAME = "OBUISEL_Selector_Field";
     public static final String PROPERTY_ID = "id";
     public static final String PROPERTY_OBUISELSELECTOR = "obuiselSelector";
     public static final String PROPERTY_CLIENT = "client";
     public static final String PROPERTY_ORGANIZATION = "organization";
     public static final String PROPERTY_MODULE = "module";
     public static final String PROPERTY_COLUMN = "column";
     public static final String PROPERTY_NAME = "name";
     public static final String PROPERTY_DESCRIPTION = "description";
     public static final String PROPERTY_HELPCOMMENT = "helpComment";
     public static final String PROPERTY_PROPERTY = "property";
     public static final String PROPERTY_OBSERDSDATASOURCEFIELD = "obserdsDatasourceField";
     public static final String PROPERTY_CENTRALMAINTENANCE = "centralMaintenance";
     public static final String PROPERTY_SORTABLE = "sortable";
     public static final String PROPERTY_FILTERABLE = "filterable";
     public static final String PROPERTY_SEARCHINSUGGESTIONBOX = "searchinsuggestionbox";
     public static final String PROPERTY_SHOWINGRID = "showingrid";
     public static final String PROPERTY_SORTNO = "sortno";
     public static final String PROPERTY_ACTIVE = "active";
     public static final String PROPERTY_CREATIONDATE = "creationDate";
     public static final String PROPERTY_CREATEDBY = "createdBy";
     public static final String PROPERTY_UPDATED = "updated";
     public static final String PROPERTY_UPDATEDBY = "updatedBy";
     public static final String PROPERTY_ISOUTFIELD = "isoutfield";
     public static final String PROPERTY_DEFAULTEXPRESSION = "defaultExpression";
     public static final String PROPERTY_SUFFIX = "suffix";
     public static final String PROPERTY_DISPLAYCOLUMNALIAS = "displayColumnAlias";
     public static final String PROPERTY_CLAUSELEFTPART = "clauseLeftPart";
     public static final String PROPERTY_REFERENCE = "reference";
     public static final String PROPERTY_SHOWINPICKLIST = "showInPicklist";
     public static final String PROPERTY_OBUISELSELECTORFIELDTRLLIST = "oBUISELSelectorFieldTrlList";
     public SelectorField() {
         setDefaultValue(PROPERTY_CENTRALMAINTENANCE, true);
         setDefaultValue(PROPERTY_SORTABLE, true);
         setDefaultValue(PROPERTY_FILTERABLE, true);
         setDefaultValue(PROPERTY_SEARCHINSUGGESTIONBOX, false);
         setDefaultValue(PROPERTY_SHOWINGRID, true);
         setDefaultValue(PROPERTY_SORTNO, (long) 0);
         setDefaultValue(PROPERTY_ACTIVE, true);
         setDefaultValue(PROPERTY_ISOUTFIELD, false);
         setDefaultValue(PROPERTY_SHOWINPICKLIST, false);
         setDefaultValue(PROPERTY_OBUISELSELECTORFIELDTRLLIST, new ArrayList<Object>());
     public String getEntityName() {
         return ENTITY_NAME;
     public String getId() {
         return (String) get(PROPERTY_ID);
     public void setId(String id) {
         set(PROPERTY_ID, id);
     public Selector getObuiselSelector() {
         return (Selector) get(PROPERTY_OBUISELSELECTOR);
     public void setObuiselSelector(Selector obuiselSelector) {
         set(PROPERTY_OBUISELSELECTOR, obuiselSelector);
     public Client getClient() {
         return (Client) get(PROPERTY_CLIENT);
     public void setClient(Client client) {
         set(PROPERTY_CLIENT, client);
     public Organization getOrganization() {
         return (Organization) get(PROPERTY_ORGANIZATION);
     public void setOrganization(Organization organization) {
         set(PROPERTY_ORGANIZATION, organization);
     public Module getModule() {
         return (Module) get(PROPERTY_MODULE);
     public void setModule(Module module) {
         set(PROPERTY_MODULE, module);
     public Column getColumn() {
         return (Column) get(PROPERTY_COLUMN);
     public void setColumn(Column column) {
         set(PROPERTY_COLUMN, column);
     public String getName() {
         return (String) get(PROPERTY_NAME);
     public void setName(String name) {
         set(PROPERTY_NAME, name);
     public String getDescription() {
         return (String) get(PROPERTY_DESCRIPTION);
     public void setDescription(String description) {
         set(PROPERTY_DESCRIPTION, description);
     public String getHelpComment() {
         return (String) get(PROPERTY_HELPCOMMENT);
     public void setHelpComment(String helpComment) {
         set(PROPERTY_HELPCOMMENT, helpComment);
     public String getProperty() {
         return (String) get(PROPERTY_PROPERTY);
     public void setProperty(String property) {
         set(PROPERTY_PROPERTY, property);
     public DatasourceField getObserdsDatasourceField() {
         return (DatasourceField) get(PROPERTY_OBSERDSDATASOURCEFIELD);
     public void setObserdsDatasourceField(DatasourceField obserdsDatasourceField) {
         set(PROPERTY_OBSERDSDATASOURCEFIELD, obserdsDatasourceField);
     public Boolean isCentralMaintenance() {
         return (Boolean) get(PROPERTY_CENTRALMAINTENANCE);
     public void setCentralMaintenance(Boolean centralMaintenance) {
         set(PROPERTY_CENTRALMAINTENANCE, centralMaintenance);
     public Boolean isSortable() {
         return (Boolean) get(PROPERTY_SORTABLE);
     public void setSortable(Boolean sortable) {
         set(PROPERTY_SORTABLE, sortable);
     public Boolean isFilterable() {
         return (Boolean) get(PROPERTY_FILTERABLE);
     public void setFilterable(Boolean filterable) {
         set(PROPERTY_FILTERABLE, filterable);
     public Boolean isSearchinsuggestionbox() {
         return (Boolean) get(PROPERTY_SEARCHINSUGGESTIONBOX);
     public void setSearchinsuggestionbox(Boolean searchinsuggestionbox) {
         set(PROPERTY_SEARCHINSUGGESTIONBOX, searchinsuggestionbox);
     public Boolean isShowingrid() {
         return (Boolean) get(PROPERTY_SHOWINGRID);
     public void setShowingrid(Boolean showingrid) {
         set(PROPERTY_SHOWINGRID, showingrid);
     public Long getSortno() {
         return (Long) get(PROPERTY_SORTNO);
     public void setSortno(Long sortno) {
         set(PROPERTY_SORTNO, sortno);
     public Boolean isActive() {
         return (Boolean) get(PROPERTY_ACTIVE);
     public void setActive(Boolean active) {
         set(PROPERTY_ACTIVE, active);
     public Date getCreationDate() {
         return (Date) get(PROPERTY_CREATIONDATE);
     public void setCreationDate(Date creationDate) {
         set(PROPERTY_CREATIONDATE, creationDate);
     public User getCreatedBy() {
         return (User) get(PROPERTY_CREATEDBY);
     public void setCreatedBy(User createdBy) {
         set(PROPERTY_CREATEDBY, createdBy);
     public Date getUpdated() {
         return (Date) get(PROPERTY_UPDATED);
     public void setUpdated(Date updated) {
         set(PROPERTY_UPDATED, updated);
     public User getUpdatedBy() {
         return (User) get(PROPERTY_UPDATEDBY);
     public void setUpdatedBy(User updatedBy) {
         set(PROPERTY_UPDATEDBY, updatedBy);
     public Boolean isOutfield() {
         return (Boolean) get(PROPERTY_ISOUTFIELD);
     public void setOutfield(Boolean isoutfield) {
         set(PROPERTY_ISOUTFIELD, isoutfield);
     public String getDefaultExpression() {
         return (String) get(PROPERTY_DEFAULTEXPRESSION);
     public void setDefaultExpression(String defaultExpression) {
         set(PROPERTY_DEFAULTEXPRESSION, defaultExpression);
     public String getSuffix() {
         return (String) get(PROPERTY_SUFFIX);
     public void setSuffix(String suffix) {
         set(PROPERTY_SUFFIX, suffix);
     public String getDisplayColumnAlias() {
         return (String) get(PROPERTY_DISPLAYCOLUMNALIAS);
     public void setDisplayColumnAlias(String displayColumnAlias) {
         set(PROPERTY_DISPLAYCOLUMNALIAS, displayColumnAlias);
     public String getClauseLeftPart() {
         return (String) get(PROPERTY_CLAUSELEFTPART);
     public void setClauseLeftPart(String clauseLeftPart) {
         set(PROPERTY_CLAUSELEFTPART, clauseLeftPart);
     public Reference getReference() {
         return (Reference) get(PROPERTY_REFERENCE);
     public void setReference(Reference reference) {
         set(PROPERTY_REFERENCE, reference);
     public Boolean isShowInPicklist() {
         return (Boolean) get(PROPERTY_SHOWINPICKLIST);
     public void setShowInPicklist(Boolean showInPicklist) {
         set(PROPERTY_SHOWINPICKLIST, showInPicklist);
     public List<SelectorFieldTrl> getOBUISELSelectorFieldTrlList() {
       return (List<SelectorFieldTrl>) get(PROPERTY_OBUISELSELECTORFIELDTRLLIST);
     public void setOBUISELSelectorFieldTrlList(List<SelectorFieldTrl> oBUISELSelectorFieldTrlList) {

Retrieved from ""

This page has been accessed 2,326 times. This page was last modified on 24 June 2019, at 15:59. Content is available under Creative Commons Attribution-ShareAlike 2.5 Spain License.