-
WebBaseForm type
Hi,
In DataFlex 20, in the WebBaseForm.js file you have this part:
[code]
initMask : function(){
df.WebBaseForm.base.initMask.call(this);
if(this._econtrol){
if(this.peDataType === df.ciTypeText && !this.psMask){
this._eControl.maxLength = (iVal > 0 ? iVal : 0);
}else{
this._eControl.maxLength = 1048576;
}
}
},
[/code]
I'm pretty sure that was intended to be:
[code]
initMask : function(){
df.WebBaseForm.base.initMask.call(this);
if(this.[B]_e[COLOR=#ff0000]C[/COLOR]ontrol[/B]){
if(this.peDataType === df.ciTypeText && !this.psMask){
this._eControl.maxLength = (iVal > 0 ? iVal : 0);
}else{
this._eControl.maxLength = 1048576;
}
}
},
[/code]
Oh .. even more interesting... looks like this part of the code was copied from DF19.1 set_piMaxLength and there it has the parameter iVal...
The parameter iVal doesn't exist in initMask... something fishy with this.
While I'm at it...
In WebForm.js the code uses the this._bAutoTabOnUp variable.
Normally in DAWs code a variable like that gets defined and initialized at the top.
This is not done, so it might end up being undefined at a moment when you don't expect it to be undefined.
--
Wil
-
Re: WebBaseForm type
so...
seems like
[code]
this._eControl.maxLength = (iVal > 0 ? iVal : 0);
[/code]
should be:
[code]
this._eControl.maxLength = (this.piMaxLength > 0 ? this.piMaxLength : 0);
[/code]
--
Wil
-
Re: WebBaseForm type
Ping...
Anyone at DAW can confirm this as a bug and has been logged for fixing?
--
Wil
-
Re: WebBaseForm type
Wil,
Yes, they've been logged and will be part of the updated 2021 that we are actively preparing.
-
Re: WebBaseForm type
Just wanted to make sure that it hadn't been missed.
Thanks Stephen!
--
Wil
-
Re: WebBaseForm type
[QUOTE=Stephen W. Meeley;364435]Wil,
Yes, they've been logged and will be part of the updated 2021 that we are actively preparing.[/QUOTE]
we were just talking about having a few days in Cayman Brac, if that helps with the release date :cool: