Skip to content
Snippets Groups Projects
Commit 1b2e4404 authored by Renaud Le Gac's avatar Renaud Le Gac
Browse files

Scripts tune to run with the application.

parent 3004598c
No related branches found
No related tags found
No related merge requests found
/**
* Default script to configure and launch the web application
*
* $Id$
*
*/
Ext.onReady(function(){
Ext.QuickTips.init();
// Expose the remote service cfgSvc
Ext.Direct.addProvider(App.cfgSvcMethods);
// Instantiate the application
var appMgr = new App.Mgr({});
});
\ No newline at end of file
/**
* form_2.js
*
* Script to test the entryFormPanel
* $Id$
*
*/
Ext.namespace('App.test');
/**
* main function
*/
var main = function(provider, response){
var cfg = response.result;
console.log("Configuration");
console.dir(cfg);
// instanciate the form
var form = new App.form.EntryFormPanel(cfg);
// the viewport to hold the form
// using all space in the browser
var vp = new Ext.Viewport({
region: 'center',
layout: 'fit',
items: [form]
});
vp.render('appmain');
};
Ext.onReady(function(){
Ext.QuickTips.init();
// Expose the remote service cfgSvc
Ext.Direct.addProvider(App.cfgSvcMethods);
// Request form model from the server
cfgSvc.getFormModel('publications', main)
});
\ No newline at end of file
/**
* grid_2.js
*
* To test and debug grid widget
* $Id$
*
*/
Ext.namespace('App.grid');
/**
* main function
*/
var main = function(provider, response){
var cfg = response.result;
// console.log("Grid Model");
// console.dir(cfg);
// instanciate the grid
var grid = new App.grid.Grid(cfg);
grid.store.load({
params: {
start: 0,
limit: 1
}
});
// console.dir(grid);
// the viewport to hold the grid
// using all space in the browser
var vp = new Ext.Viewport({
region: 'center',
layout: 'fit',
items: [grid]
});
vp.render('appmain');
};
Ext.onReady(function(){
Ext.QuickTips.init();
// Expose the remote service cfgSvc
Ext.Direct.addProvider(App.cfgSvcMethods);
// Request form model from the server
cfgSvc.getGridModel('publications', main)
});
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment