How can I generate a new file/link static?

Im trying to figure out how to approach a problem. what I want to do is to generate a new file/link, perhaps using "cffile" or any other way.

Right now I have cse_newsletter.cfm, which looks like this (type of)

<html>
.......
<cfquery>
select ....
</cfquery>
select ....
<cfquery>
</cfquery>
.......
 <cfoutput>
      <h1>Starburst Star Award</h1>
     <h3>Winner: Department- #highest_dept_name_average#</h3>
     <h3>Average:  #hihest_dept_average# </h3>
     <h4>Runner-up: Department- #highest_dept_name_runnerup# </h4>
     <h4> Average: #highest_dept_name_average_runnerup# </h4>
  </cfoutput>
</html>

the query works and give me I want a correct output. (rigth now I use cfshedule to execute it, but every time I run it will overwrite the old data with the new) what he does, he gives me the data of the past month.

so every tiime it works should give me the data from last month.

I would like to do that whenever I click on transmission (maybe there is a better way to do it without submit) it will give me a static link/txt that contains the data.

I know that with cffile = "Write" he can give me a txt file (and this file can be replaced), but I would preffer so is easier for me a link on cse_newsletter.cfm which will output/display which is on the body now to the cse_newsletter.

Please give me any tips/suggestions, maybe an article I read online (have not found something that can help me)

This right is the cfshedule, right now is on the update, so sure it won't work with the update, but I don't think that with what I want, I can accomplish with cffile 'writing '.

<cfschedule action = "update"
    task = "TaskName" 
    operation = "HTTPRequest"
    url = "cse_execoffice_newsletter.cfm"
    startDate = "04/18/14"
    startTime = "11:19 AM"
    interval = "3600"
    resolveURL = "Yes"
 >

Thank you

I mean your cse_newsletter.cfm model can be designed to accept parameters to view a newsletter of a certain month and year. If it accepts URL parameters, then you can create a link to it like this:

http://mydomain.com/cse_newsletter.cfm?month=1&year=2014

And if the parameters are not passed, you could do that show the user a list of months and years (control for example via the selection list form) so that they can select the month and year they need. That's how he could design in any case. Unless your data is stored somewhere in a database, your model would never work for a scenario (last month), and it's a great limitation because no one can observe beyond newsletters. You may not write files to disc etc, because the model has just need to show correct information letter. You can create any link to the newsletter you need once it has been designed to accept parameters month and year (which are in turn to your CFQUERY tags to get the data).

Tags: ColdFusion

