linking new sales order report to sales header form

lavanyaballurgi
Member Posts: 235
Hello experts,
I tried to search this query in mibuso but couldn't find one (or may be I was typing wrong search keys).
Anyways I made a new sales report which I want to link with sales header's Print button i.e. as soon as i click on this menu in button it should open the request form of my report with the "Document No." already filled as the sales order number from where I clicked print.
I am sure this is very basic thing but somehow i forgot it :-(
so plz help
I tried to search this query in mibuso but couldn't find one (or may be I was typing wrong search keys).
Anyways I made a new sales report which I want to link with sales header's Print button i.e. as soon as i click on this menu in button it should open the request form of my report with the "Document No." already filled as the sales order number from where I clicked print.
I am sure this is very basic thing but somehow i forgot it :-(
so plz help
0
Answers
-
Did you link the report or not yet?0
-
I have created a new MENUITEM in PRINT button in SALES ORDER FORM but how to bring the report in MENUITEM? Shall I fill ACTION as RUNOBJECT? and RUNOBJECT as MY NEW REPORT?0
-
try writing below code on OnPush trigger of menuitem?
REPORT.RUNMODAL(<your report ID>,GUIALLOWED,FALSE,Rec);
0 -
Wow .. that worked perfectly ... but then the "No." field in USER REQUEST FORM is empty. how shall it be filled by default with the sales order number from which I am accessing this report?0
-
Take a record variable of Sales Header and Pass it
SH.RESET; SH.SETRANGE("Document Type","Document Type"); SH.SETRANGE("No.","No."); REPORT.RUNMODAL(<Your report ID>,GUIALLOWED,FALSE,SH);
0 -
Well this somehow doesnt work. The "No." field is still empty in USER REQUEST form
Do I need to do something in REPORT's USER REQUEST FORM?0 -
Oh sorry .. my mistake.. its working perfectly now... I forgot to put SH instead on REC in "REPORT.RUNMODAL""0
-
lavanyaballurgi wrote:Oh sorry .. my mistake.. its working perfectly now... I forgot to put SH instead on REC in "REPORT.RUNMODAL""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