Value from Idented Data Item to display in Data Item above?

gadzilla1gadzilla1 Member Posts: 316
Hello All,

I'm a newbie making good progress, but have a dilema with a report you may have encountered already.

This most likely goes against the nature of Navision reporting but I'll ask the question anyway. For the data items below, when there is a sales discount displayed on the SalesInvLine section, it would be nice to note this on the PageLoop section of the same report (SalesInvLine is indented under PageLoop). Obviously when I grab the value from the indented item SalesInvLine OnAfterGetRecord() area, I'm one record too late...any suggestions, samples, questions?

Thanks for any help!

DataItem_____Name

Sales Invoice Header_____<Sales Invoice Header>
>Sales Invoice Line_____<Sales Invoice Line>
>Sales Comment Line _____<Sales Comment Line>
>Integer_____CopyLoop
>>Integer_____PageLoop
>>>Integer_____SalesInvLine

Comments

  • DenSterDenSter Member Posts: 8,307
    In that particular case you're in luck, because by the time you get to the PageLoop dataitem, you already have all the data, it's all stored in global variables. Usually though, you can't get to indented dataitems before they actually run.

    You need to figure out what runs in which order. OnInit, then the request form triggers, then OnPre, then the dataitems and the sections as the data is printed, then OnPost. If you know the flow of all the triggers, you will be able to figure out where to do what.
  • gadzilla1gadzilla1 Member Posts: 316
    I understand and I'll now attempt this...get the value from the data item above PageLoop. Thank you!

    Chris
Sign In or Register to comment.