Sorting report with a field that is not a key

Navision Articles

Get our Free Newletter

Don't you have the time to be online here at DUG every day? So how do you follow what is going on in the Dynamics industry and community?
If you subscribe to the DUG Newsletter then you can relax! We will make sure that you don't miss the big news!

Check out our
Newsletter Subscription Center
page a complete list of our different newsletters.

Not Answered This post has 0 verified solutions | 3 Replies | 0 Followers

Top 50 Contributor
Male
426 Posts
4,605 Points
Joined: Jan 21, 2007
Last Online:
Feb 9, 2010 7:40
Location: Woodland Realm
stan posted on Feb 8, 2010 6:04
How helpful was this post/question? Please rate here:

Hai there....

how do i Sorting report with a field that is not a key ??

I have secondary key = field1, field2, field3

I'm using wizard to group those fields...

but I want to sorting that report using field4

how do i do that?

thanks before....

The True Test Of Man's Character Is What He Does When No One Is Watching....

All Replies

Top 50 Contributor
Male
489 Posts
5,765 Points
Joined: Mar 10, 2006
Last Online:
Mar 11, 2010 14:39
Location: Milan (Italy)
DynamicsNAVMVP
kriki replied on Feb 8, 2010 6:48
How helpful was this comment/solution? Please rate here:

If you are on SQL, you can just add the new key and disable the MaintainSQLIndex. This way you can sort on the key in NAV, but SQL does not have to maintain the key.

If this is not the case, you need to read the records into a temptable. The field on which you want to sort you need to put into a field on which there is a key and then you can use that key to sort on it.

IF Debugging = removing bugs from program THEN programming := putting bugs in program;
Top 50 Contributor
Male
426 Posts
4,605 Points
Joined: Jan 21, 2007
Last Online:
Feb 9, 2010 7:40
Location: Woodland Realm
stan replied on Feb 8, 2010 7:57
How helpful was this comment/solution? Please rate here:

MaintainSQLIndex set to no...

but it still the same.... :(

my field1 is date type

how i do i group it by month ??


CurrReport.SHOWOUTPUT :=
  CurrReport.TOTALSCAUSEDBY = Table.FIELDNO(DATE2DMY(Field1,2));

it failed :(

 

The True Test Of Man's Character Is What He Does When No One Is Watching....

Top 25 Contributor
Male
673 Posts
8,415 Points
Joined: Nov 17, 2003
Last Online:
Mar 11, 2010 13:21
Location: Cold but sunny Scotland
jsrark replied on Feb 9, 2010 7:47
How helpful was this comment/solution? Please rate here:

This is not possible.

Either add the key to that table or use a temporary table (based on actual table) to provide the required sorting / sequencing.

 

Jonathan.

Don't forget to the post(s) that solved your problem. This credits the experts who helped, earns you points and marks your thread as Resolved so we all know you have been helped.

Page 1 of 1 (4 items) | Get this RSS feed | Bookmark and Share