Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Export to PDF 10 Aug 2016 11:40 #14412

  • MorganL
  • MorganL's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 438
  • Thank you received: 53
I have a table in my component with a few views, the last of which is like a digital signature page.

I want to fire a process during the save of this view that will generate a PDF file of the table.

I have a view ready to go, which I can call using tmpl=component to strip out all the nonsence. I know where to fire the process from, but I need a little advise on the process

Step by Step

- Person clicks save on table.laststep view
- Save process for table.laststep fires

During
if (parent::save($data)) {

// Alter save based on LAYOUT
    switch ($_POST['layout']) {
    case "table.laststep":
    // process
    break;
};

Process for converting the page at view=table&layout=viewcontract&tmpl=component&id=xxx fires and creates a PDF of that view

NOTE : At this point the ID is already created, this process will NEVER fire on a new record

- PDF is saved as contract_xx.pdf

- If there is already an old version of that contract it is OVERWRITTEN (no version control required)

Any / All help appreciated
Morgan Leecy MCSE

Novell / Linux
PHP. MYSQL, Apache, node.js
Coldfusion, JQuery, HTML5
Joomla

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.068 seconds

For starters it's just so easy to design an app in a way that I'm used to i.e. database first then views followed by customization. The fork system is pure brilliance from a developer standpoint as I can override things and still add and update my projects with minimal effort! Truly amazing to be able to build components in Joomla using incremental refinement without having to do everything by hand. Thanks for the great tool! I am so much more productive now than ever and I can't imagine building components any other way!!!!
Dave (Forum)

Get Started