code: public void setupSFields()
      {   // Set up the screen fields
          Record record = this.getMainRecord();
          if (record == null)
              return;
          int lastColumn = record.getFieldCount() + DBConstants.MAIN_FIELD - 1;
          for (int queryColumn = DBConstants.MAIN_FIELD; queryColumn <= lastColumn; queryColumn++)
          {
              BaseField field = record.getField(queryColumn);
              if (field.isHidden())
                  continue;   // Don't display the counter field
              if (field.isSelected())
                  field.setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.SET_ANCHOR), this, ScreenConstants.DEFAULT_DISPLAY);
          }
      }
docs: Set up the screen fields (default = set them all up for the current record).
  <p/>This method is usually overidden to place the controls in exact locations.