Dimension Value onaftergetrecord() not working

franklin1232franklin1232 Member Posts: 35
I have a data item for the Dimension Value table in a report. In the OnAfterGetRecord() event I have some code. In the OnPreDataItem event I have one line of code: CompanyInformation.Get;

When I debug, the OnAfterGetRecord event never runs. What would make this happen. There are records in the Dimension Value table.

Thanks

Comments

  • DenSterDenSter Member Posts: 8,307
    I the OnAfterGetRecord event doesn't fire, that means that the report doesn't find any records, which probably means that there are no records in the *filtered* table. Check the DataItemLink property to see how the two dataitems relate to eachother. Then you can mimic the behavior by opening the Dimension Value table and setting filters manually.
  • krikikriki Member, Moderator Posts: 9,118
    I have a data item for the Dimension Value table in a report. In the OnAfterGetRecord() event I have some code. In the OnPreDataItem event I have one line of code: CompanyInformation.Get;

    When I debug, the OnAfterGetRecord event never runs. What would make this happen. There are records in the Dimension Value table.

    Thanks
    If this dataitem dependents on another one, the "CompanyInformation.Get;" will be executed more than once. It is better to put this in the "Report - OnPreReport()"-trigger, or even the "Report - OnInitReport()". In the last case you already have the record available in the requestform.
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


Sign In or Register to comment.