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.
0
Answers
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
i did, but it doesnt seems to work ..
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
resolved it already, i cant call the functions and passparameters as i run the report calling the request forms... how silly
Please my post and replies.
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 15
'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');
Go to path and check whether file is created or not..
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
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]