Options

Grouping fields from code....is it possible?

voodoovoodoo Member Posts: 82
I want to use one report instead two reports, but I have a problem how to group inside C/AL code(if is it possible).
DataitemTableVIew == Dataitem.SETCURRENTKEY(....);
GroupTotalFields == ?

](*,)

Thnx
misha fka voodoo

Comments

  • Options
    kinekine Member Posts: 12,562
    You are not able to use automatic grouping in C/AL. You must do it in another way... read next record, compare with actual, if there is change on some field you want to group, show some grouping section...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Options
    DenSterDenSter Member Posts: 8,304
    The grouping of a report is defined within the report itself. You can do stuff with it in code, like using the TOTALSCAUSEDBY command for instance, but you're going to have to design the sections anyway, and those you cannot do in run time.

    By the way "==" doesn't work in navision.
  • Options
    voodoovoodoo Member Posts: 82
    By the way "==" doesn't work in navision.
    I know that, its purpose is only to show relation between property and c/al function ;)
    misha fka voodoo
Sign In or Register to comment.