Bit of a tricky one ....

Ok, from my query I have this:
1,2,3,4,5,6,7,8,9
And I want to turn it into this
<table>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
<td>5</td>
</tr>
<td>6</td>
<td>7</td>
<td>8</td>
<td>9</td>
<td></td>
</tr>
</table>
now if my list now grows to this
"1,2,3,4,5,6,7,8,9,10,11,12,13,14" I want my table to include a
second row etc. How the **** do I program this. I am having such a
tough time and its reallly strating to frustrate.
If anyone can tell me how to do this. I would be over the
moon.
Many Thanks hugh

oh yes I have this code already.
<cfset Columns = 5>
<cfset CurrentColumn = 0>
<cfset RowCompleted = 0>
<cfset Rows=Int(usersview.RecordCount/Columns)>
<cfset OddColumns = usersview.RecordCount mod Columns>
<cfif OddColumns neq 0>
<cfset Rows = Rows +1>
</cfif>
<cfset Increment =
Int(usersview.RecordCount/Columns)+1>
<table border="1">
<cfprocessingdirective suppresswhitespace="yes">
<cfloop from="1" to="#rows#" index="Row">
<cfset LeftOverIncrement = 0>
<tr>
<cfloop index="Column" from="1" to="#Columns#">
<cfif Column gt (OddColumns +1)>
<cfset LeftOverIncrement = LeftOverIncrement +1>
</cfif>
<cfset CurrentRow = (Row + (Increment * CurrentColumn) -
LeftOverIncrement)>
<cfif CurrentColumn eq (Columns -1)>
<cfset CurrentColumn = 0>
<cfelse>
<cfset CurrentColumn = (CurrentColumn+1)>
</cfif>
<cfoutput>
<td><cfif (Row lt Increment or OddColumns gt 0) and
(CurrentRow lte usersview.RecordCount)>#the
value[CurrentRow]#<cfelse></cfif></td>
</cfoutput>
<cfif Row eq Increment>
<cfset RowCompleted = RowCompleted +1>
</cfif>
<cfif RowCompleted is OddColumns>
<cfset OddColumns =0>
</cfif>
</cfloop>
</tr>
</cfloop>
</cfprocessingdirective>
</table>

