Choose your database:
AnySQL
MySQL
MS SQL Server
PostgreSQL
SQLite
Firebird
Oracle
SQL Anywhere
DB2
MaxDB

Subscribe to our news:
Partners

Firebird PHP Generator online Help

Prev Return to chapter overview Next

OnBeforePageLoad

This event occurs before page loading. It allows you to declare functions and global variables. Use the event to include one or several files of a third-party library into the generated pages.

 

Example:

To get the details of the first master record expanded on opening of a certain page of the generated application, define the expandFirstDetail function within the OnBeforePageLoad event handler as follows:

 

function expandFirstDetail() {

  if ($('table.pgui-grid').data('grid-class')){

    var grid = $('table.pgui-grid').data('grid-class');

    var $row =  $('table.pgui-grid tr.pg-row').first(); 

    grid.expandDetails($row);

    return true;

  }

  else {

    setTimeout(expandFirstDetail, 100);

  }

}

 

This function then should be called within the OnAfterPageLoad event handler.



Prev Return to chapter overview Next