Addition of two number fields Example(Java script through expression builder) [message #892811] |
Fri, 29 June 2012 19:50 |
avinash Kumar Messages: 2 Registered: June 2012 |
Junior Member |
|
|
I am new to BIRT. I have XML Data Set. All fields which is defined in this XML is bydefault of Object type. Whenever i am performing simple addition of two fields for example row["a"]+row["b"], its giving some error like Nan.
I just need a simple example where I can add two fields with complete Javascript code so that same concept i can use henceforth.
Your help will be greatly appreciated. I am in urgent need as we have just started similar project.
Thanks!!!
[Updated on: Sun, 01 July 2012 09:37] Report message to a moderator
|
|
|
Re: Addition of two fields Example(Java script through expression builder) [message #893147 is a reply to message #892811] |
Mon, 02 July 2012 21:52 |
|
Are you wanting to add to objects? Can you post a snippet of the xml?
Jason
On 6/29/2012 3:50 PM, avinash Kumar wrote:
> I am new to BIRT. I have XML Data Set. All fields which is defined in
> this XML is bydefault of Object type. Whenever i am performing simple
> addition of two fields for example row["a"]+row["b"], its giving some
> error like Nan. I just need a simple example where I can add two fields
> with complete Javascript code so that same concept i can use henceforth.
> Your help will be greatly appreciated. I am in urgent need as we have
> just started similar project.
>
> Thanks!!!
|
|
|
|
Re: Addition of two fields Example(Java script through expression builder) [message #895104 is a reply to message #894179] |
Wed, 11 July 2012 17:04 |
|
What is the real Java data type for the object? Is it just a string?
Jason
On 7/7/12 8:08 AM, avinash Kumar wrote:
> Hi Jason,
> Thanks for your reply!
> Actually, I need to add two fields (object type)
> currency 1=euro 75
> crrency 2= euro 60
> when i am adding these, it saying Nan because both object has text
> character as some part of it(euro).
> could you give me code (java script) as how i can handle this situation?
> Thanks once again in advance!!
|
|
|
Powered by
FUDForum. Page generated in 0.03058 seconds