* repost * add & lt; cfloop & gt; content of a key of the structure

Another question from a previous post with the same name as Mr. Bracuk helped me with. Once again the relevant information.
I'm trying to create a structure that contains all the dates of a particular event within its elements. Would look like a Visual representation: EventID:Day1:2008 - 02-01
Day2:2008 - 02-02
Day3:2008 - 02-03.
My query:
< CFQUERY datasource = "" #sDSN # "name ="qEvents">"
SELECT event_id,
event_startdate,
event_enddate
of hs_event
< / CFQUERY >

My code:
<! - complete the structure of the event by throwing a loop that will go from the startdate column event_startdate and go in the column hs_event_enddate, incrementing by 1 for each "day" between these 2 dates. - >
< cfset ObjEvents = structNew() >
< CFOUTPUT >
< request CFLOOP 'qEvents' = >
< CFSET ObjEvents [currentrow] = qEvents.event_id >

< cfset ThisDate = event_startdate [currentrow] >
< cfset nCounter = 1 >
< CFLOOP condition = "ThisDate LTE [currentrow] event_enddate" >

< CFSET nCounter = nCounter + 1 >
< CFSET ThisDate = DateAdd ("d", 1, ThisDate) >

< / CFLOOP >

< / CFLOOP >
< / CFOUTPUT >

Mr. Bracuk did me this far. But, I'm not at all familiar with the CFSCRIPT tag and just a little familiar with the nature of the structures are very, very new to programming >. I'm assuming from my reading that I need to nest an EventsID structure within the structure of ObjEvents that I created and from there, elements named pairs of value of day1 = ActualDay. I really appreciate your help! Dan

It was my previous suggestion.


objEvents. #currentrow # = eventid [currentrow];
ThisDate = event_startdate [current_row];
CTR = 1;
While (ThisDate lte event_enddate [currentrow]) {}
objEvents. #currentrow # .date #ctr # = ThisDate;
CTR = ctr + 1;
ThisDate = DateAdd ("d", 1, ThisDate);
}

This line,
objEvents. #currentrow # = eventid [currentrow];
is equivalent to this line,

and both are probably wrong. Mine is maybe wrong because it would start a variable name with a number, and your rating table for a structure instead of the dot notation. Try this:
.
This should give you things like
ObjEvents.Row1 = 123
ObjEvents.Row2 = 456, etc.

In your inner loop, where I suggest this:
objEvents. #currentrow # .date #ctr # = ThisDate;
you want to

This should give you things like
objEvent.Row1.date1 = 2008-01-01
objEvent.Row1.date2 = 2008-01-02
etc.

Do fragmented way and watch your results with

Tags: ColdFusion

