Batch processing and preventing timeout in Laravel - laravel

In my controller, I need to generate a very data-extensive report. I would need to access about 150-200 fields in my SQL Server database, do some calculations, generate a PDF and have it available for download.
Is there a "batch" process or similar concept in Laravel that would help me with this? I need these reports to be created ad-hoc whenever a user decides and ideally display a progress bar while the report is being generated.
Thanks for any help or advice

Related

analysis is not showing on OBIEE12c?

After uploading RPD, when I'm trying to create report nothing in UI is showing except report job and action, why it's happening like that?
That can't happen after a simple RPD upload since the RPD doesn't control permissions and you clearly lost permissions.
You must have used a BAR file or done something to the security.

How do I send automatic pdf mails taking values from DB

Hello guys I need help here,
I want to send PDF mails to users on a monthly basics. but the PDF will have values from the db. so each users has a different content from another user all taking values from db. If i can't achieve this perfectly on Laravel I need another language that can help me achieve this thanks.
$schedule->command('custom:command')
->monthly();
You can achieve anything in Laravel which you can achieve in PHP :) and as far as web development is concerned, you can achieve anything in PHP :)
However, I am not sure what exactly is your question about so I will answer all aspects of sending an email with dynamic pdf.
Get fillable PDF
First of all, you need fillable fields in your pdf in order to generate a dynamic pdf in run time. If you dont have fillable fields in your pdf, you can create them using any online tool. One example is: https://www.pdfescape.com/
You can also use Adobe to do so if you like.
Create a PDF with dynamic data
Once you have your empty, fillable PDF, then you can populate the data in it using PDFTK library. Of course, you will have to install this tool in your Server in order to use it.
I recommend using it directly, running exec or similar commands in PHP. However, if you are not comfortable, you can use various Pdftk wrapper, available in Laravel. One example is: https://github.com/mikehaertl/php-pdftk
I myself prefer using exec directly from PHP. Here is a REALLY GOOD tutorial for that: https://www.sitepoint.com/filling-pdf-forms-pdftk-php/
Send the email
Well once you have your PDF generated and saved on Server, all you need to do is attach it with your email and send. You can find all about attachments in Laravel here: https://laravel.com/docs/5.1/mail#attachments
Run it via cron
If you have to do it on a regular basis. I advise you create a cron on your Server. There are various ways to do that. I advise you do it via cPanel, if you have one on your server of course as it provides very user-friendly way of creating crons. If not, you can also use terminal to edit the cron files in Linux Server.
I do not recommend using Laravel inbuild scheduler because it has known issues.
Well that's it, voila..that's the whole process of sending dynamically generated PDFs via email on regular basis.
Good luck!

PL/SQL Content to PDF print in Oracle Apex 5.1.3

I designed invoice by PL/SQL content with HTML and CSS but I can't set up properly page. And I can't print in PDF format.
If you just started with Apex, perhaps you'd rather use its Wizards which will help you in creating process. Although you can create a page using HTML commands - why would you?
Invoice is, I presume, stored into a table. If that's so, I'd suggest you to create a "Report with form on table" page - it'll create
interactive report, which will let you browse through all invoices you created
form, which will let you create new invoices, update or delete existing ones
Try it; it shouldn't be difficult at all.
As of printing reports in PDF format: here's what I (we) do:
I create a report using Oracle Reports Builder
put a RDF onto our IAS (Internet Application Server) machine
place its entry into the CGICMD.DAT file
call the report from Apex using a dynamic action on a button, using 2 steps:
PL/SQL, which composes URL (and adds parameters' values)
JavaScript, which calls the report (using window.open)
I understand that not everyone has the IAS up and running; it isn't trivial task at all. Quite some time ago, for my own amusement, I installed Apache Tomcat and JasperReports, just to see if I can make it work. I did. However, as my company uses IAS & Oracle Reports, I abandoned that approach.
Someone else might have other suggestions; wait a little bit for them to answer.

How to display last refresh status of OBIEE Report in Another website?

I have around 20 OBIEE Reports and these Reports automatically refreshed after a certain time period (different for each report). Users navigate to these reports through my SharePoint site home page. Now, I want to display which report is refresh at time in SharePoint page.
Is there any way I can achieve this capability?
Please let me know if requirement is not clear.
Not sure if you comprehend how OBI and analytical systems work but let me make something clear:
It is NOT the "OBIEE Report" getting refreshed.
First of all because OBI uses "Analyses" whereas BIP uses "Reports".
Second and most importantly it is because the DATA SOURCES are refreshed. The "analysis" is just a visualization container and nothing else. OBIEE does not store or persist data.

Oracle APEX 4.2 How to store string and access from any page?

I'm a complete noob and have only been learning this since last night.
I have an APEX application with a few forms and reports that I have managed to get working correctly if I provide the exact SQL statement in the source box. What I want to do is be able to set a variable that I can access from any page.
I want to be able to return its value to use in my SQL source clause in my forms when the pages load and I also want to be able to assign its value maybe via a process, branch or button (i'm still learning what they are propperly) on any page.
I've been at this for hours now and the tiny amount of help I can find on this is completely beyond me and its driving me mad, so if anyone can help me figure out how to do this it would be hugely appreciated.
You can create one application item (Shared Components -> Application Items) and then set it from your PL/SQL code using APEX_UTIL package (apex_util.set_session_state('TESTE', 'Hello').

Resources