Similar Questions

  • How can I generate a new recovery key

    How to generate a new recovery key having lost it

    For Apple ID, you mean?

    Go to the Apple ID page, click on manage your Apple ID, login, if you have not already. Now, you can click the password and the Security item in the left navigation bar and click on replace lost keys. Follow the steps here, and your old made no valid recovery key, and a new creation.

  • How can I generate XMP sidecar files?

    Hello

    Do what you want will be the whole of the law.

    I'm trying to find a way to generate XMP sidecar for my files of Adobe Bridge's RAW DNG files. How can I do this? The reason why I asked is that my instructor really gets on my case because I'm not able to generate XMP files.

    Love is the law, love under will.

    Sincerely,.

    Jessica sideways

    Have never used DNG, but I understand that all the info is on the DNG file and there is no separate XMP file.

  • How can I create a new file interactively in LabVIEW 2011?

    I am trying to create a new binary file interactively in LabVIEW, but control of path only gives the opportunity to type the path name and the complete file (cumbersome for the user) or search for an existing file. I want to open a dialog box "New file", which will allow the user to navigate to the target folder, and then be able to enter the name of a nonexistent file to save the data of.

    The way I'm currently doing it is to create a TXT using Windows Explorer file "New text Document" pop up, then change the file extension for the new value... which is once again, very heavy.

    The only thing I've found online is that there used to be a "new File.VI" in an earlier version of LabVIEW apparently... but I can't seem to find it in 2011.

    You can create a new file using the Browse button.

    Your right click the file path control and check the settings in the menu "Options to browse?

  • How can I stop the AI files link in the design

    Hi all

    I noticed with the new versions of the AI if I use an element in a design (say a logo which is a tiff file) can remove this logo from my MAC file or move it to another folder, when I opened this design I still once he wants me to re-edit the link or find the file of the logo. Is there a way to get back to the old way and have the file of the logo to be included in the file HAVE, so I don't have this problem?

    And there it is, the magic Embed button lol

  • How can I get a 'new file' empty, for writing a letter. It seems impossible when I click on "file"?

    When I had aol 9.6 on my computer, I just clicked on 'file' and 'new', and a new empty page would come to write a letter, etc.. This is impossible with Firefox. Please notify. In addition, I can't download aol 9.6 l with Firefox. Comes to about 80% of the download and abandoned. Please let know us also.

    Kind regards

    Sheron

    Firefox is a browser to look at internet pages and not a file editor that you can use to write files.

    You can watch this extension to see if that meets your needs:

  • How can I send a html file exported from muse like breath of e-mail with pictures and links?

    My question:

    How can I send a html file exported from muse like breath of e-mail with pictures and links?

    I designed a 'Web site' in muse Adobe and exported in the form of html file. I don't know how to send my .html file in an email!

    Best,

    Nicole

    Thank you!

    I was actually able to publish muse about Business Catalyst and then use the generated html code to create a blast email in Mail Chimp!

  • How can I get the new tab to open all the way to the right when I use the link open in a new tab?

    How can I get the new tab to open all the way to the right of the tabs old when I use the link open in a new tab?

    Set the pref browser.tabs.insertRelatedAfterCurrent false on the subject: config page.

    To open the topic: config page, type Subject: config in the address bar (address) and press the 'Enter' key, as you type the url of a Web site to open a Web site.

    If you see a warning then you can confirm that you want to access this page.

    You can use the filter at the top bar of the on: page config to more easily spot a pref.

  • I am a new player. How can I check my SD files?

    I am a new player. How can I check my SD files?

    Hello Alexban,

    I got a new customer (on the same network) and having the same problem as you. It took a bit of "Violin" to solve this one, but basically here's what you do: -.

    Your homescreen launch your application by clicking on the tab background Center tray can find quick Office and launch it. This will essentially ask you if you want to receive updates etc. and take you to a site Web etc (don't worry open office is not an online application, it is built into your phone). Away Web site, close the browser window by pressing the menu on the right key lower and then tapping on the exit button to end the browsing session.

    Once you do this, you will see a file indicating the memory card and another who says that recent documents. From there, you type just the memory card icon and you get a complete disassembly of all your files.

    I hope this helps, and if you get stuck again just post another message and I'll look out for it and try to explain another way.

    Good luck and best regards - Roy...

  • files and folders: How can I load all my files and folders to my new account of my external hard drive?

    Who can help, I just put a new account on my computer and deleted the old account. I backed up the old files on my external hard drive. I want to know is how can I load all my files and folders to my new account of my external hard drive? I thank you for your time and knowledge have a very nice evening, Shawn

    Because it's a new account (even if with the same name), the restore procedure is unable to put files and folders in the same place, they came (because this place technically no longer - if yes, then the process is done and the transfer is complete). It can create a set of separate files (maybe even under a new user name, if it has been stored in this way).  If so, all you need to do is copy the data as you would copy any other files and folders (not the main files of the user profile themselves but the data in them) on the new files in your user account and who will take care of the transfer. Here is more information about the restore procedure which may help you in the process.

    Here is an article on the restore procedure:http://www.vista4beginners.com/How-to-restore-files to make sure you do this right.  It's a selective restore of a full or selective backup (not a full restore from a full backup) - but since you did a full backup, it matches your process more closely than would a full restore.

    This is a GREAT article on the backup and restore processes in Vista http://technet.microsoft.com/en-us/magazine/2007.09.backup.aspx , but he won't go into detail about the restoration process - considering almost as easy, of course.  But it teaches you a lot about what is possible and how to do it.  It also focuses primarily on the full backup process, but he did mention the full backup and restore process as well.

    Here is an article on the advanced use of restoration (during normal restore does not work):http://www.mayankraichura.com/post/2009/08/06/Avdvanced-Restore-via-Windows-Vista-Backup-and-Restore-Center.aspx.

    Restore files from a backup
    http://Windows.Microsoft.com/en-us/Windows-Vista/restore-files-from-a-backup

    Back up and restore: frequently asked questions
    http://Windows.Microsoft.com/en-us/Windows-Vista/back-up-and-restore-frequently-asked-questions

    I also found the following (but don't know if it of true or not):

    1. after the start of "backup and Restore Center."

    2. I chose "Advanced Restore"

    3. I was did not an administrator password... maybe because my account is an administrator account.

    4 choose "files from a backup made on a different computer.

    5. in the dialog box indicating "Select the location of the backup to restore", select "hard drive, CD or DVD...". »

    6. under the drop-down list box, select your drive/partition and continue

    7. If all the backups on your drive, it will show a list of them.

    8. in my case, he showed a backup, but in the backup location, it will show "backup location is not available."

    9. I was frustrated, but then I somehow just select this backup (Yes... even if he said that thebackup location is not available " ")

    10. and you press "next".

    11 guess what... no error!

    12. a window appeared asking me if I wanted to do a full restore, or I want to select specific folders or files.

    13. I selected the folders I wanted to restore and bingo... it their restored smoothly.

    14. so that the next time see a mistake, try to continue with him... ;)

    I don't know if this will help, but it does not provide much information about the process (when it works).

    I hope this helps.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • I've lost all my acrobat adobe Pro XI files during a reinstallation of win7.  How can I get the news I need to download and install Adobe Acrobat XI Pro?

    I've lost all my acrobat adobe Pro XI files during a reinstallation of win7.  How can I get the news I need to download and install Adobe Acrobat XI Pro?

    [Read https://forums.adobe.com/docs/DOC-7273]
    [Ask in the correct forum allows... Left the connections for specific program forum forum... MOD]

    https://Accounts.adobe.com/ , then click on Plans & products above to find a list of your programs and your serial numbers

  • How can I fix the problem of 'linked file' when opening file on other computers?

    How can I fix the problem of 'linked file' when opening file on other computers?

    The links must travel with the illustrator file. In other words, you can't send someone your page layout and not send them all the assets placed in the layout. However, you can embed links, but their incorporation will make your file much more available.

    Use the links Panel to incorporate images. Click on the small icon in the upper right corner of the control panel link drop-down list. I've included a screenshot.

  • How can I open an old file Freehand 9.0 in the new Illustrator?

    How can I open an old file Freehand 9.0 in the new Illustrator?


    Hi Parswell & Larry,

    I CS5.1 was the last version which has support for open files (F7 - F11) Freehand. Of the CS6, this feature has been removed.

    Kind regards

    Rambour

  • How can I generate my own InDesign ePub file without the encryption.xml file?

    My Bookstore (B & N) will not accept my ePub file because it does not want the encryption.xml file included. How can I generate a file InDesign ePub, for my own books, without him? Is there a box somewhere? I searched through the ePub export area and boxes of file information, no luck.

    Error message from PubIt.com B & N:

    We found a file name called encryption.xml in your container of EPUB, which refers to the part, or all, your file is encrypted. We do not accept any encryption in source ePub files. After the closure of this message, please remove the file encryption.xml your ePub and you can try to download your ePub file again.

    If you want to apply DRM to your title, go to Section 4, question H and select Yes. PubIt! apply DRM to your title once you have downloaded your ePub without encryption file.

    Thanks for your help...

    Sorry I wasn't clear. Do not embed fonts at all. No matter what.

    Take care, Mike

  • When a file turns to an ink file, how can I recover the functional file

    When a file turns to an ink file, how can I recover the operational files. ??

    Right-click on the link, check the location of the open file, find the file and either make a new shortcut or double-click the executable.

Maybe you are looking for