Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...OnyakTech Custom FormsOnyakTech Custom Forms
Previous
 
Next
New Post
4/20/2015 12:55 PM
 

I'm using OnyakTech Custom Forms to create a form which generates a PDF via a PDF template.

The issue that I'm trying to address is to make sure that each PDF has a unique name, but I don't have a value in the form that I can guarantee will be unique. And I'd like to know what the PDF name will be when it is created.

If there was a default value of Ticks:Now that could be set, that would work.

Any suggestions?

PS. I didn't see any Forums on the OnyakTech site. I do realize this is a 3rd party module.

 
New Post
4/20/2015 1:48 PM
 
Figured out a solution.

Have a field whose default value is:

select replace(convert(varchar, getdate(),102),'.','') + replace(convert(varchar, getdate(),114),':','')

 
New Post
4/20/2015 2:09 PM
 

Hi Mike, I know you already found a solution but I wanted to provide more details in case you wanted to improve on it or add new features to make this easier in the future depending on what you need. 

You shouldn't need to worry about unique files names for the PDF documents created by the OnyakTech Forms module.  The Forms module handles this for you.  However, if you want control over it then you can also use the tokens in the file names by setting the file name string in Display Setup.  You can use tokens that reference controls in your form or the current user and environment.   For example, you can use the tokens for the current date and time or the user name as part of the PDF file name that is created.

A screen shot showing the File Name Format is shown on http://dnnforms.com/Advanced-Forms/PD...



Professional DNN Extensions, custom solutions and mobile apps since 2003.
www.OnyakTech.com
 
New Post
4/20/2015 2:39 PM
 
Chris: If a PDF is generated AND the results are stored in a database, does the database record include the PDF file name? That's what I really wanted.

Also, in Forms 6.3.1, there's a pretty annoying bug when you are pumping the form results into a PDF template. Anytime you modify the Display Setup of a form, you MUST choose the PDF Template again or else the value that was saved is stored (the file selection drop-down doesn't show the currently applied template).
 
New Post
4/20/2015 3:09 PM
 

No it does not store the PDF file name.  Only files uploaded directly into the Form (using the File Upload control) are stored in the database.   Files generated from the Form content are not stored in the database.

I'll add that into the module, let me know if there are any other features you are looking for. 

In regards to the PDF Template issue you noted, that has been fixed.  The current BETA has the patch for that. 



Professional DNN Extensions, custom solutions and mobile apps since 2003.
www.OnyakTech.com
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...OnyakTech Custom FormsOnyakTech Custom Forms


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out