TOPIC:

Exporting Records in PFD (Page Breaks) 1 year 5 months ago #260455

  • Topic Author
  • ALRA1
  • Offline
  • Expert Breezer
  • Expert Breezer
  • Posts: 175
  • Thanks: 0
Hi Tihana,

1. I've added to the end of the table tag (</table>), but it does not see to work.

I looked at the old file from a few years ago and this was added to the end, but it did not work:
<div style="page-break-before:always">&nbsp;</div> 
<?php	
}
?>

2. Is it possible to replace the Table Title from
<h2><?php echo $rec->submitted; ?>, <?php echo $rec->id; ?></h2>

To the submitters name?

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

Exporting Records in PFD (Page Breaks) 1 year 5 months ago #260458

  • Mirec's Avatar
  • Mirec
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 3262
  • Karma: 2
  • Thanks: 160
Hi,

in the attached file, I send you the export_php file which has a page break.
You can import that file instead of your export_php file in your Joomla root (please make a backup for your file) and then test how works.
I've tested it by myself and everything works well.

Let me know the result! :)
Regards!
Mirko

File Attachment:

File Name: export_pdf.zip
File Size:1 KB
Attachments:

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

Last edit: Post by Mirec.

Exporting Records in PFD (Page Breaks) 1 year 5 months ago #260459

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 11860
  • Karma: 3
  • Thanks: 765
Hi,

1) Mirko added example

2) like this:
So, in short, you can get user data the following way.
<?php $user = JFactory::getUser();  ?>
              <td>
			<?php echo $user->name; ?>
		</td>
But user need to been logged for this

Regards,
Tihana

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

Exporting Records in PFD (Page Breaks) 1 year 5 months ago #260460

  • Topic Author
  • ALRA1
  • Offline
  • Expert Breezer
  • Expert Breezer
  • Posts: 175
  • Thanks: 0
Thank you Mirko.

Thanks, Tihana. Is there a way to pull in the element where I collect the name of the submitter? (i.e. FullName)

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

Exporting Records in PFD (Page Breaks) 1 year 5 months ago #260462

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 11860
  • Karma: 3
  • Thanks: 765
Hi,

if I understood you correctly, then you can add it in element for name->Propertis->value like this:
<?php $user = JFactory::getUser(); return "$user->name"; ?>

For this user must be logged in

Regards,
Tihana

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

Exporting Records in PFD (Page Breaks) 1 year 5 months ago #260465

  • Topic Author
  • ALRA1
  • Offline
  • Expert Breezer
  • Expert Breezer
  • Posts: 175
  • Thanks: 0
Thanks Tihana,

Actually, what I wanted was instead of the date and time at the top of the PDF export was the name of the person who submitted the form. The PDF I was referring to is the once available in the records section
<tr>
<td colspan="2" bgcolor="#cccccc" align="left" valign="middle">
	<h2><?php echo $rec->submitted; ?>, <?php echo $rec->id; ?></h2>
</td>
</tr>

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

Moderators: ForumSupport
Time to create page: 0.052 seconds

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!