DZone Forums
Go Back   DZone Forums > Community > Tools & IDEs > Eclipse
Reload this Page Save the value of previous row's column to a global variable - BIRT
Notices
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  (#1 (permalink)) Old
Member
 
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Dec 2008
Default Save the value of previous row's column to a global variable - BIRT - 12-06-2008, 02:13 PM

I am trying to save the value of a rows column to a global variable that I can used in the following row for a condition. I could use help in retieving the previous row in a table's (or dataset) column value to be used in a condition in the following row (or dataset) of that table.

I have declared the global variable in the initialize script of the report (I had tried to set this up in the Create script of the table. I had the same result.)

I set up the condition to compare the global varible to the current row's column value in the Create script of the table's row followed by the state ment to set the global varible to be equal to the row column value in the Create script of the table's row.

Condition always seem to be true a row too late. I am obviously setting the global varible too late or executing the coondition too soon.

Other variations I have tried result in worse results. I am still unsure of the javascript syntax, as well as BIRT's different areas for placing script.

The version of BIRT I am using is 2.2.2

Thanks,
Mike
Attached Files
File Type: zip PS01BilateralByDay55.zip (70.6 KB, 9 views)
Reply With Quote
Reply

Tags
birt, conditions, global variable, javascript

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Different cell editors for same column deepthis Eclipse 1 01-01-2009 04:24 AM
wrap member variable using code formatter peterramesh Eclipse 0 12-19-2008 02:40 AM
Tree column hide merovingian Eclipse 0 08-20-2008 12:35 AM
BIRT ODA Designer murtuza221 BI & Reporting 0 07-23-2008 04:20 PM
Bind swing table column to combobox kreiser Java 2 07-11-2008 08:33 AM


Copyright 1997-2009, DZone, Inc.
vBulletin Skin developed by: vBStyles.com