BIRT and MaximoDataSet [message #1800666] |
Fri, 04 January 2019 19:01 |
Anh Doan Messages: 2 Registered: January 2019 |
Junior Member |
|
|
Hello all,
I am a student, but i am super confused as to what data type the maximoDataSet.getString() returns. I am assuming it to be a string, but when i use string methods like split(), i get a Java Lang exception that says cannot perform string method on array.
So i go and use array methods like .join("") , and i get an exception.
methods that do work is .slice() , and access using array offset works, so it has to be an array. So figure lets join the array using .join("") then use javascript string methods like .split() , works great in chrome's browser console, but throws exception in BIRT....and i am totally lost.
I am trying to do is collect everything before the first "-"
//the sample string array is ['a','n','-','h']
1. maximoDataSet.getString("location").join("").split("-",1)
result i am expecting is : 'an'
Anyone have any idea what i am doing wrong in BIRT, but works in chrome's console?
|
|
|
Powered by
FUDForum. Page generated in 0.01758 seconds