code: public boolean doCommand(String strCommand, ScreenField sourceSField, int iCommandOptions)
      {
          if ((strCommand.equalsIgnoreCase(MenuConstants.FORM))
              || (strCommand.equalsIgnoreCase(MenuConstants.FORMLINK)))
          {
              String strHandle = null;
              if (strCommand.equalsIgnoreCase(MenuConstants.FORMLINK))
              {
                  try   {
                      strHandle = this.getMainRecord().getHandle(DBConstants.OBJECT_ID_HANDLE).toString();
                  } catch (DBException ex)    {
                      strHandle = null; // Ignore error - just go to form
                  }
              }
              strCommand = Utility.addURLParam(null, DBParams.SCREEN, Constants.ROOT_PACKAGE + AccessScreen.class.getName());    // Screen class
              strCommand = Utility.addURLParam(strCommand, DBParams.RECORD, this.getProperty(DBParams.RECORD));
              strCommand = Utility.addURLParam(strCommand, "package", this.getProperty("package"));
              if (strHandle != null)
                  strCommand = Utility.addURLParam(strCommand, DBConstants.STRING_OBJECT_ID_HANDLE, strHandle);
          }
          else if ("Delete all".equalsIgnoreCase(strCommand))
          {
              Record record = this.getMainRecord();
              record.close();
              try {
                  while (record.hasNext())
                  {
                      Record rec = record.next();
                      rec.edit();
                      rec.remove();
                  }
              } catch (DBException ex)    {
                  ex.printStackTrace();
              }
          }
          return super.doCommand(strCommand, sourceSField, iCommandOptions);  // This will send the command to my parent
      }
docs: Process the command.
  <br />Step 1 - Process the command if possible and return true if processed.
  <br />Step 2 - If I can't process, pass to all children (with me as the source).
  <br />Step 3 - If children didn't process, pass to parent (with me as the source).
  <br />Note: Never pass to a parent or child that matches the source (to avoid an endless loop).
  @param strCommand The command to process.
  @param sourceSField The source screen field (to avoid echos).
  @param iCommandOptions If this command creates a new screen, create in a new window?
  @return true if success.