Oracle BI Publisher - How to format numbers as text so that leading zeroes don't dissappear

邮差的信 提交于 2019-12-08 08:59:51

问题


When creating an Oracle BI Publisher rdf template in Microsoft Word, with intended output to Microsoft Excel; is there a way to format numbers as text so that leading zeroes don't dissappear? I would like to print out telephone numbers and they have values such as 0215551234; where I want the leading zero to show. In BI Publisher this shows as 215551234.


回答1:


I'm not sure if you still need this, but here is an example of a solution I found on the Internet (and it's on SQL level so you don't need to worry about complicated XML codes):

SELECT '="' || q.item_code || '"' excel_display_item_code
FROM   (SELECT '00005689' item_code FROM DUAL
        UNION
        SELECT '00000012' item_code FROM DUAL
        UNION
        SELECT '01345677' item_code FROM DUAL) q;



回答2:


In BI Publisher properties for the field check Force LTR option

or you can put the following in form field help text

<fo:bidi-override direction="ltr" unicode-bidi="bidi-override"><?YOUR_TEL_FIELD?></fo:bidi-override>


来源:https://stackoverflow.com/questions/18335486/oracle-bi-publisher-how-to-format-numbers-as-text-so-that-leading-zeroes-dont

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!