comparison app/view/form/Messprogramm.js @ 779:3309db91b8c1

PopulateINtervalls on init
author Dustin Demuth <dustin@intevation.de>
date Tue, 12 May 2015 17:26:20 +0200
parents 5a153d36ed4e
children f0b26df02157 d2ee6858f452
comparison
equal deleted inserted replaced
778:db85bafd383f 779:3309db91b8c1
96 fieldLabel: i18n.getMsg('name'), 96 fieldLabel: i18n.getMsg('name'),
97 labelWidth: 135, 97 labelWidth: 135,
98 allowBlank: false, 98 allowBlank: false,
99 editable: true 99 editable: true
100 }, { 100 }, {
101 xtype: 'textarea', //todo: we need a widget which is capable of handling errormsg. 101 xtype: 'textarea', //TODO: we need a widget which is capable of handling errormsg.
102 name: 'probeKommentar', 102 name: 'probeKommentar',
103 labelAlign: 'top', 103 labelAlign: 'top',
104 fieldLabel: i18n.getMsg('probeKommentar'), 104 fieldLabel: i18n.getMsg('probeKommentar'),
105 labelwidth: 135, 105 labelwidth: 135,
106 anchor: '100%' 106 anchor: '100%'
381 console.log('Populate End'); 381 console.log('Populate End');
382 }, 382 },
383 383
384 setRecord: function(record) { 384 setRecord: function(record) {
385 this.clearMessages(); 385 this.clearMessages();
386
386 this.getForm().loadRecord(record); 387 this.getForm().loadRecord(record);
387 //Set the intervall numberfields and the slider. 388 //Set the intervall numberfields and the slider.
388 this.down('probenintervallslider').setValue([ 389 this.down('probenintervallslider').setValue([
389 record.get('teilintervallVon'), 390 record.get('teilintervallVon'),
390 record.get('teilintervallBis') 391 record.get('teilintervallBis')
391 ]); 392 ]);
392 393
393 //TODO Set Sliders MinMaxValue 394 //TODO Set Sliders MinMaxValue
395 this.populateIntervall(record);
394 396
395 this.down('probenintervallslider').on( 397 this.down('probenintervallslider').on(
396 'change', 398 'change',
397 Lada.app.getController('Lada.controller.form.Messprogramm') 399 Lada.app.getController('Lada.controller.form.Messprogramm')
398 .synchronizeFields 400 .synchronizeFields

http://lada.wald.intevation.org