torsten@0: Ext.application({
torsten@0: name: 'Lada',
torsten@10: // Setting this variable to true should trigger loading the Viewport.js
torsten@10: // file which sets ob the viewport. But this does not happen.
torsten@10: autoCreateViewprt: false,
torsten@0: launch: function() {
torsten@0: // Start the application.
torsten@2: console.log('Launching the application');
torsten@11:
torsten@11: // This code works here, but this should usually be done in the
torsten@11: // Viewport.js class.
torsten@11: Ext.create('Ext.panel.Panel', {
torsten@11: renderTo: Ext.getBody(),
torsten@17: title: '
Probenauswahlmaske',
torsten@17: items:[
torsten@2: {
torsten@17: xtype: 'panel',
torsten@17: id: 'searchSelection',
torsten@17: border: false,
torsten@17: padding: '10 10 10 10',
torsten@17: items: [
torsten@17: // 1. SQL-Selection
torsten@17: // 1.1 Just a small texttual field
torsten@17: {
torsten@17: xtype: 'displayfield',
torsten@17: padding : '10 0',
torsten@17: fieldLabel: 'SQL-Auswahl'
torsten@17: },
torsten@17: // 1.2 Selection of prepared sql statements
torsten@17: {
torsten@17: xtype: 'sqllist'
torsten@17: }
torsten@17: ]
torsten@17: },
torsten@17: {
torsten@17: xtype: 'panel',
torsten@17: id: 'searchVariables',
torsten@17: hidden: true,
torsten@17: border: false,
torsten@17: padding: '10 10 10 10',
torsten@17: items: [
torsten@17: // 2. Variable-Definition. Depending on the SQL-Selection we
torsten@17: // need to show a small form to be able to diefine some values
torsten@17: // within the preselected Search-statement.
torsten@17: // 2.1 Just a small texttual field
torsten@17: {
torsten@17: xtype: 'displayfield',
torsten@17: padding : '10 0',
torsten@17: fieldLabel: 'Variablenbelegung (Zeiten in UTC)',
torsten@17: labelWidth: 500
torsten@17: }
torsten@17:
torsten@17: ]
torsten@17: },
torsten@17: {
torsten@17: xtype: 'probenlist',
torsten@17: id: 'searchResult',
torsten@17: hidden: true,
torsten@17: padding: '10 10 10 10'
torsten@2: }
torsten@2: ]
torsten@2: });
torsten@2: },
torsten@3: // Define the controllers of the application. They will be initialized
torsten@3: // first before the application "launch" function is called.
torsten@3: controllers: [
torsten@6: 'Proben',
torsten@6: 'Sql'
torsten@3: ]
torsten@0: });