Show TOC Start of Content Area

Syntax documentation onNavigate  Locate the document in its SAP Library structure

The event is fired when the user clicks on one of the navigation buttons that are displayed in the footer section of the tableView. The method getFirstVisibleRowAfter returns the first visible row after the event. Therefore it is not necessary to investigate which navigation button was pressed. This makes the onNavigate event handling routine very small.

 

Example

using the taglib

    // CALLED IF THE NAVIGATION EVENT WAS SEND
    
public void onNavigation(Event event) {
        
if (event instanceof TableNavigationEvent) {
            
// Get the navigation event
            
TableNavigationEvent tne = (TableNavigationEvent) event;

            
// Use getGirstVisibleRowAfter to receive the first visible row
            
this.visibleRow = tne.getFirstVisibleRowAfter();
            
if (myBean != null) {
                
/* just for the first time, when there is no bean.
                   Set the visible row in the model - the tableView 
                   shows the new result after the page is transmitted */
                
myBean.setVisibleRow(new Integer(this.visibleRow).toString());
            }
        } 
else {
            
// wrong event...
        
}
    }

 

End of Content Area