Similar Messages

  • HT201269 Bit of a tough one...I have a hard drive, iPod and iphone synced to an itunes on a computer that's been irreparably broken. Just bought a macbook pro and want to try and salvage everything onto the itunes on there. Any ideas?

    Bit of a tough one...I have a hard drive, iPod and iphone synced to an itunes on a computer that's been irreparably broken. Just bought a macbook pro and want to try and salvage everything onto the itunes on there. Any ideas?

    Yeah it seems to be fine although I'm a bit reluctant to fire it up with the Mac just incase. Thanks for the response btw

  • Bit of a strange one.... HD Movies "Judder" when streaming to ATV2

    Bit of a strange one.... all my HD Movies since the latest ATV2 update "Judder" when streaming.
    It's very hard to describe but whenever there is a fast Zoom or Pan shot the image flickers for around half a second. It seems to happen every 20 seconds or so, this has only been the case since the latest update of ATV2.
    I purchased Tron Legacy (HD) from the iTunes store and it occurs when playing that movie. It also happens on all my self generated HD contect.
    Strangely it does not occur when streaming to my 1st Gen Apple TV, which makes me think it has nothing to do with my Home Network setup, as they are both connected via Ethernet cables.
    There is only a problem with HD Streaming and ATV2.
    Any assistance would be appriciated
    Hans

    The last update seems to have introduced a feature which lets the Apple TV detect the native frequency of your TV, in the UK this is probably but not always 50 Hz, this is beneficial for Home video and broadcast content in these locations where the frame rate is 25 fps. It isn't ideal for 30 fps or 24 fps content though which most of the iTMS movies and TV shows are.
    Also of relevance is that some TV's make a better job of telecine/detelecine than others due to the quality of their components.
    Although I don't necessarily think that Apple are responsible for the ability of 3rd party TV's, the problem could be easily overcome by allowing the user to manually select the Apple TV output as was the case with the Apple TV 1. This would allow the user to switch to 60 Hz for 30/24 fps content and 50 Hz for 25 fps content.
    Some TV's have motion settings which worsen/improve the situation depending on their settings.

  • Synaptics touchpad on HP Mini 110 Windows 7 32 Bit - not working for one user - working for another

    Hi,
    I recently have an issue with Synaptics touchpad on HP Mini 110 Windows 7 32 Bit - NOT working for one user - working for another.
    Windows 7 updates recently installed ???
    By checking the device properties on the user that works - "Synaptics PS/2 Port Touchpad 13/10/2011 Version 15.3.29.0"
    When the other user logs on, the touchpad works for a few seconds, then a displays a black square with a red diagonal line through it, then the touchpad won't respond. Trying to use the keypad to navigate to system diagnosics or anything to find further info is useless....

    Hey eagle_no11,
    Thank you for joining the HP Support Community!
    I will do my best in assisting to hopefully get the TouchPad to work on the second user profile.
    What I would like to start off with, is to restore the original Synaptics drivers onto the profile that is not working correctly. I have included the document Using Recovery Manager to Restore Software and Drivers (Windows 7).
    Once you have installed the original drivers, you will need to complete all updates from both HP, as well as Windows. For these updates, if you open the HP Support Assistant, and select Maintain, you should see an option for updating.
    Please let me know how these steps do work out for you.
    Have a great day!
    I worked on behalf of HP

  • Bit of a strange one this. Any help appreciated.

    I have been stuck on a PPC g5 2gb dual tower for the last 8 years. 12 months ago the internal power died and I paid to have it repaired. A couple of weeks this happened again. It's not really economical for me to repair it and I really need to be getting up to speed before I fall further behind the Mac community. With this in mind I took the plunge and bought a new MacBook pro this week. I am excited about the possibility of this machine but my issue is this. I presume it will come with lion or mountain lion installed.
    My G5 tower had two internal drives one with leopard and one tiger. A newish western digital caviar black 1.5 tb disc which was partitioned into a 1tb and a 500 mg drive. Both these were to host the OS 10.5.8 my files iTunes iPhoto mail docs and other bits. The other internal drive was a bootable 10.4.7? Disc running audio apps cubase etc
    I presume the internal discs are still intact and readable although the Mac is dead. How will I migrate the data to the new MacBook pro. Is it advisable to buy an external usb3 enclosure and get the data somehow that way. Then I can use these drives as backups for the new Mac.
    I know most poc programs I had will need to be replaced. However will I be able to get my iPhoto and iTunes library back from the redundant drives and what about my mail?  Is there anything else I need to be aware of and will it be a complete nightmare or would this process be straight forward. I know I am moving three operating systems ahead so I can only imaging I may have some difficulty. Any advice would be greatly appreciated.
    Thanks in advance.

    j Foss wrote:
    I presume it will come with lion or mountain lion installed.
    Most likely. However, do note that it might in all likely hood boot with Snow Leopard, since the firmware has changed. At least that's the consensus amongst those buying up iMacs, MacPros, and MBPs. Apparently, won't work with the ones shipping with retina displays. That said, it might behoove you to spend $20 USD and get a Snow Leopard install disc. Borrow another machine, install it onto an external HD, update it to 10.6.8 and other OS X apps, and try booting the new MBP with it.
    Is it advisable to buy an external usb3 enclosure and get the data somehow that way.
    Either that or a combined FW800/USB 3.0 enclosure. Then, consider updating the Leopard volume to Snow Leopard. Or getting an additional ext HD with FW800/USB 3.0 ports, cloning the Leopard one, and then upgrading one or the other to SL->10.6.8. Then, hook it up to the new MBP, follow the steps in Pondini's Setup New Mac guide. Once that's finished, try booting with the SL ext HD. If that works, then you'll be able to use all legacy PPC apps except the classic ones.
    If successful, whether or not you wipe Lion/ML from the MBP, clone the SL volume to it, or clone the Lion/ML volume to the ext HD (another partition) so you can play with it, is up to you.
    Bottom line is you can probably do most of your current Leopard work with the MBP running SL. If so, then you can take your time examining whether or not to move forward to the iOSified OSs, Lion and ML. I compute with SL and play with the others, but, since I have no iOS or wireless devices, they don't offer much for computing and minor security improvements.

  • 64 bit version of Business One

    I have looked at the supported platform list on this portal and see no mention of when SAP plans to release a 64 bit version of SAP B1.  The current versions will run on a Windows 2008 Server x64 platform but they appear to still be running as a 32 bit application.
    Has anyone heard?
    Thanks

    Thanks Gordon.  I wasn't implying they should replace the 32 bit version only that they should release a 64 bit version like Microsoft does for SQL Server and you can choose which one you want to install.
    Since SAP B1 likes memory, having native access to more than 4 GB would probably help it perform better.
    I think SAP moved to 64 bit only on their other SAP platforms.

  • Separating 16 bits of data into one 12 bit and one 4 bit channel

    I have 16 bits of binary data and i'm trying to split these into one 12 bit and one 4 bit channel. I know that I could use something like:
    Dim Channel1 : Set Channel1 = Block.Channels.Add("Channel1", eI16)
    Channel1.Formatter.Bitmask = 4,095 'xxxx 1111 1111 1111
    but, i'm not sure how to grab those 4 bits out of the 16 bit channel1 and make channel2. It's like i almost need to say something like:
    Dim Channel2 : Set Channel2 = Block.Channels.Add("Channel2", eI16)
    Channel2 = Channel1.Formatter.Bitmask = 61,440 '1111 xxxx xxxx xxxx
    Can anyone help out???? thanks.

    OK...This is still straightforward. Her is what you want to do :
    CurrPos = File.Position ' remember where the block starts
    Set Block = File.GetBinaryBlock()
    ' set up all channels which can be read directly
    Dim Channel1 : Set Channel1 = Block.Channels.Add("Channel1", eU16)
    Dim Channel2 : Set Channel2 = Block.Channels.Add("Channel2", eByte)
    Dim ChannelPH : Set ChannelPH = Block.Channels.Add("Dummy", eU16) ' just a placeholder
    Dim Channel5 : Set Channel5 = Block.Channels.Add("Channel5", eU16)
    Dim Channel6 : Set Channel6 = Block.Channels.Add("Channel6", eByte)
    ' Now we need a block which has one channel only. This channel will be used to extract the bits.
    ' The block needs to start where the third schannel of the above block starts :
    File.Position = CurrPos + 2+1 ' 2 for the U16 channel, 1 for the byte channel
    Set Block = File.GetBinaryBlock()
    ' Set the scan width. This defines the gaps between the values of a channel
    Block.BlockWidth = 2+1+2+2+1 ' U16 + Byte + U16 + U16 + Byte
    Dim Channel3 : Set Channel3 = Block.Channels.Add("Channel3", eU16)
    ' .. apply bitmask and scaling (see my last example)
    ' Do the same for the second channel
    Set Block = File.GetBinaryBlock()
    ' Set the scan width. This defines the gaps between the values of a channel
    Block.BlockWidth = 2+1+2+2+1 ' U16 + Byte + U16 + U16 + Byte
    Dim Channel4 : Set Channel4 = Block.Channels.Add("Channel4", eU16)
    .. apply bitmask and scaling (see my last example)
    Do the same for the second channel
    I hope this works as expected. Let me know if you need more help...
    Andreas

  • Ohhh here is a tricky one...overlapping colours

    Just when you thought you could do everything something comes and bits you in the bum.
    I am doing a 'simple' animation with various shaps around a screen, two circles mainly. When they overlap, I would like the overlapping area to turn to a different colour? (its animated)
    I am totally clueless on this one....any ideas?

    I thought of something slightly different than Adam - maybe a bit simpler...
    I used a color generator, added 2 masks to it, put my two moving shapes in the mask wells (then turned the shapes back on), set both of their mask modes to Intersect. That way they only work when they cross.
    If you click on the image, you can download the project...
    Patrick

  • Annoying Safari "problem"... a tricky one that has confounded others

    OK, so a confession...I prefer the world of Windows to the Mac environment. Simply because it's....simple. The Mac life is just too tricky/complicated (take for example, how hard it is to ever find a picture in iPhoto, compared the simplicity of storing pics in a folder!). I digress. I use a Mac because I love the hardware and some of the beauty. But I have one snare in Safari that drives me nuts.
    If I have used Google, searched on something, clicked on a link or two, and then go to edit my search....the search line automatically reverts to the previous search. You can imagine how annoying this is if the previous search was very different, and all I wanted to do was correct some spelling or something.
    Funky, no?

    Yup, I posted on this issue yesterday. No responses as yet. Googling it ( ! ) reveals a few other people experiencing the same thing. It can be a royal pain the backside, can't it? I'm here to sympathise only, I'm afraid.
    Any ideas gratefully received, readers.

  • 32-bit mode and only one Instrument?!?!

    I have my Logic Studio/Pro 9.1.3 set to run in 64-bit mode... But unfortunately I can only view one Virtual Instrument at a time. Is there anyway to view multiple instrument interfaces or is this just a limitation of running in 64-bit mode.
    Also, if this is a limitation of 64-bit mode will they eventually add the ability to open more than one V.I. at a time? I like to jump between virtual instruments and the 32-bit VIs (Which most of mine are) only run one at a time.

    montreaux wrote:
    I have my Logic Studio/Pro 9.1.3 set to run in 64-bit mode... But unfortunately I can only view one Virtual Instrument at a time. Is there anyway to view multiple instrument interfaces or is this just a limitation of running in 64-bit mode.
    Strictly speaking it is a limitation of using 32-bit plugins in 64 bit mode. The plugins don't run in Logic anymore, so you effectively switch to a different program (32b AU bridge) when opening the interface of 32 bit plugins.
    It is just a waiting game until most/all 3rd party plugs and instruments are 64 bit, or until the 32bAUbridge has improved to indeed show multiple GUI's at a time.
    Also, if this is a limitation of 64-bit mode will they eventually add the ability to open more than one V.I. at a time? I like to jump between virtual instruments and the 32-bit VIs (Which most of mine are) only run one at a time.
    No idea what the plans are of the Logic developers. I hope they'll improve it, I expect they'll improve it, but I don't know anything for sure in that respect.

  • ICloud backup advice! tricky one.

    Hi guys,
    Random one here:
    If for example my new iphone was restored to an old itunes backup (older phone).
    No safari history/bookmarks etc was shown on new device after restore. But firstly, would that data somehow be hiding behind the scenes?
    ALSO.. if i then backed that new device up to iCloud.
    Is there any chance that 'hidden' data would be in my icloud backup? Or is it all a bit far fetched and not possible?
    Cheers guys.

    I doubt it.  If the data was in the backup it should appear on the device the backup is restored to, rather than being hidden.  And if it isn't on your device, it obviously can't be stored in a new backup, whether to iCloud or to your computer using iTunes.

  • Bit of a difficult one

    Okay so here is the persistent problem,
    I have an iPhone 4 and ever since updating to iOS 7 i have had endless problems.
    The biggest one being that every app that i have ever bought/downloaded, keep downloading all at once and it happens when i try to download a previously purchased app.
    in full detail.
    i open the app store go to purchased, scroll through untill i find the app i want to download again (This time GTA 3)
    a message pops up saying that i have previously purchased this app so wont have to pay again and i have to click ok.
    after clicking okay it shows my app is downloading i go to the home screen and after about 30-40 seconds it dissapears
    i try again and the same happens including the message. but after it dissapears this time i will get the grey box that appears before the app logo/icon appears. then 1 by 1 or even 3 in one go. it wont stop even if i dissconect from wi/fi and mobile data.
    the only way i can stop it is by plugging it in and restoreing the iphoine
    if anyone can help please!!!

    If you have endless problems with the update, you can restore it via iTunes but backup before you do so. Problems might be caused from OTA update.
    Set Settings>General>International>Language>English
    Settings>iTunes & AppStore>Sign out and sign back in.
    You can also tried a hard reset by holding power and home button till it restarts and release power when u see apple logo.
    You can also Settings>General>Reset>Reset Network settings.

  • Calling function in procedure...A tricky one

    hi guys,
    Here is a tricky thing ...
    There is actually a Whole book which has Risk and XYZ portfolio books and other books as well.
    The below procedure actually select the risk books based on FLAG =N else it will select all the books.
    Now i need to modify this....
    Here is a thing .....instead of selecting all the books it should select XYZ portfolio list.
    Actually there is function in a package called PKG.TEST_func, This function lists all the books
    Now all i need to do is call this function in the procedure in the else part and pass the parameter for XYZ portfolio books.
    HOW DO I DO THIS????
    create or replace procedure TEST
    flg in varchar2 ,
         cur_out out sys_refcursor
    as
    begin
    if upper(flg) = 'N' then
         open cur_out for
              select distinct Book
              from bookmgr.VW_book@bookmgr_dbln
              where RISK_REP_FLG = 'N'
    ORDER BY book;
    Else
    open cur_out for
    select distinct Book
    from bookmgr.VW_book@bookmgr_dbln;
    end if;
    end test;
    Please let me know if u have any questions....
    Thank you so much in Advance....I m kinda of newbe to this world. I appriciate you help..
    thanks
    -sunny

    It will be something like ...
    Else
        cur_out :=PKG.TEST_func('XYZ portfolio list') ;
    end if;Of course,m it is your system, so only you know the actually value of the parameter.
    Cheers, APC
    blog: http://radiofreetooting.blogspot.com

  • A small but tricky one -- can u handel it

    hi guys
    i have a very small but tricky problem
    u see i want to get the value of a mathamatical expression (stored in a variable -varchar2) and wants to get the mathamatical value of the expression
    eg
    declare
    a varchar2;
    begin
    a:='12*12';
    etc....
    end ;
    so here i want to get 144 as the output ..
    lets see how u handel it
    thanx
    dg

    Yeap, Execute Immediate is only available on 8.1.?.
    Try following.
    declare
    cursor_no integer;
    a varchar2(20);
    sqlstr varchar2(128);
    rowno integer;
    rs integer;
    ResVal number;
    begin
    a := '12 * 12';
    sqlstr := 'SELECT ' &#0124; &#0124; A &#0124; &#0124; ' FROM DUAL';
    cursor_no := dbms_sql.open_cursor;
    DBMS_SQL.PARSE(cursor_no, sqlstr,dbms_sql.native);
    DBMS_SQL.DEFINE_COLUMN(cursor_no, 1, ResVal);
    rs := DBMS_SQL.EXECUTE(cursor_no);
    rowno := DBMS_SQL.FETCH_ROWs(cursor_no);
    DBMS_SQL.COLUMN_VALUE(cursor_no, 1, ResVal);
    DBMS_SQL.close_cursor(cursor_no);
    DBMS_OUTPUT.PUT_LINE(ResVal);
    END;
    Steve

  • Select query... a tricky one

    I have 2 tables :
    EMPLOYEE table:
    Employee_Id Parent(Y/N)
    1 Y
    2 Y
    3 N
    4 N
    5 Y
    6 Y
    7 N
    8 Y
    9 Y
    10 Y
    11 N
    12 N
    13 N
    14 N
    EMPLOYEE_RELATION table:
    Parent_employee_id Child_employee_id
    1 4
    2 13
    5 14
    6 11
    8 3
    9 12
    10 7
    Clearly, the EMPLOYEE table has 14 records(Employee_Id is primary key), with an indicator whether the Employee_Id is parent or child. 'Y' indicates it is a parent and 'N' indicates it is a child.
    Now in the EMPLOYEE_RELATION table, for every parent, there is a child. It is a one-one relation.
    I needed a query written so that it will display all the 14 records of the EMPLOYEE table along with its relating parent or child id. In other words , if it is a parent, then its's child id should display. If it is a child, then its parent id should display ---
    The output should look like -- >
    1 4
    2 13
    3 8
    4 1
    5 14
    6 11
    7 10
    8 3
    9 12
    10 7
    11 6
    12 9
    13 2
    14 5
    How do I write a select query for this ?
    Thanks

    You could use either of these queries:
    select e.Employee_Id, r.Child_employee_id parchld
    from EMPLOYEE e, EMPLOYEE_RELATION r
    where e.Employee_Id = r.Parent_employee_id 
    union
    select e.Employee_Id, r.Parent_employee_id parchld
    from EMPLOYEE e, EMPLOYEE_RELATION r
    where e.Employee_Id = r.Child_employee_id
    order by 1;
    select Employee_Id,
      decode(prnt, 'Y', (select Child_employee_id from EMPLOYEE_RELATION r where r.Parent_employee_id = e.Employee_Id),
                   'N', (select Parent_employee_id from EMPLOYEE_RELATION r where r.Child_employee_id = e.Employee_Id)) parchld
    from EMPLOYEE e
    order by 1;

