tag:blogger.com,1999:blog-1616206987206690523.post1034922754921692143..comments2023-04-03T03:55:38.181-07:00Comments on The Coder Lounge: Scripted Data sets in BIRTDeepakhttp://www.blogger.com/profile/12947774811212314687noreply@blogger.comBlogger10125tag:blogger.com,1999:blog-1616206987206690523.post-63527367102617668792014-10-28T06:30:50.198-07:002014-10-28T06:30:50.198-07:00Hi Deepak,
It seems list is still empty even after...Hi Deepak,<br />It seems list is still empty even after changing to globalVarList. I am new to BIRT. Could you please provide a workable solution.Anonymoushttps://www.blogger.com/profile/14118020730523631646noreply@blogger.comtag:blogger.com,1999:blog-1616206987206690523.post-18209933145055652982014-10-16T20:30:54.877-07:002014-10-16T20:30:54.877-07:00This was a while back so I don't remember the ...This was a while back so I don't remember the code exactly. I think my example code is a bit messed up. If you want to get data out of globalVarList you need to store data in globalVarList instead of globalVarMap.Deepakhttps://www.blogger.com/profile/12947774811212314687noreply@blogger.comtag:blogger.com,1999:blog-1616206987206690523.post-42291037590003948142014-10-16T19:29:52.870-07:002014-10-16T19:29:52.870-07:00what is the data in globalVarList? u are trying to...what is the data in globalVarList? u are trying to get this globalVarList but looks like its empty isn't it?<br />i am also trying to achieve the same.But so far no luck.My values in the list are jumbled up.<br />Please explain in detail bat fetching from the list.<br />Pallavihttps://www.blogger.com/profile/02750473895639910455noreply@blogger.comtag:blogger.com,1999:blog-1616206987206690523.post-23553489443436658462014-06-06T13:56:19.319-07:002014-06-06T13:56:19.319-07:00Hi Deepak,
Since the JDBCDataSoruce.onFetch() ...Hi Deepak, <br /> Since the JDBCDataSoruce.onFetch() will retrieve ALL records, and put them in the global variables, the ScriptedDataSource.fetch() should iterate on the globalVarMap first before accessing the globalVarList. However, the order of the data (globalVarMap.key) is not guaranteed.<br /> Is there a way to pause the onFetch() for every new CUSTOMER_ID and perform the fetch()?<br />Thanks.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1616206987206690523.post-63988463495722005852012-06-22T18:21:13.453-07:002012-06-22T18:21:13.453-07:00Thanks for pointing out the typo! I have fixed it ...Thanks for pointing out the typo! I have fixed it now.Deepakhttps://www.blogger.com/profile/12947774811212314687noreply@blogger.comtag:blogger.com,1999:blog-1616206987206690523.post-19253789520624721392012-06-22T16:17:13.566-07:002012-06-22T16:17:13.566-07:00There's a little error in your code.
You decl...There's a little error in your code.<br /><br />You declare globalvarMap, but then you call globalVarMap (notice the V is capitalized). That's why you get the undefined error.Phil Freemanhttps://www.blogger.com/profile/07209584588729942738noreply@blogger.comtag:blogger.com,1999:blog-1616206987206690523.post-33971479264363019192012-02-13T12:01:36.638-08:002012-02-13T12:01:36.638-08:00Hi, I am using 2.3.2 and I see this error Referenc...Hi, I am using 2.3.2 and I see this error ReferenceError: "globalVarMap" is not defined. (#1).. See next exception for more information.<br />There are errors evaluating script "__bm_onFetch()":<br />ReferenceError: "globalVarMap" is not defined. (#1).Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1616206987206690523.post-58176298131729247412012-02-12T21:03:07.276-08:002012-02-12T21:03:07.276-08:00i am new to BIRT report. i am using using RTC 3.0....i am new to BIRT report. i am using using RTC 3.0. Let me know is there any guide for developing script based report from the basic.pugazhnoreply@blogger.comtag:blogger.com,1999:blog-1616206987206690523.post-84603985301990359372010-08-07T06:23:35.287-07:002010-08-07T06:23:35.287-07:00@William You should also have the JDBC data set bo...@William You should also have the JDBC data set bound to a table in a report page, but make this table invisible. And below this table you should create your visible table. BIRT evaluates whatever it sees in the report page. HTH.Deepakhttps://www.blogger.com/profile/12947774811212314687noreply@blogger.comtag:blogger.com,1999:blog-1616206987206690523.post-76130061198245713982010-08-06T09:14:39.665-07:002010-08-06T09:14:39.665-07:00Hi Deepak,
Try to understand your example. So, the...Hi Deepak,<br />Try to understand your example. So, the 1st part of your code 'Populate this variable with required data' should to with the JDBC data set. And the 2nd part 'Create a scripted data set' should go with the script data set. Correct?<br /><br />With that done, drag a output column from the script data set to table to bind it. So far so good. My question is does BIRT know to perform the JDBC query 1st when I run the report? I am having trouble getting it to work.<br /><br /><br />Thanks in advance,<br />WilliamUnknownhttps://www.blogger.com/profile/17512689671775552288noreply@blogger.com