On April 27, 2024, our Sign-in and Create Account options will be unavailable from 9am-12pm ET. During this maintenance window, developer account access and free trial registration will be unavailable.

How about changing report title?

lpurba
lpurba Junior Member
Hi all,I have kind of similar question with Fred ("Change the header of a table..."), but I want to change report title.I know I can that title by extract viewservlets.jar, and go to orgeclipsebirtreportresourceMessage.properties.Is there anyway we can change it other than accessing the above file?Thanks!-Laurent

Comments

  • rmurphy
    edited 1969 31 #2
    Laurent,One approach to changing the title within a report could be to use the Master Page to display the title you want on every page except the first. Then have a Grid with a label in the top row that shows the title you want on the first page. The message.properties file you reference is a configuration file for the example Web Viewer. If you are looking at changing the title within the banner of the web viewer, this is the proper place to change it.Rob
  • lpurba
    lpurba Junior Member
    edited 1969 31 #3
    Hi Rob,Again thanks for your advice.Actually, what I want is to change the banner of web viewer.I have different question, I don't know whether I have to create a new thread or not.Anyway, I am getting this error:PM org.eclipse.birt.report.engine.executor.ExecutionContext evaluateSEVERE: invalid flag after regular expression (<inline>#1)org.mozilla.javascript.EvaluatorException: invalid flag after regular expression (<inline>#1) at org.mozilla.javascript.DefaultErrorReporter.runtimeError(DefaultErrorReporter.java:95) at org.mozilla.javascript.DefaultErrorReporter.error(DefaultErrorReporter.java:82)......I tried google it but couldn't find the answer. Is this because of my beforeOpen method; below is my beforeOpen method:AccountId = reportContext.getParameterValue("AccountId");if (AccountId != '' && AccountId != null) { queryString = "SELECT * FROM proc_name1('param1') WHERE account_id = " + "'" + AccountId + "'"; this.queryText = queryString; }CompanyName = reportContext.getParameterValue("CompanyName");if (CompanyName != '' && CompanyName != null) { queryString = "SELECT * FROM proc_name2('param2') WHERE company_name ILIKE '%" + CompanyName.replace("'", "''") + "%'"; this.queryText = queryString; }FullName = reportContext.getParameterValue("FullName");if (FullName != '' && FullName != null) { queryString = "SELECT * FROM proc_name3('param3') WHERE full_name ILIKE '%" + FullName.replace("'", "''") + "%'"; this.queryText = queryString; }Once again, thanks.Regards,-Laurent
  • rmurphy
    edited 1969 31 #4
    Laurent,<br />
    The problem looks to be with the assignment of queryString. Check out the code here for defining or changing a query using script.<br />
    <br />
    <a class='bbc_url' href='http://www.birt-exchange.com/modules/wfdownloads/singlefile.php?cid=2&lid=176'>http://www.birt-exchange.com/modules/wfdownloads/singlefile.php?cid=2&lid=176</a><br />
    <br />
    Rob