| || |
The weirdest bug ever
I am having a problem in the script and I have any idea what is the resolution.
In the script, it should be defined the Start Date and the End Date.
Here is the script
function ID010 (StartDate, EndDate, CodeID)
//Set Start Date and End Date
Aliases.ie7.Page.Main.RelatorioEspelhoPontoPortari a.txtDataInicio.Text = DataInicio;
Aliases.ie7.Page.Main.RelatorioEspelhoPontoPortari a.txtDataFim.Text = DataFim;
By the way, the field Start Date is with a very weird behaviour, it is not getting the correct value defined on the parameter.
Start Date Parameter = 01112010
End Date Parameter = 30112010
Start Date Returned (after the script execution) = random (for example, 824328 or 300040) - it should be 01/11/2010
End Date Returned (after the script execution) = 30/11/2010
I already check the mapping, I already used a specific method (the following method), I already used .Keys(value) function, I already used focus, click and any other functions that can refer or clean the field content. I already even tried to make a trash code: Click in Save, show error (invalid date) and set the second time the field value, but the script insist in keep the same value.
The message: "Log.Message(StarDate);" also returns an invalid value.
The most bizarre is that I already tried to set as a parameter the date 31102010 (10/31/2010) and it returns correctly. I tried use date 02112010 and 03112010 and returns the same issue. Looks like that this field returns a scripted value or something like this.
if (aqString.Compare(value, "__/__/____", false) == 0)
valor = aqString.Replace(value, "/", "");
None of them works. It never happened with me. And with you? Any suggestion?
Re: The weirdest bug ever
I don't believe, I used the parameter as string, like:
ID010 ("01112010", "31112010", 123123)
And it was fixed.