java.lang.Object
simpleorm.dataset.SFieldMeta
simpleorm.dataset.SFieldReference<T>
com.inductiveautomation.ignition.gateway.localdb.persistence.ReferenceField<T>
All Implemented Interfaces:
Serializable

public class ReferenceField<T extends SRecordInstance> extends SFieldReference<T>
This class allows all the rows of a given table to be listed in a dropdown on a Wicket page. When a dropdown entry is selected by the user, the row id of the selected entry (specified by SRecordMeta<T> referencedRecord) is saved in a specified table (specified by SRecordMeta<?> meta) as a foreign key.
See Also:
  • Constructor Details

  • Method Details

    • isMandatory

      public boolean isMandatory()
      Overrides:
      isMandatory in class SFieldMeta
    • setDescriptive

      public ReferenceField<T> setDescriptive(boolean b)
    • getFormMeta

      public FormMeta getFormMeta()
    • setSuppressedNames

      public void setSuppressedNames(String[] supressedNames)
      Sets an array of record Names which should never be added to any dropdown. Use this to supress system records that should not be visible to the user.
    • getSupressedNames

      public String[] getSupressedNames()
      An array of record Names which should never be added to any dropdown. Use this to supress system records that should not be visible to the user. This method will always return a useable ArrayList that may or may not be empty.