Can i change Report Caption Programatically at Runtime?

rajeshreepatelrajeshreepatel Member Posts: 16
edited 2013-07-19 in NAV Three Tier
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. :)
Thank You,
Rajeshree

Comments

  • MMVMMV Member Posts: 99
    Hi Rajeshree,

    Are you talking about the Caption on the Report "Title Bar"?

    BR
    MMV
  • postsauravpostsaurav Member Posts: 708
    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 + Page
  • rajeshreepatelrajeshreepatel Member Posts: 16
    @ 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,
    Rajeshree
  • postsauravpostsaurav Member Posts: 708
    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 + Page
Sign In or Register to comment.