Options

NAV 2015 RTC report Grouping

ebitasebitas Member Posts: 71
I created a report off the Sales Cr.Memo Line Table, on the option section of the report the user will indicate how he wants the data to be grouped by (Sell To Customer, Posting Date, or Return Reason Code). I created one dataItem and listed the fields under it. In the code I tell it to use different Sort Key depending on the grouping selection. My issue is with the Layout, how do I specify the grouping there? I'm attaching the layout I have designed hopefully that will help. any ideas?

Best Answer

Answers

  • Options
    BeliasBelias Member Posts: 2,998
    I think the better approach in your case is the one suggested by postsaurav, but just for info, conditional grouping is actually possible by setting the grouping expression to something like this:
    =Switch(Fields!UserSelection.Value = "Sell-tocustomer",Fields!Selltocustomer.Value,Fields!UserSelection.Value = "PostingDate",Fields!PostingDate.Value)

    I hope it's clear enough
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
Sign In or Register to comment.