onCreate() event on Master page
Options
So I have a grid element in my report that references a function coming from a *.js file. This works just fine. But on the Master Page I also need to manipulate the logo which I intend to do on the onCreate event. However, when I add code to this event for the logo, my table element cannot access the function in the *.js file. I've also tried moving the function from the .js file to the initialize event of the report. Still no luck.
Can somebody please help me with this issue?
Can somebody please help me with this issue?
0
Comments
-
What BIRT version are you using? I wrote a simple JS file like this<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
function test() {
return (1+3);
}
</pre>
<br />
Then I added that JS file to the resources and then included the file from properties > resources > JavaScript Files.<br />
<br />
Then from the onCreate() of a label in my masterpage headers<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
var testVar = test();
this.text = testVar;
</pre>
<br />
Can you recreate this with the sample DB and post it?Warning No formatter is installed for the format ipb0 -
Hi kclark,
I did some investigating and I think I've narrowed it down. I have java (not JS) in my onCreate() event with import statements et al. (I'm not an expert on Java so pardon me if this sounds incorrect). My JS file is just that, javascript. When I remove the import statements, the code in my onCreate() event fails (obviously) but now the methods from the JS file work correctly. What am I missing here?
-Scarlett0
Categories
- All Categories
- 111 Developer Announcements
- 49 Articles
- 103 General Questions
- 123 IM Services
- 40 OpenText Hackathon
- 31 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 897 Cloud Fax and Notifications
- 77 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 123 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 1 XM Fax