Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

How to add leading zeros to String in ADF Table

TechieInnovatorJun 11 2014 — edited Jun 11 2014

I have af:table with a column which may have values like "01", "STW", "RT003", etc coming from DB.

I want to display total 10 length String with leading zero if the length is less than 10.  How do I do it?

I have tried below groovy expression in VO and gives error

String.format("%10s", mycolumnname).replace(' ', '0')

This post has been answered by Dimitar Dimitrov on Jun 11 2014
Jump to Answer

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jul 9 2014
Added on Jun 11 2014
5 comments
2,400 views