Yes You can use ASCENDING function on any field, you just need to create a key for that field and then use SETCURRENTKEY function on the field before you use ASCENDING on that field.
You don't actually need to create a Key for that field, you can use ASCENDING & SETCURRENTKEY without having to create a key with the fields you want to use.
This was only necessary in older versions of NAV (before the ASCENDING function was available).
Yes You can use ASCENDING function on any field, you just need to create a key for that field and then use SETCURRENTKEY function on the field before you use ASCENDING on that field.
Yes You can use ASCENDING function on any field, you just need to create a key for that field and then use SETCURRENTKEY function on the field before you use ASCENDING on that field.
You don't actually need to create a Key for that field, you can use ASCENDING & SETCURRENTKEY without having to create a key with the fields you want to use.
This was only necessary in older versions of NAV (before the ASCENDING function was available).
Answers
Slawek
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
https://msdn.microsoft.com/en-us/library/mt574426(v=nav.90).aspx
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
[Ascending :=]Record.SETASCENDING(Field,[ SetAscending])
Customer.SETCURRENTKEY(City,"Name");
Customer.SETASCENDING(City,Descending);
You don't actually need to create a Key for that field, you can use ASCENDING & SETCURRENTKEY without having to create a key with the fields you want to use.
This was only necessary in older versions of NAV (before the ASCENDING function was available).