I have created a Form in Ax2012 with some StringEdit and a DateEdit and source for these Fields is “MyTable”.
Now in the Modified Field() of each of these Fields in the form Data Source i am sending the selected values by the user to my class using “ValueStr()” & storing the values in variables.
Like: CustAccount custAcc;
custAcc = Customer.valueStr();
class = new MyClass();
Now my problem is that , when i am sending the values as a parameter to my class, then in my local machine the Date value is getting correct value what ever the user select at the form level, but if i am running this code to some other machine, then some time the Date value is getting stored and some time the Date value is not means showing 0 for only “Date”.
And this is happening only for the Date Filter, for others like for Customer as specified it is working fine & sending the correct value.
What should be the Solution for this problem,Even I have also tried other EDT’s for Date like" Date1980" etc, but the problem is same. Working fine on my system but not on others.
Thanks & Regards