Hi All,
Is there any function we can use to add 'X' days to a date element in an RTF template ?
One way I can think of is deriving it in the data model but just curious if any functions available in format:date or so ?
Thanks in advance
Hello
You can use the
https://blogs.oracle.com/xmlpublisher/entry/groovy_date_functions
<?xdoxslt:ora_format_date_offset('2009-06-03',position(), '+')?> , as per blog example
RegardsGabriel
Many thanks for your response.. Found an other means just now with a bit of trial and error..
<?format-date:(xdoxslt:ora_format_date_offset(xdoxslt:ora_format_date(PRINT_DATE_TIME,'YYYY-MM-DD'),14,'+'));'DD MONTH YYYY'?>
Dear
Thank you for your feedback and also i'm glad that the issue has been resolved.
If one of the answers helped you or answered to your request kindly please mark the answer as Helpful or mark as Correct Answer
Regards
Gabriel
Hi Team,
I have this requirements: To Add 1 day to payment date in the rtf but exclude week end.
I come up with this conditions below but no output when tried to display the date.
--PaymentDate xml value is 2022-06-03 --
<?xdofx:if to_date(PaymentDate,'D') = 6 then
format-date:(xdoxslt:ora_format_date_offset(xdoxslt:ora_format_date(PaymentDate,'YYYY-MM-DD'),3,'+'));'DD MONTH YYYY' -- Output date is monday
else
if to_date(PaymentDate,'D') = 7 then
format-date:(xdoxslt:ora_format_date_offset(xdoxslt:ora_format_date(PaymentDate,'YYYY-MM-DD'),2,'+'));'DD MONTH YYYY' -- Output date is monday
format-date:(xdoxslt:ora_format_date_offset(xdoxslt:ora_format_date(PaymentDate,'YYYY-MM-DD'),1,'+'));'DD MONTH YYYY' -- plus 1 day
end if?>
Hi everyone, just found this thread today.
I just wanted to share the way I did it, which is basically the same:
Adds ‘x’ number of days to the given date_in field <?xdofx:date_in?>. Output is rendered in the same date format as that of ‘date_in’ field.
Example using 'HIRE_DATE'
<?xdoxslt:ora_format_date_offset(HIRE_DATE,1,'+')?>
I have a <PAYMENT_DATE>2024-02-26</PAYMENT_DATE> column in XML file and I am using this value I need to bring back previous sunday and Saturday dates in RTF templates , Is there any function not available to get day of the week
Where AI meets business outcomes Oracle AI World brings the Oracle community together to explore how AI and other technology innovations are driving real business outcomes across industries. Discover what’s new through: Mainstage keynotes to hear the latest directly from Oracle leadership Product demonstrations Customer…
I have been tasked with creating a run book for ESS jobs. Whilst the queries are centred on the ESS_REQUEST_HISTORY table I would appreciate any suggestions/best practice for implementing a set of reports
Hi,😊 I have a technical issue that I am struggling to resolve. I created an RTF layout, and the preview works correctly when using the BI Publisher Add-in tool. However, when I upload the layout in eText format, the generated report displays only question marks (???) instead of the expected data. I have not been able to…
hi Oracle team, Have a scenario: Country = A, then page 1 should have a notification for that country with no header/footer however page 2 onwards, the existing content with header/footer. but if Country != A then no notification and has to display existing one with the header/footer. Tried option A: Native word option…
Hi Oracle Community, I have a requirement in Oracle Fusion HCM Performance Management and would like to understand the recommended approach for BI Publisher. The business flow is as follows: A Manager logs into Oracle Fusion using their manager account. The manager can see the performance documents of their direct reports.…
I have Windows 64-Bit in my system and I have downloaded Oracle BI Publisher Desktop 64-bit. when trying to install Oracle BI Publisher in my system, I get error like "Set Word2007 flg failed" or "Please uninstall the current version using Add or Remove Program from the control Panel" But there is no program for Oracle BI…