Similar Questions

  • you attempt to add a web form of Business Catalyst to my site Web of Adobe Muse (via insert html) and the shape is cut all the content below where to place the html area.

    You attempt to add a web form of Business Catalyst to my site Web of Adobe Muse (via insert html) and the shape is cut all the content below where to place the html area. I tried the basic troubleshooting and it's only when I insert a form of Catalyst Business that my web page is cut, where is the bottom of the form. I use this code when you insert form BC in Muse,

    "< div class ="bulletin of information-form"> < form name ="catemaillistform58787"onsubmit ="return checkWholeForm58787 (this)"method ="post"action =" http://theincitejournal.BusinessCatalyst.com/CampaignProcess.aspx?ListId=53681& OPTIN = true & PageID = / index.html"> < div class ="form"> < div class ="item"> < label for ="CLFullName"> full name < / label > < br / > < input class ="cat_textbox_small"type ="text"name ="Full name"id ="CLFullName"maxlength ="255"/ > < / div > < div class ="item"> < label for ="CLEmailAddress"> E-mail address < / label > < br / > < input class ="cat_textbox_small"type ="text"name ="EmailAddress"id = '" "CLEmailAddress" MaxLength = "255" / > < / div > < div class = "item" > < label > Enter Word verification in box below < / label > < br / > {module_captchav2} < / div > < div class = "item" > < input class = "cat_button" type = "submit" value = "subscribe" id = "catlistbutton" / > < / div > < / div > < script type = "text/javascript" src = "http://theincitejournal.businesscatalyst.com/CatalystScripts/ValidationFunctions.js" > < / script > < script type = "text/javascript" > '

    The only settings I did took the H3 header on opt-in and page navigation after the action to get rid of the opt in BC function as default. I tried to download the source code as well and I'm having the same problem. The web Page is here " copy " and a version of what I was creating the page to look like here is ' home ' As you can see, the 'House' version allows me to scroll past where I would have placed the shape box while the 'copy' stops at any user to parade before. I have called the shape slightly from the "development" of British Colombia under the style sheets tab and still tried to trouble shoot and get rid of the code to see if it affects something and it did not add style. For some reason only the HTML to the form is but I cannot understand what the section of the code would do that. Any ideas?

    I see that you have inserted a script tag open that you forgot to close, which generates errors on the page and prevent it from be returned correctly. You should ensure that the code that you insert in the Muse is syntactically correct.

    - Abhishek Maurya

  • How can I add an additional cc field? I have exhausted the 3 listed, but have to send more people

    Try to add more than 3 people to an email, once exhausted the 3 to/cc/BCC where and how can I add extra?

    As you have discovered there are three visible TO/Cc/BCC fields.
    but this does not mean only three are available.

    These fields even act as if you were typing an email.
    When you want a new line, you can click the enter/return key.

    This type or select e-mail address and press ENTER to switch next to the box.
    When you are on the last entry 'visible', press the enter/return key, and the other one becomes available.

    You should see a scroll bar appears on the right side to see the previous entries.

    You can also just pull down from the top of the section of e-mail content to reveal more if you want to see everything. See picture to show this.
    Put the mouse cursor over the edge to put in place a double arrow head.
    left click and hold to get the edge.
    Slide down to reveal more and release the mouse when it is happy.

  • I can't locate the contents of what was in the folder 'my documents '.

    I recently upgraded to vista XP, I can't locate the contents of what was in the folder 'My documents' anywhere. When these files is passed or they deleted in the upgrade?

    In the Security tab, add you in its own right. Go to advanced and control who has access.  Add yourself (if not there) and delete all others.  Then come back and go to the tab of property and take over the case.  Here are a few tips and information on permissions and provides which may help.  But take courage - it seems that we have to fear that found the lack of file and it should be as a matter of time before we can access despite the problems affecting permisions them.  You will have to perhaps give you all the rights and take in hand the folder of the user himself access - but let's see if it works this easier way first (or if it does not, we invite you to try to change the property on the users folder and the permissions, even if she is used to.  In this case, do remove other USERS from the permissions section.

    To view your permissions, right-click on the file/folder, click Properties, and check the Security tab.  Check the permissions you have by clicking on your user name (or group of users).  Here are the types of permissions, you may have: http://windows.microsoft.com/en-US/windows-vista/What-are-permissions.  You must be an administrator or owner to change the permissions (and sometimes, being an administrator or even an owner is not sufficient - there are ways to block access (even if a smart administrator knows these ways and can move them - but usually should not because they did not have access, usually for a very good reason).)  Here's how to change the permissions of folder under Vista: http://www.online-tech-tips.com/windows-vista/set-file-folder-permissions-vista/.  To add take and the issuance of right of permissions and ownership in the right click menu (which will make it faster to get once it is configured), see the following article: http://www.mydigitallife.info/2009/05/21/take-and-grant-full-control-permissions-and-ownership-in-windows-7-or-vista-right-click-menu/.

    To resolve this problem with folders, appropriating the files or the drive (as an administrator) and give you all the rights.  Right-click on the folder/drive, click Properties, click the Security tab and click on advanced and then click the owner tab.  Click on edit, and then click the name of the person you want to give to the property (you may need to add if it is not there--or maybe yourself). If you want that it applies to subfolders and files in this folder/drive, then check the box to replace the owner of subcontainers and objects, and click OK.  Back and now there is a new owner for files and folders/player who can change the required permissions.  You can change now switched to read-only (even if the main folder indicates that they are always read-only - you can access yourself as the owner).  You can keep them in read-only to other users, customers and administrators even (although they can support themselves and access, if they wish, and it is really not that you can do to stop it except protect the file with a password by using a 3rd party product.)  Here is more information on the ownership of a file or a folder: http://www.vistax64.com/tutorials/67717-take-ownership-file.html.  To add take ownership in the menu of the right click (which will make it faster to get once it is configured), see the following article: http://www.howtogeek.com/howto/windows-vista/add-take-ownership-to-explorer-right-click-menu-in-vista/.

    Good luck and I hope this helps!

    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.

  • PeopleSoft content Group Type/groups in the profile management

    Hello Experts,

    We know all that we have the ability to create and then group content types followed by members of the group in the profile of groups of content management.

    We are in PS 9.1 and there is a requirement for business, that we must answer. Company wants us to create specific content items to countries under a content type.

    For Ex - if the content type is 'Skills' then the items must be created for each country so that while adding in the competency profile, a user can only see the desired elements that belong to his country. Here's how we did it:

    Content type - SKILLS

    Type of group - content GBL

    Content group - GBR, IND, DEU

    Members of the Group of content ANALYTICS, COMMUNICATION (GBR)

    Content of the members of the Group - DEVELOPMENT, MARKETING (IND)

    We created above setup of profile management-> catalog content.

    However, we do not know how to associate the Type of group/content content to profile types so that when HR adds skills and profile, he or she is able to see only the items you want.

    For example, when the HR user who belongs to the GBR country, cannot see the ANALYTICSCOMMUNICATION skills

    Please return back with your answers. This can be achieved with a customization, but we do not want to go with this if it is possible with the delivered features.

    I found the answer to this question.  Its very simple, there is nothing to configure when HR user adds content items quick page automatically gives options to choose the content item based on a Group of Content Type or content group. It goes the same for workers who carry out transactions through ESS.

    Thank you

    Main Concepts HRMS PeopleSoft

  • Table of contents, do not update when the project is saved

    The Table of contents is not save when the project is saved. To view the saved changes, I have to close and reopen.

    I'm sorry, so sorry. I forgot to add that my esteemed colleague and fellow Adobe Community Expert Peter Grainge has some fabulous on its site information if you go with merged WebHelp.

    Click here to see

    See you soon... Rick

    Useful and practical links

    Wish to RoboHelp form/Bug report form

    Begin to learn RoboHelp HTML 7 or 8 days - $24.95!

    Adobe Certified RoboHelp HTML Training

    SorcerStone blog

    RoboHelp EBooks

  • I installed "downloadhelper". It shows in the list of add-ons/extensions, but it does not appear in the toolbar

    I installed "downloadhelper". It shows in the list of add-ons/extensions, but it does not appear in the toolbar. I reinstalled foxfire, various foxfire files updated, tried other modules, but none of this helps.

    Have you tried to click on "Restore default settings" in the palette to customize?

    Have you checked the settings in the VDH extension?

  • Addition of Google Chrome, now Safari does not open, impossible to link electronic mail links.  Just received message "Safari is closed."  Tried deleting 3rd party add ons. Is went into preferences, Safari is the default browser, but it does not open.

    Add Google Chrome, now Safari opens Cannot link e-mail links.  Just received message "Safari is closed."  Tried deleting 3rd party add ons. Is went into preferences, Safari is the default browser, but it does not open.

    Third party extension and plug-ins?

    If Safari is slow, unresponsive, which closes unexpectedly, or has other issues

    The problem may be caused by a Safari Extension, Internet plug-in or another add-on.

    The safari Extensions, Internet plug-ins, and other modules are designed to improve or customize the browsing experience. Modules are widely available on the Internet, and some are installed as part of an application or other software. If you have Add-ons installed, an add-on might be at the root of the issue.

    If the problem is the unwanted pop-up windows, advertisements and graphics while surfing on the web, discover how to remove the ad-injection (adware) from your Mac software.

    Disable the Safari Extensions

    You can disable Extensions Safari to learn if all are causing the problem.

    1. In the Safari menu, choose Preferences.
    2. Click the Extensions icon, and then select an extension from the list.
    3. Uncheck the box enable disable this extension.

    If turning off an extension solves the problem, look for updates of the extension by clicking Update in the lower left corner of the window. Or remove the extension by clicking on the button uninstall.

    Remove Internet plug-ins and other add-ons.

    You can remove Internet plug-ins and other add-ons to see if everything is the origin of the problem. To find them, quit Safari and open these folders in library:

    • The library folder at the top level of your hard drive. Open it from the Finder by choosing go > go to folder in the menu bar. Then type /Library and then click OK.
    • The record library in your home folder. Open it by organizing the Option while choosing go > library in the menu bar.

    The folders in the library contains the following folders for modules. Move all the files in these folders to the trash.

    • Internet Plug-Ins
      Do not remove the default Browser.plugin, nslQTScriptablePlugin.xpt, Composer.webplugin of Quartz or QuickTime Plugin.plugin.
    • Input methods
    • InputManagers
    • ScriptingAdditions

    If the removal of the files in these folders solves the problem, quit Safari again and gradually put the files until you find the one at the origin of the problem:

    1. Open the Recycle Bin and select one of the files that you removed. Chose file > back up. The file back to its folder.
    2. Open Safari and see if the problem returns.
      • If the issue is returned, you have identified the add-on causing the problem. Do not use or contact its manufacturer for an updated version.
      • If the question does not return, quit Safari and put back another file.
  • How to add a page to landscape in a Portrait in the Pages document

    Hello!
    I need to add a page to landscape in a Portrait in the Pages document and cannot find how to do that for a single page and any thing.

    Thanks in advance for your clues!

    Camille.

    Export your page landscape in PDF format. Drag and drop this landscape PDF back into your document Portrait where you want it placed. With her still selected, click the reorder, text wrapping set to None and then use the rotation below on the Layout Panel to rotate your PDF to 90 ° of article.

    You may need to set the resize to the size of origin and put proportional scaling.

  • Cannot run javascript - options/content is even not see the javascript

    try using the options/content - does not yet show the javascript option. I uninstalled the program and reinstalled and get the same result. using xp.

    It is a global problem that JavaScript isn't running on any site? The power setting is always available in the topic: configuration preferences editor.

    (1) in a new tab, type or paste Subject: config in the address bar and press ENTER. Click on the button promising to be careful.

    (2) in the search above the list box, type or paste java and make a pause so that the list is filtered

    (3) If javascript.enabled is in bold and set to false, double-click it to activate it return true. It takes effect immediately, but you will need to reload the problem pages, so Firefox reads scripts.

    That repair or are sites remains a problem?

    One way that your normal default preferences could be changed is an extension, and another by external software, creating a user.js file. If this problem persists, you can analyze these two.

  • Even if some plugins show 'disabled' on the list of the Add-ons Manager, can they be removed completely from the list?

    After downloading RealPlayer to view a particular item, I decided that I didn't want RealPlayer after all. 5 plugins associated with the download are listed in the Add-ons Manager and I managed to disable all the. But there is no apparent ease to remove them from my browser. Can they actually be deleted completely from my system?

    You must activate the plugins on the tools > Modules > page of Plugins to make them appear on the topic: plugins page.

  • After I restart my iMac and double-click on the hard drive, a pop up appears with this message: 'the 'Hard drive' file cannot be opened because you don't have permission to view its contents.'.  What is the problem?

    After I restart my iMac and double-click on the hard drive, a pop up appears with this message: 'the 'Hard drive' file cannot be opened because you don't have permission to view its contents.'.  What is the problem?

    Is the name of an external drive or internal one?

  • I would like to import the contents of an audio book on cd for my audiobook file into iTunes.  How can I transfer content song (in iTunes) to the audiobook file lists?

    I would like to import the contents of an audio book on cd for my audiobook file into iTunes.  How can I transfer content song (in iTunes) to the audiobook file lists?

    Go read the information, click on the 'Options' tab, then change the drop-down list of "sort of media" to "Music" to "Audiobook". That worked for me, I hope that it helps you also.

  • I can't download the application for mac windows phone. The message: you are interested in the content is now available in the store. How can I synchronize microsoft limia and macbook?

    I can't download the application for mac windows phone. The message: you are interested in the content is now available in the store. How can I synchronize microsoft limia and macbook?

    Contact Ms and ask them.  Only they dictate where their application is made available.

  • Removal of the structures while maintaining the content

    Hello.

    I have a case with two case structure.  I have now decided that a case is not necessary.  I deleted the content of the case.  Is it possible for me to remove the case structure while preserving the content of the good deal as the only remaining code?  I am aware of the ability to cut the right code, the removal of the structure and then repasting the right code in the empty space; However, I am a bit hesitant to do so because of the possibility of losing some connections.

    Thank you.

    Making the case that you want to keep visible, right-click in the structure and select 'delete case Structure '.

Maybe you are looking for

  • Cannot start after the formatted NTFS partition

    Option to boot OS X suddenly absent after that I formatted the partition NTFS (bootcamp) of Windows installation. I read many previous question in many Web site and I tried to fix it in disk utility, but it cannot go up more. user mode single launch

  • execution/multithreading helps

    I'm analyzing a data under labview professional 2d table updates data at 20 Hz or more.  I'd like to run both a 'short' (operations of addition may be 500) calculation and a long (maybe 0, 5-1 sec processing time?) calculation, with the short a updat

  • Screnshoots to BlackBerry World

    Hi, I need to take some screens of my application to use the blackberry World. I want to know if there is a way to remove screnshoots Simulator as with the Simulator in XCode iPhone. I use OS x to develop. Thank you.

  • WMP library is corrupted

    In WMP, the songs on the album are incorrectly shown be distributed between the two artists.The correct artist has 1.7 securities but some other artists has the rest of the beaches 8.11.I see that all the physical files are in their correct places. I

  • Reviews of blackBerry Smartphones PDF files

    My Bold 9700 does not consider the PDF files from the file browser or links.  It seems that this is not a native function.  If Yes... What are the free options or software comercial? Adobe does not seem to offer anything to the BlackBerry or the othe