docs: public Record getMainRecord()
      {
          if (this.getScreenField() instanceof BasePanel)
              return ((BasePanel)this.getScreenField()).getMainRecord();
          else
              return this.getScreenField().getParentScreen().getMainRecord();
      }