Hello again, I'm doing operations with dates and, for example, I've two Dateformula fields. I've created a Dateformula variable and I want that it shows the sum of the other two dataformula fields, but I can't. I put:
prob:=((FORMAT("Field1"))+(FORMAT("Field2")));
Field1 is 3D
Field2 is 4D
But the result is that prob shows 3D4D, it should be the sum of that days, 8D. How can I do that?.
Thanks in advance.
0
Comments
You need to do it insteps.
You can try adding etc. but always you wil find an exception that will not work.
CalcDate is what is know in Mathematics as a non continuous function , and thus does not have an inverse. In mathematics this limits what you can and can't do with it. I have seen such things as:
But at some stage it will fail and you will not find out until someone shows that the report is wrong.
Thank you very much.
prob:=CALCDATE("field1","field2");
And it sums correctly, field1 is a Dateformula field and field2 is a Date field, the prob variable is also a Date field. If field1 i 3D and field2 is 30/01/09 it shows me 2/02/09 that is correct, but if I want to subtraction it, it should show 27/01/09. How I can do it?.
Thanks for help in advance.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Many thanks in advance.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Thanks.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Thanks you very much for help.
Did you read y reply above?
Currently the only way in testing I can break it is when the combined string exceeds the dateformula maximum length of 32, which is apparently a thing.
Pretty sure that no one is going to ask me for a copy of the code, which should stand as a testament to the futility of such a request.
Currently the only way in testing I can break it is when the combined string exceeds the dateformula maximum length of 32, which is apparently a thing.
Pretty sure that no one is going to ask me for a copy of the code, which should stand as a testament to the futility of such a request.
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
Oh, the customer was quite adamant. I told them and the consultant no many times.