Retrieve 3 rows of data and put each row in different position on screen

I need to retrieve 3 consecutive rows of data (easy) and need to put each row's data in an entirely different location on the home page
for example,
row 1 needs to go up in the top left content box
row 2 needs to go in the large content area in the middle of the page
row 3 needs to be put down in the footer of the page
what's the most efficient way to do this ?

Ok, I've tried to research this a bit more, but I'm no further forward
So if I have a query...
<cfquery name="getData" datasource="foo">
  SELECT *
  FROM 00_pricelist
</cfquery>
<cfoutput query="GetData" startrow=1 maxrows=3 >
     <!--- surrounding table 1 --->
     #getData.uneak_code[1]#<br />
     <!--- surrounding table 2 --->
     #getData.uneak_code[2]#<br />
     <!--- surrounding table 3 --->
     #getData.uneak_code[3]#<br />
</cfoutput>
can you tell me what I'm doing wrong ?

Similar Messages

  • Rows as Columns and Columns as Rows

    Hi,
    How to print rows as columns and columns as rows?
    Suppose I've the following data
    colA colB
    X 1
    Y 2
    Z 3
    I want the output to be something like
    X Y Z
    1 2 3.
    Is this possible? Please let me know.
    Regards,
    Jai.

    The following assumes that there is only one value of colb for each value of cola, but allows for any number of values of cola. The script below creates the query and results below that, given the test data that you provided.
    -- script:
    STORE  SET saved_settings REPLACE
    SET    ECHO OFF FEEDBACK OFF HEADING OFF PAGESIZE 0 VERIFY OFF WRAP ON
    SPOOL  query.sql
    SELECT 'SELECT MAX (DECODE (cola, ''' || cola || ''', colb)) AS "' || cola || '"'
    FROM   (SELECT MIN (cola) AS cola
            FROM   test_table)
    SELECT ', MAX (DECODE (cola, ''' || cola || ''', colb)) AS "' || cola || '"'
    FROM   (SELECT DISTINCT cola
            FROM   test_table
            WHERE  cola >
                   (SELECT MIN (cola)
                    FROM   test_table))
    PROMPT FROM   test_table
    PROMPT /
    SPOOL  OFF
    START  saved_settings
    START  query.sql
    -- query and results:
    SQL> SELECT MAX (DECODE (cola, 'X', colb)) AS "X"
      2  , MAX (DECODE (cola, 'Y', colb)) AS "Y"
      3  , MAX (DECODE (cola, 'Z', colb)) AS "Z"
      4  FROM   test_table
      5  /
             X          Y          Z
             1          2          3
    SQL>

  • Copy a certain row of data into the next row in a same internal table ??

    HI, guys.
    May i know how to copy a certain row of data into the next row in a same internal table ?? Bcz I plan to update a certain colum of data in the row just now into another value..
    For example:-
    *at first...
    ebeln1   ebelp1   xblnr1
    ebeln2   ebelp2   xblnr2
    ebeln3   ebelp3   xblnr3
    *after that, become...
    ebeln1   ebelp1   xblnr1
    ebeln2   ebelp2   xblnr2
    ebeln2   ebelp2   xblnr4
    ebeln2   ebelp2   xblnr5
    ebeln3   ebelp3   xblnr3
    Thanks in advance.

    hi,
    If you have this kind of requirement then you must be having 2 internal tables ,one existing data and 2nd from which you have to insert the records into 1st table.
    so in this case,
    loop at itab1.
      v_index = sy-tabix.
      loop at itab2 into wa where pri_key = itab1-pri_key.
      v_index = v_index + 1.
      insert  wa into itab index v_index.
      endloop.
    endloop.
    Using this code ,your data records similar to your 1st tables primary key records will get inserted into table.

  • Interchanging of Rows to Columns and Columns to Rows

    Can anyone help me in this query ....
    Interchanging of Rows to Columns and Columns to Rows in Oracle
    Ex :- Actual Data
    EmpId Ename Sal
    1 A 2000
    2 B 3000
    3 C 1000
    4 D 3000
    Query Result should be like below ::::::::::
    after Transposing [ Interchanging of Rows to Columns and Columns to Rows ]the data should come like below
    Empid 1 2 3 4
    EName A B C D
    Sal 2000 3000 1000 3000
    Thanks
    Kavitha and Sudhir

    Please see the following links
    transpose my table column
    http://asktom.oracle.com/pls/ask/f?p=4950:8:1532380262922962983::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:52733433785851
    pivot a result set
    http://asktom.oracle.com/pls/ask/f?p=4950:8:1532380262922962983::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:124812348063

  • Can anybody help....SQL to display row as column and column as rows

    Can anybody help in writing a SQL to display row as column and column as rows?
    Thanks

    check this link:
    Re: Creating Views - from rows to a new column?

  • Canon S-100 forgets date and time each time it's turned off.

    Hello, I have a canon S-100 that forgets the date and time each time it's turned off. I see chat rooms that talk about if the internal battery is shot. The S-100 will loose date/time if the battery is removed. My S-100 asks for date/time every time I turn it on without touching the battery. Has anyone come across this issue?

    The S100 has a built in rechargable battery that runs out after a few weeks of non use and no battery inserted. You can also set it to automatically update via GPS as shown on page 115. I attached a portion of  page 21 from the user manual to explain it better.

  • Nokia N95 asks to reset date and time each time i ...

    My N95 has started to request the date and time each time I swaitch it on.  The battery is charged up . How do I stop this
    Thanks

    There is another smaller auxilliary battery in the phone. This battery is faulty on your phone. You need to have it replaced at your local Nokia Care Point.

  • I need an ethernet cable connection to a non-wireless device that isn't near my current airport express. Can I buy an extra one to plug in near the non wireless device to receive the wireless data and put the signal out in ethernet form?

    I need an ethernet cable connection to a non-wireless device that isn't near my current airport express. Can I buy an extra one to plug in near the non wireless device to receive the wireless data and put the signal out in ethernet form?

    Yes, you can.
    This is a special feature of the AirPort Express 802.11n.  You will have to set it up "manually" to "enable Ethernet clients".
    If  your "main" AirPort Express is an 802.11n version, it is also possible to setup the second Express to "extend a wireless network" to provide additional wireless coverage in addtion to enabling the Ethernet port.
    If you need the steps, post back to let us know what operating system you are using on the Mac or PC that will be used for the setup of the new AirPort Express.

  • I had completed my iDVD project and burned a disc. It worked great! Then someone messed with the project and put a red frame around the opening screen. Now when I burn the project, it no longer has the opening frame. How can I fix?

    I had completed my iDVD project, a Wedding Slideshow with pictures and music, and burned it on a disc. It worked great! Then someone messed with the original project on my computer and clicked around and put a red frame around the opening screen that has the Wedding theme with music. Now when I burn the project to make more DVDs, it burns but no longer has the opening frame. It immediately opens to the iMovie slideshow. How can I fix so I can burn the entire project with opening frames?

    As Bengt suggested make a disk image of the successfully burned DVD using Disk Utility. Then you can burn copies any time you need one.
    In the future once you have the project as you want it save it as a disk image via the File ➙ Save as Disk Image menu option.  This will separate the encoding process from the burn process. 
    To check the encoding mount the disk image and launch DVD Player and play it.  If it plays OK with DVD Player the encoding was good.
    You can then burn it to disk with Disk Utility at the slowest speed available to assure the best burn quality.  Always use top quality media:  Verbatium, Maxell or Taiyo Yuden DVD-R are the most recommended in these forums.
    OT

  • Can't open individual windows to go back and take information from one and put it on a different one :?

    ....so I'm on fema's website and I want to take an elevation from fema, and put it onto a different screen.
    Your windows all get dumped into one location.
    Can't go back and pull out the window I need....
    Jim

    Yo can't. apps are locked to the account thatpurchased them and in-app purchases can only be mad with the account that originally purchased the app.
    You will have to recover use of the first account
    How do I change or recover a forgotten Apple ID Password?
    If you've forgotten your Apple ID Password or want to change it, go to My Apple ID and follow the instructions. SeeChanging your Apple ID password if you'd like more information.
    If necessary:
    Forgotten Security Questions/Answers
    You need to contact Apple by:
    1 - Use the Express lane and start here:
    https://expresslane.apple.com
    then click More Products and Services>Apple ID>Other Apple ID Topics>Forgotten Apple ID security questions.
    or
    Apple - Support -form iTunes Store - Contact Us
    2 - Call Apple in your country by getting the number from here:
    http://support.apple.com/kb/HE57
    or           
    Apple ID: Contacting Apple for help with Apple ID account security
    3 - Use your rescue email address if you set one up
    Rescue email address and how to reset Apple ID security questions
    For general  information see:
    Apple ID: All about Apple ID security questions
    If you have not uses any of the $10 you redeemed to the new account, you can likely get that refunded by contacting iTunes
    Contact iTunes

  • In iPhoto9, I used to be able to duplicate a photo and put it in two different events.  Is there a way to do this in iPhoto11?

    In iPhoto9, I used to be able to duplicate a photo and put it in two different events.  Is there a way to do this in iPhoto11?

    In your description you say the first document opens as the Title you gave it.
    Templates always open as Untitled so it sounds like you have saved a regular document, perhaps into your templates folder which is possible.
    Since you have already worked on it and it has been previously saved, Lion will now Save for you and Save a Version is available
    The other document does open as Untitled so sounds like a real template and as Peggy has pointed out will not have either Revert nor Save a Version until you Save it and have changed something in it.
    This is a classic example of just how Apple's supposedly "simplification" of the process, is leading to confusion of what has happened. That the conditions and resulting actions from those conditions is so convoluted says it all.
    It all reminds me of the Monty Python Life of Brian sketch with the "simplified" John Cleese instructions to the class, as to if you have a brother in an older dorm whether to hang your hat and bag on the hooks provided. The trouble is Apple does not get the joke, that it is transforming itself into a frequently self contradictory bumbling bureacracy. The price of unchallenged self appointed geniushood.
    The incoherent half baked stumbling juggernaut has reached new triumphs with its edict on enforced Sandboxing on developers when it is unable to follow even its own instructions.
    Peter

  • TS1367 Hallo,I have an IMAC 21.5. which does not start.When i press the power button i hear only beep with an interval of 4-5 seconds.Some times when i take off the RAMS and put them again then get a white screen and shows that i have to insert a bootable

    Hallo ,I have an IMAC 21.5. which does not start.When i press the power button i hear only beep with an interval of 4-5 seconds.Some times when i take off the RAMS and put them again then get a white screen and shows that i have to insert a bootable device.Then i bought OSX mountainlion on line and wrote it on a DVD and tried with a USB key board to start the DVD.But does not work.Please help me to get this imac work.
    Thankyou in advance  for your help.
    Terrence

    Hey terremo,
    Thanks for the question. From the information you provided, it sounds like the iMac is successfully turning on, however video is not displayed. These symptoms can usually be isolated further by the troubleshooting steps in this article:
    Apple computers: Troubleshooting issues with video on internal or external displays
    http://support.apple.com/kb/HT1573
    Thanks,
    Matt M.

  • I have read 118 files (from a directory) each with 2088 data and put them into a 2 D array with 2cols and 246384row, I want to have aeach file on a separate columns with 2088 rows

    I have read 118 files from a directory using the list.vi. Each file has 2 cols with 2088rows. Now I have the data in a 2 D array with 2cols and 246384rows (118files * 2088rows). However I want to put each file in the same array but each file in separate columns. then I would have 236 columns (2cols for each of the 118 files) by 2088 rows. thank you very much in advance.

    Hiya,
    here's a couple of .vi's that might help out. I've taken a minimum manipulation approach by using replace array subset, and I'm not bothering to strip out the 1D array before inserting it. Instead I flip the array of filenames, and from this fill in the end 2-D array from the right, overwriting the column that will eventually become the "X" data values (same for each file) and appear on the right.
    The second .vi is a sub.vi I posted elsewhere on the discussion group to get the number of lines in a file. If you're sure that you know the number of data points is always going to be 2088, then replace this sub vi with a constant to speed up the program. (by about 2 seconds!)
    I've also updated the .vi to work as a sub.vi if you wa
    nt it to, complete with error handling.
    Hope this helps.
    S.
    // it takes almost no time to rate an answer
    Attachments:
    read_files_updated.vi ‏81 KB
    Num_Lines_in_File.vi ‏62 KB

  • Get matrix row data and put it into header field with formatted search ???

    Hi All,
    I ask your help concerning the following:
    On an invoice matrix I want to check all Itemgroup Codes of all items in the rows, if there are some rows' items with ItemGroupcode 101 and some others with anything else, then header field should be Y, otherwise N.
    My main problem is: how do I put a matrix row data to a header data with checking all rows in the matrix?
    A minor problem is that I can't get the formatted search to work on all rows when the formatted search is assigned to the user field in header.
    If I put the formatted search to a row field then the row field is filled with the proper value, but the same query assigned to the user field in header works only on the first row.
    What am I doing wrong?
    SELECT USEDPROD= CASE T0.ItmsGrpCod  WHEN 101 THEN Y ELSE N END FROM .[OITM] T0 WHERE T0.ItemCode = $[$38.1.0]
    (SBO 7.6)
    Any suggestions are welcome.
    Thanks.
    Bálint

    Dear Adele,
    Thanks for the answer. The major one cannot be solved. OK, I'll try to get a workaround.
    However I still do not understand why my query does not work in all selected rows, just in the first row, i.e. if I assign the query to a header field and I'm positioned in the first row it's OK, but when I add a new item to the second row or any of the next rows, the header field is not updated at all.
    Why is that so? Do you have any idea?
    Bálint

  • Every time I create a new row, I want a certain cell to display the date and time the row was created.  How do I do that?

    =NOW() updates the date and time continuously, I don't want to do that.  I just want the date and time in that cell to stay the same after that row is created.  Seems like this would be easy, but I can't figure it out.

    My preferred scheme is a variant of Barry's proposal 2
    create the new row
    select the cell in which you want to insert the date
    type the shortcut dedicated to one of the four "Insert date" services delivered with WordService from Devon Technologies (FREE)
    On a French keyboard, only one of the default shortcuts apply : cmd % which inserts the long date.
    But we may edit these shortcuts.
    Yvan KOENIG (VALLAURIS, France) mercredi 6 juillet 2011 15:12:16 iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

Maybe you are looking for

  • What is a  Logical and Physical file path in sap?

    what is a  Logical and Physical file path in sap?

  • Help with images and buttons

    I was wondering if anyone could recommend a tutorial or point me in the right direction. I've been trying to figure out how to use buttons to add images (been using png from photoshop with alphachannel) to a canvas. I don't have any problems skinning

  • New Pages - inserting a picture makes text move - why! Urgent

    With the old pages you could insert a number of things on top of or next to each other and it was fine Now, when I have some text in a text box, or some images, and try to place a new image next to it, it causes the existing items to move! Why?! Plea

  • Distributed cache during solution deployment

    Hi, We are using MySite newsfeed. What is the best practice during deployment of solution the distributed cache is not affected. Last time when we did IIS reset the feed was lost and we have to use repopulated job to pull the data.Is there any beetr

  • Formatting problem - RH7 JavaHelp

    Hej, to create a jar-file (JavaHelp) is not that problem ... My problem are the font-size and bullet points - after I've created a jar-file they have been changed. Why and is there any workaround to fix this problem??? Many thanks in advance for some