LPad Function is not cooperating
804017Jul 26 2011 — edited Jul 26 2011I am working in APEX and the LPad function is not cooperating this time.
I am looking for a way to LPAD spaces into the SUM(LineItems) column. I can get characters to pad, but not just spaces. I have used the following functions and combination of functions and still no luck.
LPad(SUM(LineItems),7,' ')
LPad(TO_CHAR(SUM(LineItems)), 7,)
LPad(TO_CHAR(SUM(LineItems)), 7, ' ')
LPad(CAST(SUM(LineItems)AS VARCHAR2(10)), 7)
LPad(CAST(SUM(LineItems)AS VARCHAR2(10)), 7, ' ')
Any and all suggestions would be appreciated!
-Robert