Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » getting a specific table value then passing it to a variable
getting a specific table value then passing it to a variable [message #1832242] Mon, 14 September 2020 05:58 Go to next message
Abaddon Tortelinni is currently offline Abaddon TortelinniFriend
Messages: 3
Registered: June 2020
Junior Member
I am a beginner at using BIRT, i need to get a specific result and put it in a placeholder like a variable or using a script.

then i will bind it to another table, call the binded field and display it.

i tried using the:

1. reportContext.setGlobalVariable("[variablename]", this.getValue());
- but the thing is, i'm always getting is the last value.

2. var [variablename] = this.getRowData().getColumnValue("Field Name");
- tried using this and its the same as the first one, it always get the last value.

I need somehow to get to the certain field but i do not know the code or script that i need to use.

Any kind of help will be appreciated!

Thank you!
Re: getting a specific table value then passing it to a variable [message #1833388 is a reply to message #1832242] Mon, 12 October 2020 07:54 Go to previous messageGo to next message
dmitry khotsko is currently offline dmitry khotskoFriend
Messages: 38
Registered: March 2020
Member
Why don't you use the IF construction? if you look for specific value, you must have a condition

[Updated on: Mon, 12 October 2020 07:58]

Report message to a moderator

Re: getting a specific table value then passing it to a variable [message #1833446 is a reply to message #1832242] Tue, 13 October 2020 13:50 Go to previous message
rbaak Mising name is currently offline rbaak Mising nameFriend
Messages: 31
Registered: July 2009
Member
why not just use a parameter? If you know exactly what value you need before you can capture it there.

Previous Topic:Setting base_url at runtime.
Next Topic:Report PDF/WORD on Linux OS extra line breaks
Goto Forum:
  


Current Time: Wed Sep 22 00:43:04 GMT 2021

Powered by FUDForum. Page generated in 0.01290 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top