Passing filter paramteres to report

nikeman77
Member Posts: 517
hi everyone,
i would like to pass a parameters (filters) from form to reports, but unfortunately my reports are using only integer data item,
based on the filter set from forms (eg: g/l accnt, dimension views) i would then run the reports, customs the column layout/ caption accordingly prior to export to excel.
i would like to pass a parameters (filters) from form to reports, but unfortunately my reports are using only integer data item,
based on the filter set from forms (eg: g/l accnt, dimension views) i would then run the reports, customs the column layout/ caption accordingly prior to export to excel.
0
Answers
-
Did you try by creating a function in report and passing filters via that funtion before running the report?0
-
hi mohana,
i did, but it doesnt seems to work ..0 -
Can you show what did you try?0
-
hi mohana,
resolved it already, i cant call the functions and passparameters as i run the report calling the request forms... how silly0 -
meaning.. i cant call the functions, because in another line i am running a report, with calling request forms set as yes in the report.run parameters..0
-
Dear I got some help already from our friends.
Please my post and replies.0 -
Dear,
Please check..
fromdate :=0D;
// Accounting period table
acp.reset;
acp.SETFILTER(acp."New Fiscal Year",'yes') ;
IF acp.FINDFIRST THEN
REPEAT
IF DATE2DMY(WORKDATE,3)=DATE2DMY(acp."Starting Date",3) THEN
fromdate:=acp."Starting Date"
UNTIL acp.NEXT = 0;
GLAcc.setrange("Date filter",fromdate,today);
REPORT.RUN(6, false,TRUE,GLAcc);
GLAcc record var of table 150 -
I am getting an error
'The Operating system cant access to the file 'd:\kmk\Sales Invoice.pdf'
Verify the file type and Atrubutes are correct.'
my code is
==================
fromdate :=0D;
acp.SETFILTER(acp."New Fiscal Year",'yes') ;
IF acp.FINDFIRST THEN
REPEAT
IF DATE2DMY(WORKDATE,3)=DATE2DMY(acp."Starting Date",3) THEN
fromdate:=acp."Starting Date"
UNTIL acp.NEXT = 0;
ltxtFileName:='d:\kmk\Sales Invoice.pdf';
GLAcc.SETRANGE("Date Filter",fromdate,TODAY);
REPORT.SAVEASHTML(6, ltxtFileName, FALSE,GLAcc);
CLEAR(smail);
smail.CreateMessage('ERP Admin','krishna@alotaiba.ae','kneni@hotmail.com','yr P and L',
'Item 50005 has a inventory below minimum in',FALSE);
smail.AddAttachment('d:\kmk\Sales Invoice.pdf');
smail.Send;
MESSAGE('mail send');0 -
kmkaot wrote:CLEAR(smail);
smail.CreateMessage('ERP Admin','krishna@alotaiba.ae','kneni@hotmail.com','yr P and L',
'Item 50005 has a inventory below minimum in',FALSE);
smail.AddAttachment('d:\kmk\Sales Invoice.pdf');
smail.Send;
MESSAGE('mail send');
Go to path and check whether file is created or not..0 -
[code
fromdate :=0D;
acp.SETFILTER(acp."New Fiscal Year",'yes') ;
IF acp.FINDFIRST THEN
REPEAT
IF DATE2DMY(WORKDATE,3)=DATE2DMY(acp."Starting Date",3) THEN
fromdate:=acp."Starting Date"
UNTIL acp.NEXT = 0;
ltxtFileName:='d:\kmk\SalesInvoice.html';
GLAcc.SETRANGE("Date Filter",fromdate,TODAY);
REPORT.SAVEASHTML(6, ltxtFileName, FALSE,GLAcc);
CLEAR(smail);
smail.CreateMessage('ERP Admin','krishna@alotaiba.ae','kneni@hotmail.com','yr P and L',
'Item 50005 has a inventory below minimum in',FALSE);
smail.AddAttachment('d:\kmk\SalesInvoice.html');
smail.Send;
MESSAGE('mail send');][/code]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