Cells Function similar [message #1834510] |
Wed, 11 November 2020 15:36  |
Eclipse User |
|
|
|
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;
|
|
|
|
Powered by
FUDForum. Page generated in 0.02848 seconds