STUCK - indexing a list and with the index as a variable

Hello world. I imagine that this is not a difficult task, but I can't find any information on exactly what I need to accomplish.

Let's say I have a table with fruits. The name of the fruitid and fruitname fields.

I have query select * from fruit by fruitname. Then I take this data and create a list (or a table?) with the fruitnames.

What I want to do is list the results with their place in the list or a table. Not their fruitid. For example:

1 Apple
2 Orange
3 pears

Where the 1,2,3 is the order of the list and not any recovered data form the query. I need to use the 1,2,3 as variables separately form the Apple, Orange, pear.

I've been search in the online help, CFWACK and search for information about indexed lists is cheating on me. I was looking at listgetat but the results will be different each time and it just didn't seem like the solution ListGetAt returns the variable... for example:
Apple Apple
Orange Orange
PEAR PEAR

Any thoughts? Any help in a new direction is welcome. I use CF7.01 on WinServer2003 and SQLServer2008.

Google "".  Find the cfml reference manual page and read it.  Pay special attention to the variables are produced by cfquery.

Tags: ColdFusion

Similar Questions

  • Can we use type multiset and with the clause the two

    Please let me know how to use the multiset type and with the clause.

    You need more inlining, as for example in:

    SQL> select *
    from table (cast (multiset (select *
                                from (with t as (select deptno from dept)
                                      select * from t)) as sys.dbms_debug_vc2coll))
    /
    COLUMN_VALUE
    ----------------------------------------
    10
    20
    30
    40
    50                                      
    
    5 rows selected.
    
  • Part of the browser screen will flash intermittently and when trying to select a link out of my drop-down lists, click with the mouse selects the link above it.

    These problems occur only when you use Mozilla Firefox. I am using a Lenovo Thinkpad:
    1 site Web seem to flicker on the images, videos, maps, when the mouse moves around the screen.
    2 pointing the mouse over a link in the browser and a left click activating the link above (if it exists)

    Do not experience problems with google or ie. It started a few days ago.

    Thoughts?

    Hello paulo.eichelberger, try Disabling graphics hardware acceleration.

    You will have to perhaps restart Firefox for it to take effect, so save any work first (e.g. you compose mail, documents online that you are editing, etc.).

    Then perform the following steps:

    1. Open the Firefox Options window as follows:

      • Click the menu button

        then select Options.

    2. In the Options of Firefox window, click the Advanced tab, and then select general.
    3. You will find in the list of parameters, the checkbox use hardware acceleration when available . Clear this check box.
    4. Now restart Firefox and see if the problems persist.

    In addition, please check the updates for your graphics driver by following the steps in the following knowledge base articles:

    This solve your problems? Please report to us!

    Thank you.

  • Computer is stuck on "Microsoft Corporation" logo with the on-screen scroll bar, a green.

    Hello

    I had difficulties to get my computer past the "Microsoft Corporation" logo with the on-screen scroll bar, a green one.

    I searched the forum and found others who have had this problem. I tried some of their proposals, but eventually Windows does not run on my PC.

    It seemed a moment have solved the problem, but my AVG security had been removed. When I arrived the AVG security working properly my computer starts a few times more, but now I'm right back where I started.

    Is it possible for me to turn this thing on, but not in Mode 'Safe '? I am sick and tired of trying to connect, or try to understand this problem.

    I wish I could just take my computer to where I bought it and get my money back. Unfortunately, the warranty period is exhausted on my PC, so I'm stuck with it.

    I use Windows Vista Home Premium 64 bit, I don't know if that makes a difference?

    Any suggestion would be appreciated.

    fq283

    Follow these steps to try to solve your problems of boot.

     

    Restore point:

    http://www.howtogeek.com/HOWTO/Windows-Vista/using-Windows-Vista-system-restore/

    Do Safe Mode system restore, if it is impossible to do in Normal Mode.

    Try typing F8 at startup and in the list of Boot selections, select Mode safe using ARROW top to go there > and then press ENTER.

    Try a restore of the system once, to choose a Restore Point prior to your problem...

    Click Start > programs > Accessories > system tools > system restore > choose another time > next > etc.

    http://www.windowsvistauserguide.com/system_restore.htm

    Read the above for a very good graph shows how backward more than 5 days in the System Restore Points by checking the correct box.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

     

    If the system or Mode restore safe work not and you do not have a Microsoft Vista DVD, make a repair disc to do a Startup Repair:

    Download the ISO on the link provided and make a record of repair time it starts.

    Go to your Bios/Setup, or the Boot Menu at startup and change the Boot order to make the DVD/CD drive 1st in the boot order, then reboot with the disk in the drive.

    At the startup/power on you should see at the bottom of the screen either F2 or DELETE, go to Setup/Bios or F12 for the Boot Menu.

    When you have changed that, insert the Bootable disk you did in the drive and reboot.

    http://www.bleepingcomputer.com/tutorials/tutorial148.html

    Link above shows what the process looks like and a manual, it load the repair options.

    NeoSmart containing the content of the Windows Vista DVD 'Recovery Centre', as we refer to him. It cannot be used to install or reinstall Windows Vista, and is just a Windows PE interface to recovering your PC. Technically, we could re-create this installation with downloadable media media freely from Microsoft (namely the Microsoft WAIK, several gigabyte download); but it is pretty darn decent of Microsoft to present Windows users who might not be able to create such a thing on their own.

    Read all the info on the website on how to create and use:

    http://NeoSmart.net/blog/2008/Windows-Vista-recovery-disc-download/

    ISO Burner:http://www.snapfiles.com/get/active-isoburner.html

    It's a very good Vista startup repair disk.

    You can do a system restart tool, system, etc it restore.

    It is NOT a disc of resettlement.

    And the 32-bit is what normally comes on a computer, unless 64-bit.

    See you soon.

    Mick Murphy - Microsoft partner

  • . Exe file does not open and with the 'Open with' error popsup program to select

    Original title: my exe file located on my desktop and in my control panel do not open when I click on it

    My exe file located on my desktop and in my control panel will not open when I click on them calling the open window with pop and I have to choose a program to open the file, it's I think that when I was attacked by what looks like a scanning device legitimate XP security 2011. How to address this issue.

    Hi MichelleHarewood,
     
    -With what program to this problem?
     
    This problem occurs when one or more of the following conditions are met:
    • The registry values that are associated with the file name extension are corrupted or missing values.
    • The computer is infected with a virus.

    Follow the steps listed in the article given below to resolve this issue:

    Cannot open files with extensions such as.exe, .com, and.lnk on a Windows XP-based computer

  • Marine and with the help of a professional Windows 7 computer to another country outside the region of origin of activation

    I live in the Philippines and I would buy and install Windows 7 Professional FPP, but I only see boxes being marketed here that State it should be activated and used in the region of Southeast Asia. I will move in Australia in the coming months 5 and plan to bring my computer with me. Does this mean I have to buy a new license when I land in Oz? :( If I activate Win7Pro in the Philippines he will still be usable when I move here?

    Under the terms of the license agreement, Yes, you will need to purchase a new license, since there is a geographical restriction where the license can be used.

    However, people with problems similar to yours have managed to reactivate the license by telephone when they move to another country, which is an option, you can try:

    How to activate Windows 7 manually (activate by phone)
     
    1) click Start and in the search for box type: slui.exe 4
     
    (2) press the ENTER"" key.
     
    (3) select your "country" in the list.
     
    (4) choose the option "activate phone".
     
    (5) stay on the phone (do not select/press all options) and wait for a person to help you with the activation.
     
    (6) explain your problem clearly to the support person.
     
    http://support.Microsoft.com/kb/950929/en-us

  • Is this possible? Subforms appeal based on the drop-down list associated with the database

    I'm hoping to make a dynamic shape and I wonder if it's possible.

    I have a database with about 300 entries - pieces of agricultural goods and a few little bits of info on each of these properties. I want to create a form where users can choose the piece there rather than the property in a drop-down list. Based on the property they select, another menu drop down to fill with the cultures associated with this property. Then based on the selection made in this drop-down list, a specific form will be brought upward.

    For example, a person selects property #102 in the drop-down list. In the database, property #102 is associated with wheat, barley and corn, so the next drop would be complete with these three cultures. The user selects the wheat in the drop-down list and the form of wheat would be called. 

    I hope I explained that well enough.

    Is this possible? And if it's possible, how complicated to do? Assuming that I already have the database and subforms, it would be a long process from weeks to the script, or it would be simple enough?

    Yes, this could be done, here is an example that should help: Drop dependent dropdown (specimen attached)

    On the basis of selection (change event of the second menu drop-down), you can show or hide a subform.

    -Wasil

  • drop-down list - work with the default

    Hello

    We have drop-down list is activated option "Text entry allows the custom" (combo box). We need to display a text default value: "- choose or type--

    After the dropdown list gets focus, we must make the empty field, if the user does not need to delete the text "- choose or type--

    Then, when the user cannot choose or type anything and exits the drop-down list, we must display '- choose or type -' again.

    If the only option is to have the value "- choose or type -" as one of the elements of list, we need, whether set to null, empty string, or false.

    Is there a way to do this?

    The best result I get is enter when an event has the value this.rawValue = "--> field becomes empty, but I have not background the way how to assign a value to '- choose or type -' again. Even the call xxx.selectedIndex = 0; or xxx.setItemState(0,true); output action does nothing.

    I know that it would work, if the '- choose or type -' has the value '000', but it is for example very big change for validation scripts, that we cannot accept in this phase of the project.

    Thanks for any advice.

    Hi, I have an example of the use of 'Ghost text', that might help.  http://cookbooks.adobe.com/post_Adding_Ghost_Text_to_LiveCycle_Designer_form-18436.html.  This will display a text with the help of the ' null' display model, so you get the text, but it does not affect the value of the field.»

    Bruce

  • After you have reinstalled Th 38 (due to a problem of XPCOM), it now opens, but the large windows is stuck to one that opens with the name of the account.

    I think that Th 38 was the reason why my computer did not open at the total. Once that has been fixed, Thunderbird does not open more (error: XPCOM). After you have reinstalled Th 38 now I can open it and it looks good with the left pane, but the large window on the right is glued to that shows when you click on the name of the account (top folder in the left pane). None of the folders work, and none of the tabs on top of the page or the other. The only things that work are the links in the large window. I can see and open your messages by searching in the Inbox, for example. Would be grateful for any help!

    Looks like the problem is solved! I was appalled when I saw how many emails I had stored and deleted a large number of them. Then after restarting the computer, everything seems to be back to normal! Praise be to God! Too, Firefox seems to be back to normal after that I did a cleaning.

    Thanks anyway!
    Greetings from AngieP

  • Satellite L300 - problem with the battery and with the FN keys

    Hello

    Please help me with the following 2 problems:

    1. I bought 10 L300, 2009 with Vista, and then I switch to Win7. After that the FN do not work. I can use a couple of access keys, but anyway, they do not appear on top of the scr4een as if it was on Vista. You have the solution to work again?

    2. after the upgrade to Win7, my battery is almost dead. I use 230V taken to work on my laptop. I used my laptop properly and it is really surprised that the battery had a life so short. You have a similar experience or you may have a solution to work again?

    Thanks in advance for your help.

    (1) install VAP (value added package) and Flash memory card Support utility.
    For example, you can find the driver area L500 software.

    (2) you can try to define some battery saving options in the power management Windows 7 in order to reduce the working time of battery.
    I switched to Windows 7 and the battery still works fine.

  • logical AND with the structure of the event

    Hello world

    The structure of the event can manage several events at once to do the same thing: looks like an OR logical operator. But I have not found a way to sequence events to approach a logic and example: you must click on a button to draw, then enter the image would change the mouse cursor. With a structure of the event, I can handle these 2 events separately or together (i.e. change the cursor), but I can't do a sequence of events.

    Is this possible to do with a structure of the event?

    I hope that I am clear (sorry for English btw). And thanks in advance.

    Christophe

    I don't think this is possible directly. You will need to add status information to your event loop that could enforce the order of events and the rules of logic you want. Where transformation you would have to check whether the required event has occurred before this event. If that were the case, perform your treatment. If this isn't the case, ignore the event. Your first event would need set this status information. You can also include some kind of time-out for the second event were to occur within a specific period.

    This type of logic may be better treated with the help of producer/consumer architecture and a state machine in the task of the consumer.

  • Stuck cursor on grab and drag the hand? Grrrrr

    OK, so a little more than a week ago I have noticed that my cursor has messed up and that it is always the 'grab and drag' hand. It will not highlight the text, and it is almost impossible to click on things. I removed the old mouse, tried a shiney new one, same problem, even when I'm with my stylus. Couldn't find much on google, hoping that maybe someone has an idea. Help is appreciated!

    EUREKA found elsewhere in the formum microsoft IE awnser...

    Alt + V (toggle the mode of "panoramic")
    And if you use this shortcut, for now, a menu appears with the 'hand' button, mentioned in a previous post!
  • My first object of the entity and with the problems of the compilation.

    Dear gurus!

    I want to make an extension of the entity 'ExtBankAccountsEO' object issued by oracle, in order to use the create method to set the default values.

    I followed the "Oracle Application Framework Developer's Guide".

    I downloaded the complete content in/apps/abdellah/schema/Server oracle to my pc and use JDeveloper

    to make the extension 'ExtBankAccountsEOExImpl.java' and 'ExtBankAccountsEOEx.xml '.

    And now, the problems begin. I was not able to compile ExtBankAccountsEOExImpl.java in JDeveloper, because it lacks a lot of classes/packages.

    When I copy ExtBankAccountsEOExImpl.java into/apps/abdellah/schema/Server oracle (on the server), I have also some compilation errors, but they are all in the form

    cannot find symbol

    symbol: class number

    location: oracle.apps.iby.schema.server.ExtBankAccountsEOImpl of the class

    public number getProgramApplicationId()

    Ditto for the string and date of the exception. They all begin with a lowercase letter (string instead of the string, the number instead of number and so on).

    so I guess there must be a class somewhere where all these are defined. Delivered classes like ExtBankAccountsEOImpl are full of 'string' and 'number '.

    Please guide me!

    Thank you - thank you - thank you!

    I installed the decompiler that you suggested, and it showed appropriate types:

    And now the extension compiles without a problem on the server! I made the mistake of putting the decompiled version of ExtBankAccountsEOImpl (with tiny string, the date and number) in the same directory as ExtBankAccountsEOImpl.class, and therefore the compiler gave errors.

    How can I now replace the old EO with the extension?

    JDeveloper is a .jpx file:


    <>
    Name = "EOProj1".
    SeparateXMLFiles = 'true '.
    PackageName ="" >
      
         
         
         
         
         
         
         
      

       <>
    Name = "server."
    FullName = "oracle.apps.iby.schema.server.server"
    ObjectType = "JboPackage" >
         
            
         

      
      
         
      

    I can't find anyting with jpx on the server:

    -bash - $3.2 locate jpx

    -bash - $3.2

    Can it be done using the customization on the web page link?

    Best regards

    Christian

  • Maintain a file .htaccess custom and with the help of Muse

    Muse continues to crush the .htaccess file

    I read this post.  And it answers most of my question.  However, it does not provide a step by step description how block the Muse to try to crush a custom .htaccess file, or it does not explain what needs Muse in the .htaccess file. Also what file permissions should be to protect an existing custom .htaccess file while allowing a Muse to download the correction and to upload a .htaccess file, or simply block Muse of messing around with the .htaccess file and allow me to edit manual according to the needs.

    I did some modifications to my .htaccess file to block traffic undesirable screwing with my analytics and he disappeared, replaced by a line of Muse associated code.  Now, I need to change more to have my domain using ssl. and to back up field blocking missing.  I fear that I will constantly overwrite my necessary custom .htaccess file and do not know it's being crushed, or why.

    I'm not an expert in code so that dealing with the novice but intrepid level would be a good thing.  Usually, I use filezilla to download the site Web of Muse.

    There are differences in the code that muse generates according to the output path.

    File > export as HTML never generates the files .php for synchronized text and does not generate a .htaccess file. This path can also activate inbrowserediting.com.

    File > Upload FTP host checks for PHP support and support for redirects via a .htaccess file and if both are available it will generate the files .php and redirects to support synchronized text (if the site uses synchronized text). She will write information on the site to allow inbrowserediting.com.

  • I could hide a symbol with the name of a variable?

    I try to explain it...

    All I want to do is assign a string (the name of the symbol) to the same variable in multiple symbols:

    symbol var = "entrantes_sym";

    symbol var = "postres_sym";

    ...

    And then hide this symbol with the new created variable:

    sym.getComposition () .getStage (). $(symbol) () .hide;

    but work... help please!

    Solved! uuffffff...

    I have several symbols called onstage:

    entrantes_sym

    postres_sym

    platos_sym

    ...

    and I declare the same variable in all the symbols of the scene:

    symbol var = "postres_sym";

    sym.setVariable ("symbol", symbol);

    symbol var = "entrantes_sym";

    sym.setVariable ("symbol", symbol);

    then, inside the symbol called swipe_sym, I put this code:

    var point = sym.getParentSymbol ();

    var sym2 = stage.getVariable ("symbol");

    sym.getComposition () .getStage (). $(sym2) () .hide;

    swipe_sym symbol is a child of all the symbols of the scene.


    and the code works in all the symbols with just a few lines of code...


    Thank you.

Maybe you are looking for

  • Roll of photos in the mess in the iOS 10

    I just got my new iPhone 7 and after successfully it restore a backup from my iPhone 6, I noticed that all my photos in the film are out of sync. I realize they're supposed to be in chronological order of when they were taken, but they are very mixed

  • When I open the browser, it automatically attempts to connect to online banking

    Even if I did the following, when I open Mozilla Firefox, it automatically tries to connect to banking services (then pops up a message saying the entered access details are false):I have:-Change to the 'blank page' home page-"Deep" antivirus scanner

  • cannot type in the form entry fields

    On some websites, I am unable to click into the form input fields. (The alternative is to right-click on them or tab their). However, it's only a fault on Firefox. I am able to do this on other browsers. In particular, it is the form of e-mail on the

  • Shopping is no longer available for download

    I want to download the 1080 p version of a purchase that I downloaded as 720 p. The film still exists in the iTunes store, but it does not appear in my shopping list. What can I do?

  • Reset the updates of Windows - Windows Vista

    Hello I could not download updates for various components of Windows Vista for a few weeks, 8. My last successful updates were: -Update for Microsoft Silverlight KB3162593 - July 6, 2016 -Update for Windows Vista KB3162835 - July 2, 2016 -Update for