|
Publicité ' | |||||||||||||||||||||||
|
|
#1 | ||
|
Invité de passage
![]() Inscription : novembre 2007 Messages : 2 ![]() |
Bonjour,
j'aimerai bien utiliser de fontions javascript dans mon rapport birt, mais malheuresement je n'arrive pas, exemple: Code :
|
||
|
|
00
|
|
|
#2 |
|
Membre Expert
![]() ![]() Consultant informatique Inscription : mai 2007 Messages : 893 ![]() |
Bonjour,
Tu veux utiliser du javascript au niveau d'un rapport texte ou un graphique. Dans le second cas, il possible en théorie d'associer 7 actions distinctes selon 13 événènement de type javascript (HTML) pour chaque graphe selon sa légende, son titre, les séries associées et les axes X,Y et Z. Cordialement Lazarel |
|
|
00
|
|
|
#3 |
|
Membre habitué
![]() ![]() Inscription : février 2005 Messages : 34 ![]() |
"window.document.location.pathname" c'est propre au web non ?
Le langage Javascript n'est pas entièrement disponible je crois puis que c'est simplement le moteur rhino qu'on retrouve dans birt... cf: http://wiki.eclipse.org/BIRT/FAQ/Scripting Q: JavaScript? Does that mean my code runs in the browser? When someone hears "JavaScript" the assumption is that JS is being used to script a browser. While browser scripting is a key use of JS, the language itself (when separated from the browser DOM framework) is a nice little tool that is well integrated with Java. Our goal in using JS is that a report developer can very quickly write business logic. JS tends to be easier to learn than Java for people who are accustomed to Visual Basic, SQL and similar scripting solutions. Because JS is well integrated with Java, it is easy to call from business logic into Java classes to do more advanced tasks, or if you prefer, to write your code using Java. Further, JS allows BIRT to support aggregate expression such as: sum( row.orderTotal ) This summarizes the orderTotal column over all rows. This makes aggregates look like other expressions, even though the BIRT report engine needs to "rewrite" them. [edit] Q: Where can I learn about JavaScript? JavaScript (also known as EcmaScript) is a popular language for browser scripting, and a wide range of books exist that describe JavaScript in that context. An excellent one is JavaScript: the Definitive Guide by David Flanagan, published by O'Reilly. This book has two sections: Core JavaScript and Client-Side JavaScript. Use the Core section a general reference for the JavaScript language independent of whether it is in a client or server. VisiBone provides a useful on-line reference. etc etc etc |
|
|
00
|
Copyright © 2000-2012 - www.developpez.com