Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Cells Function similar
Cells Function similar [message #1834510] Wed, 11 November 2020 15:36 Go to next message
gale weinstein is currently offline gale weinsteinFriend
Messages: 10
Registered: October 2020
Junior Member
hi,
I have this function inside a dynamic text:

this function should be in every cell in the table.
but the indexes should be different (according to row number and column number.

can you suggest a different solution other than going over each cell and pasting the code ?


var currency = firstC[1] + "-" + secondC[0];

if(row["First_Table_List"]!=null){
var input = row["First_Table_List"].toString();
if(input.indexOf(currency)!=-1)
{
var index = row["First_Table_List"].indexOf(currency)+8;
var str = row["First_Table_List"].substring(index,index+1);
}
}
else if (row["AUD-CNY_AUD-CNH"]!=null)
str=row["AUD-CNY_AUD-CNH"];

str;

Re: Cells Function similar [message #1834863 is a reply to message #1834510] Thu, 19 November 2020 10:07 Go to previous message
dmitry khotsko is currently offline dmitry khotskoFriend
Messages: 38
Registered: March 2020
Member
You can use computed column but anyway you must create comp column for every column where you want to use it
Previous Topic:Get the index of the cell in Birt - Any function?
Next Topic:BIRT - Hide extra header cells when using drop detail
Goto Forum:
  


Current Time: Thu May 02 06:42:49 GMT 2024

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

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

Back to the top