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
Learn how to deploy an AI Data Platform agent, register it to the AI Registry, and introduce it to business users through Agent Hub. This session covers how to prepare an agent for deployment, configure endpoint access and authentication, invoke a deployed agent, and monitor it after deployment. The session also introduces…
hi, We are in ebs R12.2.10 version using Oracle BI Publisher reports. Is support for BI publisher ending soon? what happens to Custom reports? Rgds, Shahnawaz
Hi , We are developing a BI Publisher report to retrieve only Learning Initiatives. We are currently using: WLF_EVENT_ASSIGNMENTS_F WLF_EVENT_ASSIGNMENTS_F_TL WLF_ALL_LEARNING_ITEMS_V WLF_ASSIGNMENT_DESTINATIONS_F We are filtering EVENT_TYPE = 'ORA_REQUIRE_ASSIGNMENT'; however, the results also include other assignment…
Hi Experts, I have a report with simple SQL but large output (140M). Its output file was ,xlsx base on an rtf templete. It always takes time to run. May I know is there any good way to reduce the ruing time of it ? Thanks in advence! Weutao
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…