|
@@ -181,6 +181,9 @@ MWF.xApplication.process.Xform.Number = MWF.APPNumber = new Class({
|
|
|
this.validationMode();
|
|
this.validationMode();
|
|
|
}.bind(this));
|
|
}.bind(this));
|
|
|
},
|
|
},
|
|
|
|
|
+ _computeValue: function(value){
|
|
|
|
|
+ return (this.json.defaultValue.code) ? this.form.Macro.exec(this.json.defaultValue.code, this): (value || "0");
|
|
|
|
|
+ },
|
|
|
getValue: function(){
|
|
getValue: function(){
|
|
|
var value = this._getBusinessData();
|
|
var value = this._getBusinessData();
|
|
|
if (!value) value = this._computeValue();
|
|
if (!value) value = this._computeValue();
|