I am building a GI that needs to be able to pull a user defined field date and perform calculations on it such as dateadd or datediff. When I try to do this I get a virtual field error message coming up on my gi. If this date field was stored in an attribute I know how to get the date value from the CS answers table but it seems that user defined Fields do not store the values in the CS answers table - where are these stored in how can I perform calculations against them?
How do i access the value of a date stored in a user-defined field in a generic inquiry calculation
Hello
I want to be able to have a column that says the number of days ago that it was scheduled, as in something like Today() - scheduledate . But this will not work as the scheduled date is not accessible to do calculations on
I'm also having to do a slight add on to adjust the dates for our NZ timezone
https://community.acumatica.com/topic/show?tid=7116&postid=22937
=[SOOrder.AttributePCSCHEDDAT] - today() is the formula i have in my GI at present where the scheddat is an attribute connected to the Sales order UDF
this is the message that pops up
![](https://uploads-us-west-2.insided.com/acumatica-en/attachment/9ea57d03-ff12-4cdf-be03-835763bda7ab.gif)
Hi
Please find the formula below for your reference.
=DateDiff( 'd', Today(), [SOOrder.AttributeNDATE])
![](https://uploads-us-west-2.insided.com/acumatica-en/attachment/519c0c06-1d79-4530-ba20-80989dc58ccd.png)
Hello
![](https://uploads-us-west-2.insided.com/acumatica-en/attachment/99117d3d-6256-40f0-bbfa-522314f5f680.jpg)
I noticed you had an N in your attribute name, so i added it, but also i tried without and i get the same error
Hello
Hi
Hi
But when I check with GI result, actually it is NOT calculating the Date Difference, where as it is calculating in the Acumatica instance.
This might be the limitation of MYOB, but I’m NOT sure.
![](https://uploads-us-west-2.insided.com/acumatica-en/attachment/de2c3749-c7e0-4909-93d8-0a821c7d975d.png)
I have cracked the code! we will use it in a filter and we use the where scheduled date is less than or equal to @today for the today's schedule and the same formula + 1 for tomorrow's schedule etcetera
argh… now i have another issue…. what about friday… when you want to see monday as “tomorrow”
this now links to another thread on here:
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.