Problem in Formatting Number in eTEXT template
Hi All
We want to format the payment amount for check in the eTEXT template.
We want a number with 2 digits after decimal point and a comma before 3 digits to the decimal point.
We tried using
Number, ####,###.##
But for the data 135 it is printing 0000135.00, But we want it in 135.00
Similary for data 1356.7, we would like to have 1,356.70
I tried with some trial and errors, but no luck.
your help is appreciated.
Thanks & Regards
Naga
it should work,
I would like to see your template,
drop me xml and template to my id , its in profile.
Similar Messages
-
How to Format number in RTF template?
Hi,
In RTF template i am using Format_number for custom requirement. when i am using below conditon <?format-number(ENTERED_CR,'##,##0.00')?> number is getting formatted if above 1000 only. My requirement is 1). 444 should format like 444.00 2). 444.55 should format like 444.55 only. Can anyone suggest on this ASAP.in the next time use BI Publisher forum - BI Publisher
<?format-number(ENTERED_CR,'##,##0.00')?>it's works for me
output:
444 -> 444.00
444.55 -> 444.55 -
Date formats and etext templates
I have been working with etext templates in the last few days and am struggling with date conversion. My XML file has dates in the format DD-MON-YY and my output requires DDMMYYYY. It seems that the format conversion in etext template only works when the xml date is in the format YYYY-MM-DD. I thought I would convert the DD-MON-YY using a combination of TO_DATE and TO_CHAR but TO_CHAR doesn't seem to accept the date mask in etext templates. It looks like I will have to modify the original report unless someone has a way to achieve this in the template.
Thanks,
DaveI had to change the report. You may be able to change the setup in the reports server to alter the default date format but I didn't want to do that in case it affected the output of any of the other reports that are being run. (N.B. I haven't tried this myself so not sure it can be done).
The change to the report is pretty simple, I just added a formula column that took a copy of the standard column in the report and used to_char to reformat the date. In my case I reformatted to YYYY-MM-DD so that I could use the template to change the format to the required style. This is just in case there is a later change in the output style so I won't have to modify the report again.
When the date in the XML is in the format YYYY-MM-DD the documented formatting options work (e.g. "Date , DDMMYYYY" would convert "2005-10-26" to "26102005"). -
Application Express 3.1 + BI-Publisher + problem with formating numbers
Hello together!
I use the Oracle BI Publisher Template Builder for Word (10.1.3.4) to generate RTF-Templates. I upload these templates in Oracle Apex (Advanced support-->BI-Publisher/OC4J as print service).
It works well, but I have a problem with formating numbers.
In Template Builder I define following number formats, for example: #.##0 for numbers like 1.454.234 and #.##0,00 for numbers like 54,80
In Template-Builder Preview it looks well.
But whatever I do, in use with Oracle Apex dots and comma are allready interchances in the printout.
That means,
1.454.234 become 1,454,234 in PDF-Report
54,80 become 54.80 in PDF-Report
Other than that, the layout is exactly the same like in Template Builder defined.
What's wrong?
Do I have to change any country parameter?
JulianeI also had the same problem. I tried with normal formating of 99g99g999d99 instead of ##,##,##0.00 and it has resulted correct way.
-
XSLT Processor Bug? format-number() on large numbers
For numbers 100,000,000.00 and higher, I'm getting extra digits and rounding errors.
How can I use some custom Java code in the XSL stylesheet so the correct value is displayed (i.e. w/o rounding)? I'm getting a value of 100000000.00 and I need to insert the commas. Sometimes the correct value is displayed, other times, additional numbers are appended and the amount is rounded.The XSLT processor uses java.text.DecimalFormat under the covers as the XSLT 1.0 specification suggests. I would imagine any problems with format-number() actually boil down to problems with java.text.DecimalFormat.
You can use Java Extension functions to perform custom Java in your stylesheet.
See the file .\extfunc.html in the root directory of the XML Parser for Java V2
distribution. -
Gettin error Cannot convert to number in RTF Template
Hi,
I am working on xml template development i am getting the followinf error
Font Dir: C:\Program Files\Oracle\XML Publisher Desktop\Template Builder for Word\fonts
Run XDO Start
RTFProcessor setLocale: en-us
FOProcessor setData: D:\Tickets\Remittance Advice XMLP\canada_report1.xml
FOProcessor setLocale: en-us
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at oracle.apps.xdo.common.xml.XSLT10gR1.invokeProcessXSL(XSLT10gR1.java:586)
at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:383)
at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:201)
at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:161)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1015)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:968)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:209)
at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1561)
at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:951)
at RTF2PDF.runRTFto(RTF2PDF.java:626)
at RTF2PDF.runXDO(RTF2PDF.java:460)
at RTF2PDF.main(RTF2PDF.java:251)
Caused by: oracle.xdo.parser.v2.XPathException: Cannot convert to number.
at oracle.xdo.parser.v2.XSLStylesheet.flushErrors(XSLStylesheet.java:1526)
at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:517)
at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:485)
at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:264)
at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:150)
at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:187)
... 16 more
I have checked the code and problem was due to following code i dont know where i went wrong
<xsl:variable xdofo:ctx="incontext" name="inner_group" select=".//G_SEL_INV_DATA"/><?for-each:$inner_group?><?if:(position()-1) mod $no_of_lines_per_page=0?><xsl:variable name="first_rec" xdofo:ctx="incontext" select="position()"/>
Please help me to solve this issue...
Thanks
RajeshWhat was the problem in the template? I am facing the same error, when I put a conditional in the data field, it throws the XML-22036: (Error) Cannot convert to number.
error, where if the element was printed directly it works fine.
error
<Line 984, Column 130>: XML-22036: (Error) Cannot convert to number.
@Line 984 ==> <xsl:variable name="v148" select="format-number(string(xdoxslt:one($v147)), string('###0.00'), string('_DECIMALFORMAT'))"/>
End of Process.
<format>
Number, ###0.00
<DATA >BROKEN
If (to_number(../DocumentPayableCount) + to_number(Extend/NumberOfPO) + sum(to_number(../DocumentPayable/Extend/Commentlength))) <= 7 then Extend/InvoiceAmount end if
<DATA >ALSO BROKEN
If (../DocumentPayableCount + Extend/NumberOfPO + sum(../DocumentPayable/Extend/Commentlength)) <= 7 then Extend/InvoiceAmount end if
<DATA> WORKS
then Extend/InvoiceAmount -
How to use XDOXSLT in rtf template layout for etext template creation
<DEFINE CONCATENATION> BookDetails
<BASE LEVEL> Category
<ELEMENT> Name || '/' || Price
<DELIMITER> '/'
<END DEFINE CONCATENATION> BookDetails
With EFTProcessor the above details are created in xsl file as follows
<xsl:template name="CONCAT_BookDetails">
*I need to declare one more variable here
EG: <xsl:value-of select="xdoxslt:set_variable($mycount, count(.//Category))"/>
--and use this variable for any dyanamic process inside this template. How to achieve this in rtf template by declaring a xdoxslt function. How to declare this
syntax in rtf layout so that it creates a varibale in xsl template using the EFTProcessor. Please help me out. The main point here is to include xslt functions in
rtf template layout for etext template creation.*
<xsl:for-each select=".//Category">
<xsl:call-template name="CONCAT_BookDetails_V"/>
</xsl:for-each>
</xsl:template>in the next time use BI Publisher forum - BI Publisher
<?format-number(ENTERED_CR,'##,##0.00')?>it's works for me
output:
444 -> 444.00
444.55 -> 444.55 -
Creation of sequence in etext template
Hi All,
I am creating a custom etext template for a invoice payment which will be forwarded to bank.
The file will be generated for each invoice payment made one at a time.
So, I have a requirement where in need to generate a sequence number in of the fields of the extext template. When the first file is send to bank, the sequence should be 1, for the second run the sequence should display 2 and so on.
Here we cannot use the <RESET AT LEVEL> as RECORD or LEVEL as we need to control the sequence outside the etext template and in the database. So, I believe we should use PERIODIC_SEQUENCE that controls the value in database level.
My question is how to achieve the relation between the database value and the etext template value.
ex:
<DEFINE SEQUENCE> allrecordsequence
<RESET AT LEVEL> PERIODIC_SEQUENCE
<INCREMENT BASIS> /outboundtransaction/paymentsequence[sequencename=allrecordsequence]/lastvalue + 1
<END DEFINE SEQUENCE> allrecordsequence
In the etext template
sequence(allrecordsequence)
The value in the etext template is always generation as 1, as the database record paymentsequence/lastvalue is null.
Here is the user guide notes:
Reset at Level
The reset at level subcommand defines where the sequence resets its starting number. It is a mandatory subcommand. For example, to number the payments in a batch, define the reset at level as Batch. To continue numbering across batches, define the reset level as RequestHeader.
In some cases the sequence is reset outside the template. For example, a periodic sequence may be defined to reset by date. In these cases, the PERIODIC_SEQUENCE keyword is used for the reset at level. The system saves the last sequence number used for a payment file to the database. Outside events control resetting the sequence in the database. For the next payment file run, the sequence number is extracted from the database for the start at number (see start at subcommand).
But the sequence value in the database is not getting incremented.
Appreciate an early response as it is really urgent.
Thank you in advance.I have developed the solution using the below approach-
Requirement - ( My requirement was a little different to what was mentioned above)
To generate a sequence number in the e-text template of a invoice payment file.
In a day when the first file is send to the bank, the sequence should be 1, for the second file the sequence should be 2.
For the next day run the sequence value should be reset to 1.
Approach 1) Use the IBY_FD_EXTRACT_EXT_PUB hook and Use sequence in the e-text template.
GET_INS_EXT_AGG procedure is called once only for the payment instruction.
It will add XML data element under OutboundPaymentInstruction tag.
Add a new XML tag with the successful count of the formatted payments in a day.
SQL query.
SELECT COUNT (1)
INTO v_payment_count
FROM iby_payments_all a
WHERE UPPER (a.org_name) = <org_name>
AND UPPER (a.payment_profile_sys_name) =
'profile system name'
AND TRUNC (a.creation_date) = TRUNC (SYSDATE)
AND a.payment_service_request_id <
(SELECT MAX (b.payment_service_request_id)
FROM iby_payments_all b);
In the e-text template use the sequence number
<DEFINE SEQUENCE> RecordSeq1
<RESET AT LEVEL> OutboundPaymentInstruction
<INCREMENT BASIS> LEVEL
<START AT> 1
<END DEFINE SEQUENCE > RecordSeq1
While referring to the sequence use :- SSPN_PAYMENT_COUNT + SEQUENCE_NUMBER(RecordSeq1)
to get the latest count of payment files.
Approach 2) Using payment system
<DEFINE SEQUENCE> RecordsSeq1
<RESET AT LEVEL> PERIODIC_SEQUENCE
<INCREMENT BASIS> LEVEL
<START AT> /PaymentSequence[SequenceName=’RecordsSeq1’]/LastValue + 1
<END DEFINE SEQUENCE > RecordsSeq1
By using a PERIODIC_SEQUENCE it will periodically generate the numbers.
SEQUENCE_NUMBER(RecordsSeq1) is used to generate the number.
I believe we need to have a payment system defined and associate the same to a Payment Process Profile.
Only then can it have association with the last sequence number in the database.
Please correct me if the Approach#2 set up is incorrect.
Since Payment system was not necessary for the payment profile that we have used I have used approach 1
Approach 2 can be used as a guideline :) -
Format Number in XML Publisher
Hi
I am developing a RTF template for EXCEL output report. I am trying to format a number value in this report
<?xdofx:if to_number(QUARTER_QUANTITY) > -1 then QUARTER_QUANTITY end if?>
in the above line of code how could we format QUARTER_QUANTITY field (i need 9,999, 999 format)
I have tried both
format-number:fieldname;’999G999D99’
format-number(number,format,[decimalformat])
nothing worked for my.
Can some one please help me to resolve this issue.
thanks
RajHi Raj,
Were you able to solve this problem? I am running into the same problem where I want the number to dsiplayed with 2 decimals. When I view the output in Excel format , it cuts off the last zero for eg 18.30 becomes 18.3 If i use any other Output format like HTML trailing 0s are preserved. How do I solve this
Thanks -
Format-number not working for me with preview to excel
Hi,
I have a report with 8 fields across within a table.
Each field is formatted in the same way, with format-number like this (there are 8):
<?format-number:total-year-remaining;’PT999G999D99’?>
(that's the type-your-own form-field help text in the word template).
When I preview the PDF, the data looks fine (8 cells shown below):
.00 (.10) (.10) .00 (.50) (.50) (.60) (.60)
But when previewing to Excel, there are two problems:
1. Only the data in the last field (the 8th one) is formatted with the oracle mask:
(.60)
But upon closer inspection, there are two blank spaces after the number in that cell, and the value itself is treated like a string, e.g. '(.60) '. In fact if I ask excel to format this cell like a number with currency and two decimal places, in won't do it because of trailing spaces. Its just not a number to excel at that point. Probably the ('s don't help things either.
2. The data in the first seven fields in excel are numeric, and I can format them in excel as currency, but I wanted XMLP to handle this, not the excel user.
The bottom line is this: I want both PDF and excel output. I want both forms to have the fomat mask applied correctly. And I want excel to treat each cell as a number. Is this possible?
Thanks
AdamAnatoli,
Hello!
I don't know if my situation is the same as yours, but after a lot of head-scratching, forum searching and template rebuilding, I finally figured out my problem.
I had one column that no matter what I did kept appearing in Excel as text. I'd format it to Number in Excel and nothing. When trying to sum the column, Excel would not recognize any of the values as numbers. I even did the reformatting on the XML Word template to number, and the currency format that Adam mentions. Still no go. The $ and ',' appeared, but column still formatted as string.
I just finally noticed Adam's mention of the 2 extra spaces at the end of the numbers and sure enough mine was doing the same thing. Take out the 2 spaces and voila! Number!
Every time I redid my template in Word (07 and 03), I used the wizard. (Add-ins>Insert>Table>Wizard) walked through the steps, not really changing anything. Then I would preview and the spaces would be there. The column that I was having problems with was the last column of the table, which would get the text 'end G_ASSIGNED_CC' inserted in after the field name - separated by 2 spaces. Once I took out these two spaces, so the column now shows 'COSTend G_ASSIGNED_CC', it worked fine in Excel - all numbers.
Hope that helps someone out there as I was having a heck of a time finding anything (solutions anyway) on this.
Thanks,
Janel -
How to Print multiple Records under one level in Etext templates.
Hi,
I am working on the Etext templates and customizing the standard template “US NACHA PPD FORMAT”.
This standard template don’t have a addenda record.. I have modified and it is working for single Addenda records. But when I have multiple ADDENDA records to be printed in one particular *<outboundpayment>* level, it is not printing.
How do I modify the template so that Multiple Addenda records get printed?
Note: I have multiple *<MyPayables>* tags under *<OutboundPayment>* tags.
Please help me in understanding this…
Regards
Pradeep GWhat you probably need to do is generate each bio
individually with the
<cfdocument...> tag just the way you want them. And
then use some of
the advanced <cfpdf...> functionality that allows you
to append two or
more individual PDF's into a single large PDF.
Here are some resources that describe some of the
<cfpdf...> functionality.
http://www.coldfusionjedi.com/index.cfm/2007/7/9/ColdFusion-8-Working-with-PDFs-Part-1
http://www.coldfusionjedi.com/index.cfm/2007/7/10/ColdFusion-8-Working-with-PDFs-Part-2
http://cfpdf.blogspot.com/
http://cfpdf.blogspot.com/2007/06/cfpdf-action-merge_27.html
http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=cfpdf_02.html -
Format-number,decimal not giving desired output for PO Print report XSL-FO
Hi All,
My requirement was to get the Unit price in european format which is 10.000,00
Iam getting it as 10000,00 but the client needs the thousand's seperator.
if have used the decimal seperator but iam getting the Unit Price value as 'NAN' when i submit it for an international language like Italian or Spanish
This is what i have done
set the decimal format
<xsl:decimal-format name="euro" decimal-separator="," grouping-separator="."/>
<xsl:value-of select="format-number(UNIT_PRICE, '#.###,####', 'euro')"/>
This gives the desired output when i select the US language.
While submitting through the conc request
If i change the Numeric char to '.,' by clickin on Language settings..It works great
I have tried to use the replace function but the syntax is not correct
format-number(replace('UNIT_PRICE',',','.'), '#.###.###.###,####', 'euro')
Any Help would be greatly appreciated.
Thanks
MirzaHi Mirza,
I'm struggling having the same problem. Have you found any solution?
Best regards
Kenneth -
Hello All,
I am facing a problem in Message Mapping. In the Arithmatic Category we have used the function Format Number. The Number Format is 0.0
Decimal Separator is (BLANK)
In this case If I input any value say 8 or 8.0 then the output should be 8.0. However, I am getting 8,0(COMMA Separator) as the output. This causes the Mapping to Fail.
This problem occurs on one landscape where as on the other landscape it works fine and gives the output as expected.
Can anybody help me on that?? Am I missing anything in configuration or are there some special settings for it??
Kindly help.
Regards,
Rohit KHi
if you put the decimal separator as blank then it will use the . as a decimal separator.
and when you use the ny other symbol in the decimal separator then it will use that sysmob as decimal separator.
so please check in ur format number properties what u ahve given.
Thanks
Rinku -
Save output of BIP report that uses etext template
Hi,
I have made a BIP report using etext template and when I click on View, it displays the data fine. But I want to save this as a text file with all the formatting intact. If I try to Export, the formatting goes haywire in the resultant txt file.
Can anyone advise me how to save this as a txt file without disturbing the formatting?
Thanks
MSHI ,
I'm new to Bi Publisher.Please help in creating the etext format. Can u exlpain me the step by step basic procedure.Is it a word or rtf format but while loading giving an etext file. Because only etext format can be burt to csv file. pleasse help me . maile me to [email protected] -
What are the " eText Template Commands" in R12 ?
Hello,
What are the " *eText Template Commands* " in R12
My requirement is upgrading payments 11i to r12
In 11i Addenda RMR record is Looping, So i need use that looping in eText template in R12.
Thanx,
<-- Raj -->You probably do want 'Other Standard LMSs' selected, unless you specifically want to track to one of the other options in that LMS drop-down, correct?
The issue you're finding is that it's using the 'MultiSco' path incorrectly?
It should be using the 'Program Files\Adobe\Adobe Captivate 7\Templates\Publish\LMS\Standard\SCORM' path?
I don't have CP8 setup yet so can't duplicate the issue.
If you're sure that's the problem, just backup the '\MultiSco\SCORM\1_2\Default.htm' and copy over the proper path/files from the SCORM directory... So if CP is going to insist on an incorrect path, at least you can put the correct file where it's going to grab from.
Or, of course, you can just swap out after publishing, right?
Meanwhile if indeed a bug, report it here:
Adobe - Feature Request/Bug Report Form
Maybe you are looking for
-
I have created a PDF form with field but for some reason I cant type in them
I have created a PDF form with field but for some reason I cant type in them
-
Does de-authorising reduce the authorisation count?
I have heard rumour that de-authorising previously authorised PC/devices doesn't actually reduce the activation count for ADE. I this true? I got a bit carried away when I 1st started and authorised 3 PCs at home and my bebook reader. My bebook reade
-
First let me say that I am VERY new to this and just learning Dreamweaver. I tried to take a class, but it really didn't help. Twice I asked the instructor a question and he told me he hadn't read that chapter yet. I am reading books and trying to le
-
I have pictures of the pop up to send you.
-
Help require for Clusterware installation
Hi, Following Oracle version was installed Oracle Database 11g Release 1 (11.1.0.6.0) for Microsoft Windows (x64) We have to enable ClusterWare option. Do we need to install the following Oracle again Oracle Clusterware 11g Release 1 (11.1.0.6.0) for