Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
VijayTalend
Contributor
Contributor

Right aligned output text - Hierarchical map EDI to Text

Hi,

 

I am developing hierarchical map for EDI to Text -

Few of the output fields expect right aligned output as shown below. you can see 325.610, 35.470 etc are right aligned in the output.

 

Can you please let me know how to right align them ?

 

NP25         325.610 TIM USD
NP25         353.470 TIM USD
NP25         244.340 TIM USD
NP25          32.730 TIM USD

 

Regards

Labels (2)
1 Reply
TRF
Champion II
Champion II

Suppose you're expecting 4 digits for the left side and 3 for the right side, you can use the following code in a tJavaRow component:

DecimalFormat df1 = new DecimalFormat("###0.000");
output_row.price = df1.format(input_row.price);