Get the filtered records in a record variable in reports

shibily
Member Posts: 89
Hi All,
How do i pass the filtered records to a record variable in reports.
I am using Sales Invoice line table in a report and it is used for filtering purpose before taking the report. I am using a record variable of Sales Invoice Line ie recSalesInvLine.
Whatever filterations i have made , i have to transfer it in the record variable. for ex if i have given the filterations for date and "sell to customer No" before taking the report , recSalesInvLine also should also be filtered with date and "sell to customer No" .
I tried by using the code recSalesInvLine : = "Sales Invoice line" . in the Sales Invoice Line, Header section, But i am getting all the records . Filteration is not taking place.
Can anybody help me to solve this issue.
Thanks in advance
How do i pass the filtered records to a record variable in reports.
I am using Sales Invoice line table in a report and it is used for filtering purpose before taking the report. I am using a record variable of Sales Invoice Line ie recSalesInvLine.
Whatever filterations i have made , i have to transfer it in the record variable. for ex if i have given the filterations for date and "sell to customer No" before taking the report , recSalesInvLine also should also be filtered with date and "sell to customer No" .
I tried by using the code recSalesInvLine : = "Sales Invoice line" . in the Sales Invoice Line, Header section, But i am getting all the records . Filteration is not taking place.
Can anybody help me to solve this issue.
Thanks in advance
0
Answers
-
Look at how printing an invoice works - PrintRecords function in Table 112.
Basically you have to copy your record variable into another variable and pass that variable to the report.0 -
shibily wrote:Hi All,
How do i pass the filtered records to a record variable in reports.
I am using Sales Invoice line table in a report and it is used for filtering purpose before taking the report. I am using a record variable of Sales Invoice Line ie recSalesInvLine.
Whatever filterations i have made , i have to transfer it in the record variable. for ex if i have given the filterations for date and "sell to customer No" before taking the report , recSalesInvLine also should also be filtered with date and "sell to customer No" .
I tried by using the code recSalesInvLine : = "Sales Invoice line" . in the Sales Invoice Line, Header section, But i am getting all the records . Filteration is not taking place.
Can anybody help me to solve this issue.
Thanks in advance
its working fine?
which version u r using?
in which section trigger did you write code?0 -
Yes it is working now. I have written in OnPreSection
Regards0 -
shibily wrote:Yes it is working now. I have written in OnPreSection
Regards
y did u get problem before?0 -
Belias wrote:He was assigning the variable instead of using COPYFILTERS, assignment does not copy the filters, but only the values...
the values will assigning after applying filter.0 -
mohana_cse06 wrote:Belias wrote:He was assigning the variable instead of using COPYFILTERS, assignment does not copy the filters, but only the values...
the values will assigning after applying filter.
sorry, don't understand you :-k0 -
Belias wrote:mohana_cse06 wrote:Belias wrote:He was assigning the variable instead of using COPYFILTERS, assignment does not copy the filters, but only the values...
the values will assigning after applying filter.
sorry, don't understand you :-k
he was assigning the variable means values
the values are assigning after applying filter0 -
Hi Shib,
Try this..
And use these two variables to filter the record recSalesInvLine .
Regards!Now or Never0 -
Hi all.
My problem is solved by using the Copyfilter option.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions