Problem With GETFILTER

Markandey_PandeyMarkandey_Pandey Member Posts: 178
Hi all,

i have created a report using Dimension Value and Sales Invoice Line Data Items.
Here i want to print the date selected on request form to the header section of the Dimension Value data item. for this i have written the code under OnPreSection trigger of Dimension value's header section, the code is:
DateFilter :-- Text (30)

DateFilter:="Sales Invoice Line".GETFILTER("Sales Invoice Line"."Posting Date");

and i have assogned this DateFilter variable to a textbox under hedaer section of Dimension value dataitem,
but its not working, its showing nothing.

can anybody help me.
Markandey Pandey

Comments

  • kinekine Member Posts: 12,562
    If you will find the correct thread on this forum (but it will be hard...), you will find that the filters set for each dataitems are available only in two cases:

    the OnPreDataItem of the dataitem was already called and you are "within" the dataitem (on same or nested level) - it means you are inside the scope of the dataitem

    or

    you are in OnPreReport trigger. In this trigger, all filters of all dataitems are available (but cannot be changed, because they will be reset in OnPreDataItem trigger).
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Markandey_PandeyMarkandey_Pandey Member Posts: 178
    Thanx,

    i got ur point.
    Markandey Pandey
Sign In or Register to comment.