Concatenate data in BIRT

1

Greetings, Concatenating data in BIRT is actually simple, the data field is placed: Ejm:

dataSetRow["IMPUESTO"]+" "+(dataSetRow["PVP"]*dataSetRow["IMPUESTO"])/100

where the use of the + "" + does the concatenation in the BIRT, but if I want to divide the content by some character as I should do strong>? because what you put up would result in:

Taking as an example that the tax is 12 , the amount without tax is 200 and the result of AMOUNT * TAX / 100 is < strong> 24

1224.00 < < < something like WTF?

If I want the same "Data" to be something like 12 - 24% or 12/24%

If I put something inside the + "/" + does not take the concatenation and shows me only the first one :( how can I make it work?

    
asked by HeckDan 06.02.2018 в 18:54
source

1 answer

1

It has happened to me that in the Data Type it is in a numeric format so it is formatted and does not take the concatenation correctly.

Check that the data type of the "DATA" is a String type that accepts any character ..

Right click on the "DATA" - Edit Data Binding - Data Type: String and go!

Haha let me know if it's your case .. it happened to me >. <

    
answered by 06.02.2018 / 21:23
source