Concept - Pages

Pages in ax-framework are plain HTML Pages, that can be loaded into ax's window handling environment.

In most cases they are simple pages, that hold a single MultiForm declaration. In some more rare cases they are special HTML pages with some more specialized JavaScript handling.

In any case you are free to build your own content, and extend with the libraries you chose to. Please keep in mind that you are free to build your own input types aswell.



Basic buildup of a Page:

	require_once "../../../core/php/headers/page.php";
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
			$(document).ready(function () {
				var myCurrentPL = myAx.myProcessLayerHandler.getProcessLayerById(<?php echo $plUID; ?>);
				myCurrentPL.myMultiForm = new AX_MultiForm({
					ctx: myCurrentPL.ctx.find('#myMultiForm'),
					dp: 'Customer',
					data: <?php echo json_encode($data); ?>
        <title>Customer: </title>
<div id="myMultiForm" class="MultiForm" style="height:100%;width:100%;background-color:#f8ffff;"></div>

Include the page environment:
This will make sure you have access to the database, aswell as the application environment.
Sets: $action, $data, $plUID
Define document as type HTML, just a standard DOCTYPE definition
Run the following JavaScript once the document is ready:
Get a reference to this ProcessLayer, and set standard MultiForm buttons
Instanciate new MultiForm with ctx (HTML refrence),dp (name of DataProcessor in the current module),data and attach to the current ProcessLayer
Preset title; will be set again, once the MultiForm is done loading
HTML Container for the MultiForm, set to width:100%, height:100%

Special techniques:

  • links to special handling