How to send parameter from pages to reports?

julkifli33
Member Posts: 1,092
hi all...i'm using nav 2009
i have created another sales invoice report (Report 50001)
the report is completely done
but from sales invoice list pages i want to send parameter document no
so it will preview the report with the document no I sent from sales invoice pages
how to do it?
i can preview report only using runobject
but it can't sent the parameter
i have created another sales invoice report (Report 50001)
the report is completely done
but from sales invoice list pages i want to send parameter document no
so it will preview the report with the document no I sent from sales invoice pages
how to do it?
i can preview report only using runobject
but it can't sent the parameter
0
Comments
-
If you want it to be replaced by base report, go to report selection table and change the report id for which you want..0
-
mohana_cse06 wrote:If you want it to be replaced by base report, go to report selection table and change the report id for which you want..
i create another report for unposted sales invoices
so i must create parameter0 -
from where do you call that report?0
-
Pages 9301 Sales Invoice List
i create another new action to pull this report0 -
write in OnAction
REPORT.RUN(50001,TRUE, FALSE,Rec);
0 -
mohana_cse06 wrote:write in OnAction
REPORT.RUN(50001,TRUE, FALSE,Rec);
so the button in my page is also gone...
is it using RUN or RUNMODAL?0 -
sorry... the button is already there
but still not sending the parameter0 -
what did u do exactly? can you explain?
what is the first dataitem in report 50001?0 -
mohana_cse06 wrote:what did u do exactly? can you explain?
what is the first dataitem in report 50001?
and then i update the filter
from order become invoice
still not send the parameter using your code0 -
julkifli33 wrote:i modified from report 205
and then i update the filter
from order become invoice
in order to run the report50001 from Sales Invoice list..
1. add an action print in Page 9301-Sales Invoice List
2. In OnAction trigger of above added Action writeREPORT.RUN(50001,TRUE, FALSE,Rec);
0 -
Mohana
your code belowREPORT.RUN(50001,TRUE, FALSE,Rec);
yes ... it can execute report no 50001
but it didn't give parameter at all
so the report we pull from your code stillNo. = < blank >
Sell-to Customer No. = < blank >
No. Printed = < blank >
what i want is... if we select invoice no 001,then becomeNo. = 001
Sell-to Customer No. = < blank >
No. Printed = < blank >0 -
Use
CurrPage.SETSELECTIONFILTER(Rec); REPORT.RUN(50001,TRUE, FALSE,Rec);
0 -
mohana_cse06 wrote:Use
CurrPage.SETSELECTIONFILTER(Rec); REPORT.RUN(50001,TRUE, FALSE,Rec);
Yes Mohana...
this is what i want
many thanks
:thumbsup:0 -
the code is already correct to reports
but....
for example i have 10 invoices
1001....1010
if i choose from the list 1005
and the preview the report
after that i go back to sales invoice list
it only appear only 1005
the others are disappear... until i go to another page...and then come back again to sales invoice list
how to refresh it automatically?0 -
It is setting filter on No = 1005,
you have clear the filters from Action-->Clear Filters0 -
thanks mohana
but how to set the parameter for each reportCurrPage.SETSELECTIONFILTER(Rec); REPORT.RUN(50001,TRUE, FALSE,Rec);
like this...
is it can be used for every report?
i have the same question
but now for payment journal page to pull from my another customized report0 -
Yes, you can use
just change the report no0 -
mohana_cse06 wrote:Yes, you can use
just change the report no
:thumbsup:0 -
mohana_cse06 wrote:It is setting filter on No = 1005,
you have clear the filters from Action-->Clear Filters
i still cannot find how to clear the filters0 -
You have to manually clear the filters from Actions0
-
mohana_cse06 wrote:You have to manually clear the filters from Actions0
-
Create an internal variable pointing to salesheader.
SalesInvHeader - Record - 112
Now change code to:CurrPage.SETSELECTIONFILTER(SalesInvHeader); REPORT.RUN(50001,TRUE, FALSE,SalesInvHeader);
That should do the trick as you will no longer be manipulating the filter on the record of the page.Best regards
Tommy0 -
thanks Tommy
it really works0
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