tag:blogger.com,1999:blog-14521551.post115343295648986996..comments2024-01-01T04:30:26.017-08:00Comments on BIRT World: BIRT 2.1 New Features WebinarPipebaumhttp://www.blogger.com/profile/03537553362087737960noreply@blogger.comBlogger20125tag:blogger.com,1999:blog-14521551.post-1157053492098034542006-08-31T12:44:00.000-07:002006-08-31T12:44:00.000-07:00You should be able to access a report parameter, g...You should be able to access a report parameter, global variable, session variable or named expression within the expression builder on the sorting key to change it on a per user request.Jason Weathersbyhttps://www.blogger.com/profile/13114050439576571984noreply@blogger.comtag:blogger.com,1999:blog-14521551.post-1156938854425638502006-08-30T04:54:00.000-07:002006-08-30T04:54:00.000-07:00Hello Jason,it works well with DOuble.class, thank...Hello Jason,<BR/><BR/>it works well with DOuble.class, thank you very much. but still don't understand why it doesn't work with Float.<BR/><BR/>Another question: is it possible to set sorting at run time per java code ? if yes, how should it looks like ?<BR/>Background: i can define the sorting per Property Editor "Sorting" for a table, but that happens at design time, it will be nice if this happens at run time per user request.<BR/><BR/>ThanksAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-14521551.post-1156906186189562602006-08-29T19:49:00.000-07:002006-08-29T19:49:00.000-07:00Try using a double like:import org.eclipse.birt.re...Try using a double like:<BR/><BR/><BR/>import org.eclipse.birt.report.engine.api.script.eventadapter.ScriptedDataSetEventAdapter;<BR/>import org.eclipse.birt.report.engine.api.script.instance.IDataSetInstance;<BR/>import org.eclipse.birt.report.engine.api.script.IUpdatableDataSetRow;<BR/>import org.eclipse.birt.report.engine.api.script.IScriptedDataSetMetaData;<BR/><BR/><BR/>public class DSEH extends ScriptedDataSetEventAdapter {<BR/><BR/><BR/> private static final String COLUMN_AMOUNT = "Amount";<BR/> private static int rwcnt = 0;<BR/> <BR/> public boolean fetch(IDataSetInstance set, IUpdatableDataSetRow row) {<BR/> if( rwcnt > 0 ){<BR/> return false;<BR/> }<BR/> try{<BR/> row.setColumnValue(COLUMN_AMOUNT, new Double(10));<BR/> }catch (Exception e){<BR/> e.printStackTrace();<BR/> }<BR/> rwcnt += 1;<BR/> return true;<BR/> }<BR/><BR/> public void open(IDataSetInstance arg0) {<BR/><BR/> }<BR/><BR/> public boolean describe(IDataSetInstance arg0, IScriptedDataSetMetaData arg1) {<BR/> arg1.addColumn(COLUMN_AMOUNT, Double.class);<BR/> return true;<BR/> }<BR/>}Jason Weathersbyhttps://www.blogger.com/profile/13114050439576571984noreply@blogger.comtag:blogger.com,1999:blog-14521551.post-1156839588896274962006-08-29T01:19:00.000-07:002006-08-29T01:19:00.000-07:00Hi Jason,here are the source code of my class:publ...Hi Jason,<BR/><BR/>here are the source code of my class:<BR/>public class MyScriptedDataSetEH extends ScriptedDataSetEventAdapter {<BR/>private static final String COLUMN_AMOUNT = "Amount";<BR/><BR/>public boolean fetch(IDataSetInstance set, IUpdatableDataSetRow row) {<BR/> row.setColumnValue(setColumnValue(COLUMN_AMOUNT, new Float(10));<BR/>}<BR/><BR/>public void open(IDataSetInstance arg0) {<BR/> get business data;<BR/>}<BR/><BR/>public boolean describe(IDataSetInstance arg0, IScriptedDataSetMetaData arg1) {<BR/>arg1.addColumn(COLUMN_AMOUNT, String.class);<BR/>}<BR/><BR/>}<BR/><BR/>ThanksAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-14521551.post-1156441149537769842006-08-24T10:39:00.000-07:002006-08-24T10:39:00.000-07:00Can you send me the source for your class?Can you send me the source for your class?Jason Weathersbyhttps://www.blogger.com/profile/13114050439576571984noreply@blogger.comtag:blogger.com,1999:blog-14521551.post-1156329902672143582006-08-23T03:45:00.000-07:002006-08-23T03:45:00.000-07:00Hello,i have a problem with ScriptedDataSetEventHa...Hello,<BR/><BR/>i have a problem with ScriptedDataSetEventHandler.<BR/>In method "describe" i define a column with type String by using "arg1.addColumn(COLUMN_AMOUNT, Float.class);" and in method fetch i set the value of the cloumn with "row.setColumnValue(COLUMN_AMOUNT, new Float(10));"<BR/><BR/>when i run the report i get ScriptException with "invalid data type", but when i change the column definition by "arg1.addColumn(COLUMN_AMOUNT, String.class);", the report run without error.<BR/><BR/>What is the reason of this problem ?<BR/><BR/>ThanksAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-14521551.post-1154978753048519512006-08-07T12:25:00.000-07:002006-08-07T12:25:00.000-07:00Sivan,You can send me an email at jasonweathersby@...Sivan,<BR/><BR/>You can send me an email at jasonweathersby@alltel.net.<BR/><BR/>Good to hear from you.<BR/><BR/>JasonJason Weathersbyhttps://www.blogger.com/profile/13114050439576571984noreply@blogger.comtag:blogger.com,1999:blog-14521551.post-1154892113674224322006-08-06T12:21:00.000-07:002006-08-06T12:21:00.000-07:00Hi Jason! Congrets for the new release, it's been ...Hi Jason!<BR/><BR/> Congrets for the new release, it's been long since we talked. Do you have an public email address I can write you to?<BR/><BR/>Cheers!<BR/><BR/>Sivan (former Zender)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-14521551.post-1154705394089473452006-08-04T08:29:00.000-07:002006-08-04T08:29:00.000-07:00The way you are doing it sounds fine. If you want...The way you are doing it sounds fine. If you want to use the persistent global variable, when your event handler gets called, get the reportContext from the call and use:<BR/>reportContext.setPersistentGlobalVariable() .<BR/><BR/>I would probably do it in the beforeOpen method.<BR/><BR/>JasonJason Weathersbyhttps://www.blogger.com/profile/13114050439576571984noreply@blogger.comtag:blogger.com,1999:blog-14521551.post-1154688109002479332006-08-04T03:41:00.000-07:002006-08-04T03:41:00.000-07:00thanks for your answer, jason, but where may be th...thanks for your answer, jason, but where may be the right place to call reportContext.setPersistentGlobalVariable<BR/>() and how can i get a instance of reportContext ?<BR/><BR/>at moment i put the needed object in a <BR/>renderContext and set it again in a AppConext of a RenderandRunTask, in this case i can get the needed object again in the methods of DataSet Eventhandler per IReportConext param, but i am not sure whether this is a correct usage ?<BR/><BR/>ThanksAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-14521551.post-1154627629571726702006-08-03T10:53:00.000-07:002006-08-03T10:53:00.000-07:00This is done using the reportContext.reportContext...This is done using the reportContext.<BR/>reportContext.getPersistentGlobalVariable("variablename")<BR/><BR/>JasonJason Weathersbyhttps://www.blogger.com/profile/13114050439576571984noreply@blogger.comtag:blogger.com,1999:blog-14521551.post-1154607940881615162006-08-03T05:25:00.000-07:002006-08-03T05:25:00.000-07:00thanks very much for the feedback, jason, but whic...thanks very much for the feedback, jason, but which class has the method to call: set-/get-PersistentGlobal ?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-14521551.post-1154582820582562082006-08-02T22:27:00.000-07:002006-08-02T22:27:00.000-07:00This is going to be tough because the event handle...This is going to be tough because the event handler gets instanitated new every time it is called. You may be to store a reference to it using the set and getPersistentGlobal Variable call.<BR/><BR/>JasonJason Weathersbyhttps://www.blogger.com/profile/13114050439576571984noreply@blogger.comtag:blogger.com,1999:blog-14521551.post-1154077684756784642006-07-28T02:08:00.000-07:002006-07-28T02:08:00.000-07:00Hello :)i use ScritedDataSet and appropriate Event...Hello :)<BR/><BR/>i use ScritedDataSet and appropriate EventHandler(not javascript regarding performance issue) to set displaying data from databse. In order to catch POJOs from EventHanlder i put it first in a Hashtable. This Hashtable is common to all programmes with it's public static methods.<BR/>It works fine until now, but what is it about Multithreading, how can i ensure that the EventHandler gets POJOs from a right Thread not another(each Thread gets different POJOs frim Database).Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-14521551.post-1154009208155042112006-07-27T07:06:00.000-07:002006-07-27T07:06:00.000-07:00hmmWith an image (logo for example), I can pass a ...hmm<BR/>With an image (logo for example), I can pass a report's parameter for the image URI.<BR/><BR/>Is it possible to do that with a rptlibrary (instead of an image) ?<BR/><BR/>I want to change the library path depending on the user who is accessing the report.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-14521551.post-1153956631545460902006-07-26T16:30:00.000-07:002006-07-26T16:30:00.000-07:00CSS sheets can be imported and the values that the...CSS sheets can be imported and the values that they contain can be changed on the fly, but the actual sheet can not be changed.<BR/><BR/>JasonJason Weathersbyhttps://www.blogger.com/profile/13114050439576571984noreply@blogger.comtag:blogger.com,1999:blog-14521551.post-1153918955320582112006-07-26T06:02:00.000-07:002006-07-26T06:02:00.000-07:00Hello :)Is it possible to change dynamically the c...Hello :)<BR/><BR/>Is it possible to change dynamically the css of a report ?<BR/>I wish :<BR/>- One rptDesign<BR/>- 5 CSS file (or rptlibrary)<BR/>- Change the path to the css file.<BR/><BR/>Have you a solution ? <BR/>If I use a library, the path in the rptdesign (xml) is only the library's NAME :(<BR/><BR/>ThanksAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-14521551.post-1153551221946060232006-07-21T23:53:00.000-07:002006-07-21T23:53:00.000-07:009:00 AM PST.Jason9:00 AM PST.<BR/><BR/>JasonJason Weathersbyhttps://www.blogger.com/profile/13114050439576571984noreply@blogger.comtag:blogger.com,1999:blog-14521551.post-1153539623255753762006-07-21T20:40:00.000-07:002006-07-21T20:40:00.000-07:00What time?What time?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-14521551.post-1153501583797027502006-07-21T10:06:00.000-07:002006-07-21T10:06:00.000-07:00Test comment email mechanism, no reply needed.Test comment email mechanism, no reply needed.Anonymousnoreply@blogger.com