Can i change Report Caption Programatically at Runtime?
 
            
                
                    rajeshreepatel                
                
                    Member Posts: 16                
            
                        
            
                    Hi,
I have created a new Packlist report for Sales invoice and the same report i am using it for Sales quote too. Now my problem is the Report Caption. When i show the report in Sales quote it shows me the Sales invoice caption which i want to change.
Anyone can help me and tell how can i change my report caption depending on the report called from i.e. Sales Invoice or Sales Quote.
If Sales Invoice, i want to show Report caption as - "Sales Invoice" and
If Sales Quote, then i want to show Report caption as - "Sales Quote".
Waiting for a positive reply. 
                
                I have created a new Packlist report for Sales invoice and the same report i am using it for Sales quote too. Now my problem is the Report Caption. When i show the report in Sales quote it shows me the Sales invoice caption which i want to change.
Anyone can help me and tell how can i change my report caption depending on the report called from i.e. Sales Invoice or Sales Quote.
If Sales Invoice, i want to show Report caption as - "Sales Invoice" and
If Sales Quote, then i want to show Report caption as - "Sales Quote".
Waiting for a positive reply.
 
                Thank You,
Rajeshree
Rajeshree
0                
            Comments
- 
            Hi Rajeshree,
 Are you talking about the Caption on the Report "Title Bar"?
 BR
 MMV0
- 
            Hi rajeshree,
 You can create a text variable for report caption.
 On after get record of Sales Header Table based on Document Type You can fill in the Caption and display in report. Kind of -If "Sales Header"."Document Type" = "Sales Header"."Document Type" ::QUOTE Then "Report Caption" := 'Sales Quote' ELSE "Report Caption" := 'Sales INVOICE'; 
 Where "Report Caption" is a variable of type text.
 Let me know if you have any issues.
 Thanks & Regards,
 Saurav Dhyani
 Do you Know this About NAV?
 Connect - Twitter | Facebook | Google + | YouTube
 Follow - Blog | Facebook Page | Google + Page0
- 
            @ MMV, Thank u for your reply. Yes I am talking for report title. I want to change it at runtime.
 Thanks.
 @ Saurav,
 Thanks a lot for your reply.
 I have also done the same thing what u have mention. but i am not sure if i can use a variable in Caption property of the report or not?
 Otherwise how will the report caption change i.e. the report title.
 Even i want to change the title of requestpage of the report.
 Pls let me know if u hv done this.Thank You,
 Rajeshree0
- 
            Hi,
 I doubt you can change the caption property of report dynamically.
 I thought you wanted it on report section.
 Thanks & Regards,
 Saurav Dhyani
 Do you Know this About NAV?
 Connect - Twitter | Facebook | Google + | YouTube
 Follow - Blog | Facebook Page | Google + Page0
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

