Hi All,
Plaese Share your knowledge.....
Suppose I have report - Sales Document.
This report is based on two tables 1.Sales Header and 2.Sales Line (is indented).
There are two RequestFilterFields on The Sales Haeder one is Posting Date and another
is Location Code.
If I set the fiter as below
Posting : 010407..300407|290607
Location Code : WHITE|GREEN
Then How can I apply the same filter on the Other Table (Purchase Header, Posting date :=010407..300407|290607 and Location Code :=WHITE|GREEN)
Is it possioble in the Trigger OnPreReport of Report??
Plz reply.
Now or Never
0
Comments
i don't think you need to set any other filter than a standard
Salesline."Document type" = Salesheader."document type"
Salesline."Document No." = SalesHeader."No."
but to answer your question, it IS possible to set filter in your OnPreDataItem trigger.
MyFilter := rec.GETFILTER(field);
rec2.SETFILTER(field,MyFilter);
Read the help about this.
Dear kapamarou
IF Myfilter is 010407..300407|300707 THEN
Will rec2.SETFILTER(field,MyFilter) work ??
Have you tried it?
Since you are referring to a report, if you are having problems with this then it might be the place you read the filters.
If you use a text variable to store the filters i.e. MyDateFilter then go to the OnPreReport and do
Then go to OnPreDataItem of Purchase Header and Do
Sales or Purchase header?