Calling Reports From Button
                
                    billnav                
                
                    Member Posts: 3                
            
                        
            
                    Hi,
I would like to call a report from a menu Item in the Item Card. I add a menu Item in the Item Card. I put the action property to 'Run Object' and I select my report in the property Run Object. It works fine, but I would like that my report filter on the current Item of the Item Card. Is it possible to do it if my licence does not allow me to write C/AL Code in form.
Thanks
Bill
                I would like to call a report from a menu Item in the Item Card. I add a menu Item in the Item Card. I put the action property to 'Run Object' and I select my report in the property Run Object. It works fine, but I would like that my report filter on the current Item of the Item Card. Is it possible to do it if my licence does not allow me to write C/AL Code in form.
Thanks
Bill
0                
            Comments
- 
            you want somthing similar to what they have on an invoice for example.
You are looking at an invoice & when you click print - that inv# is already filled in for you.
Unfortunately the Command button Has a RunFormLink but not a RunReportLink.
What makes report like the invoice work is the Codeunit Document-Print #229 and with a regular license I do not think you will be able to achieve this. :-k0 - 
            You did understand my problem! But I'm sad about the answer
 It is frustrating to be limited like that!
Thank you Savatage!
Bill0 - 
            I needed to run a report (#50065) from a PO that would update some sales lines. All I wanted is that the PO# appeared in the report so no user intervention was needed.
The only way I could do it was on the c/al code of the buttonOnPush() DocPrint.UpdateSalesLines(Rec);
then I added to Codeunit229 (Document-Print) a function called UpdateSalesLines
But it's the last 3 lines of code that gets your report going & without a dev license you would need to have your nsc do this for you.
UpdateSalesLines(PurchHeader : Record "Purchase Header")PurchLine.RESET; PurchLine.SETRANGE("Document Type",PurchHeader."Document Type"); PurchLine.SETRANGE("Document No.",PurchHeader."No."); PurchLine.FIND('-'); PurchHeader.GET(PurchHeader."Document Type",PurchHeader."No."); COMMIT; ReportSelection.SETFILTER("Report ID",'<>0'); ReportSelection.FIND('-'); REPORT.RUNMODAL(50065,TRUE,FALSE,PurchLine);0 - 
            i would find a RunReportLink property in a command button very useful too! [-o<
Helloooo Dynamics-Nav DEV Team!!!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
 - 323 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