Maybe you are looking for

  • Trim marks positioning incorrect for files that have a larger crop box than trim box

    I've seen this question in one other place on the forum, but it doesn't look like it ever got answered. It's been driving me nuts for months, so I'm going to try to do a very simple walkthrough for this problem to find out if this is a glitch in the

  • Copying text from CMIR (KNMT) to the Sales Order Line Item

    We need to copy text from the CMIR (KNMT) to the Sales Order Line Item with two steps in the access sequence. First to look up by the Ship to Partner Function.  If doesn't exist, then look up by Sold to Partner Function.  Have setup a new text id (ZP

  • Using a datagrid to display XML data

    Hello, I'm binding xml to a datagrid but I'm having trouble displaying some of the data.  Here's my example. Here's my test data: [Bindable] private var test:XML =   <vm:validationMessages xsi:schemaLocation="http://www.location.com/2.0 http://schema

  • HP LaserJet 1200: Prints; creates EXTRA sheet with Offending Command: D

    After every printing job is completed *an extra page is printed* with the following: ERROR: undefined OFFENDING COMMAND: D STACK: How can I stop this *unnecessary waste of paper* every time I print something? Please help!

  • Strange BIOS Boot Listing--New L775D-S7132

    I have a new Satellite L775D-S7132 acquired just 2 days ago after my Windows 8 fiasco. I have a question about the BIOS.  It is an Aptio BIOS the same as my older L675-S7016. The new 775 BIOS will NOT recognize a USB flash drive, bootable or not. It