How to add fields in the report during runtime?

sridharsridhar Member Posts: 171
Can any one please say is it possible to add fields in the report during runtime?

Comments

  • garakgarak Member Posts: 3,263
    at runtime :?: No chance.
    Do you make it right, it works too!
  • JedrzejTJedrzejT Member Posts: 267
    1. If you want to add few field then create report with few sections more.

    Header(1)

    fieldcaption1 fieldcaption2 fieldcaption3

    Body(1)

    field1 field2 field3

    Header(2)

    fieldcaption1 fieldcaption2 fieldcaption3 fieldcaption4

    Body(2)

    field1 field2 field3 field4

    On presection trigger (body,header(1)) put
    currreport.showoutput(NOT 4fields)

    On presection trigger (body,header(2)) put
    currreport.showoutput(4fields)

    In dataitem triggers set up variable 4fields
  • garakgarak Member Posts: 3,263
    he wonts to add completly new fields.
    Do you make it right, it works too!
  • Marije_BrummelMarije_Brummel Member, Moderators Design Patterns Posts: 4,262
    You cannot change any object runtime as a user, only via the objectdesigner.
  • kinekine Member Posts: 12,562
    You can only use the "workaround" with more sections or somethink like "dynamic" section - predefined editboxes with variables and it is on you what you put into the variables... in this way you can change which value will be visible and where will be visible, but add new controls is not possible...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
Sign In or Register to comment.