public FieldList buildFieldList ( ) { FieldList record = ( FieldList ) ClassServiceUtility . getClassService ( ) . makeObjectFromClassName ( Constants . ROOT_PACKAGE + "thin.main.db.Menus" ) ; if ( record != null ) record . init ( this ) ; else return null ; record . setOpenMode ( Constants . OPEN_READ_ONLY ) ; // This will improve performance by enabling the cache for readnext. BaseApplet applet = BaseApplet . getSharedInstance ( ) ; m_remoteSession = applet . makeRemoteSession ( null , ".main.remote.MenusSession" ) ; applet . linkRemoteSessionTable ( m_remoteSession , record , true ) ; if ( m_strInitParam != null ) { try { m_remoteSession . doRemoteAction ( m_strInitParam , null ) ; } catch ( Exception ex ) { // Ignore error } } return record ; }
Build the list of fields that make up the screen . This method creates a new Menus record and links it to the remote MenusSession .