you can add value with this function :
(dayRange(-60,60))
-60 = today -60
60 = today + 60 day
Selasa, 31 Mei 2016
AX :Using Methods in Table Filters & Query Ranges in Dynamics AX 2012 (http://nuxulu.com)
In Dynamics AX, there is a class called SysQueryRangeUtil
that can be utilized in both query ranges and table filters. Using
methods from this class allow you to be very precise about what dates
you want to use in reports or for filtering your data.
Let’s say you have a report that you always
want to run to see orders with shipping dates of the next day. It is
possible to do so by using one of the methods from the SysQueryRangeUtil. The
use of the letter ‘t’ will work for today’s date, but when you try to
add days to it, it doesn’t work in reports. Instead, I will use the currentdate() method and add 1 to it.
Note: All methods & expressions must be surrounded by parentheses as shown below.
Note: All methods & expressions must be surrounded by parentheses as shown below.
Figure 1 – Filtering the requested ship dates in an AX query for tomorrow (current day + 1)
On any form with a grid, you filter your data by pressing Ctrl+G.
If I were to want to see open customer invoices from the last 90 days, I
would filter my open customer invoices form and use the method(dayRange(-90,0)).
The first number represents how many months backward from this month,
and the second represents how many months forward. The same sorts of
things can be done for themonthRange(), yearRange(), and dateRange()
methods. The best part about this is that you can of course save these
filters to create views that you might use on a daily basis.
Figure 2 – Searching the grid for the past 90 days
If you are creating your query ranges in
code, these methods can also be utilized whenever you are setting them.
Definitely be sure to check out the SysQueryRangeUtil class as there are
many more methods to use.
Kamis, 26 Mei 2016
AX : Get Company info AX 2012
Contoh :
salesordersheadertmp.CompanyAddress = CompanyInfo::find().postalAddress().Address;
salesordersheadertmp.CompanyPhone = CompanyInfo::find().phone();
salesordersheadertmp.CompanyName =CompanyInfo::find().Name();
salesordersheadertmp.CompanyTeleFax = CompanyInfo::find().teleFax();
salesordersheadertmp.CompanyGiro = CompanyInfo.Giro;
salesordersheadertmp.CompanyCoRegNum = CompanyInfo.CoRegNum;
salesordersheadertmp.CompanyEnterpriseNumber = CompanyInfo.EnterpriseNumber;
salesordersheadertmp.CompanyAddress = CompanyInfo::find().postalAddress().Address;
salesordersheadertmp.CompanyPhone = CompanyInfo::find().phone();
salesordersheadertmp.CompanyName =CompanyInfo::find().Name();
salesordersheadertmp.CompanyTeleFax = CompanyInfo::find().teleFax();
salesordersheadertmp.CompanyGiro = CompanyInfo.Giro;
salesordersheadertmp.CompanyCoRegNum = CompanyInfo.CoRegNum;
salesordersheadertmp.CompanyEnterpriseNumber = CompanyInfo.EnterpriseNumber;
Minggu, 22 Mei 2016
AX : Query Value +30 atau -30 di AX 2012
bisa dicoba ini
DateTimeUtil::addMonths(DateTimeUtil::utcNow(), -1))
-1 maksudnya 1 bulan
atau ini
>= Now() + 30
atau coba ini juga
>= today() + 30
DateTimeUtil::addMonths(DateTimeUtil::utcNow(), -1))
-1 maksudnya 1 bulan
atau ini
>= Now() + 30
atau coba ini juga
>= today() + 30
Rabu, 18 Mei 2016
AX : Method untuk > atau < apabila kondisi date
Method untuk tanggal kurang dari hari ini
(lessThanUtcNow())
Method untuk tanggal lebih dari hari ini
validTo (greaterThanUtcNow())
(lessThanUtcNow())
Method untuk tanggal lebih dari hari ini
validTo (greaterThanUtcNow())
Wifi Lenovo G40-70 Tidak Nyala ( not detected ) - http://kbhb86.blogspot.co.id
Sering kali
terjadi hal seperti ini wifi tidak nyala / not conected, padahal semua
driver sudah terinstal. Lihat cara instal driver wifi dan cara
mengaktifkannya di bawah ini :
1. Instal
terlebih dahulu driver energy manager, ikuti langkah - langkahnya hingga
selesai sampai muncul perintah selesai dan restart.
![]() |
| Gambar 1.1 |
![]() | ||
| Gambar 1.2 |
Selasa, 17 Mei 2016
Query : Menghitung Jumlah Karakter
menggunakan length, contoh
SELECT kode_produk, length(kode_produk) AS panjang FROM ms_produk LIMIT 0,10;
Langganan:
Postingan (Atom)

