Number for every record that is retrieved from (query)

Hello
I wish to put a number for every record that is retrieved
from the record that is output by this query
For example
For the first recored/row
Generated number, ksnumber, date
1, gg111 11/05/05
2, oo235 12/06/05
the query returned 2 records 1 and 2 are the number that is
generated with this code.
In addition if there is a built in function, where in the
code do I put it???
<cfquery name="gelov datasource="kl90">
SELECT
FROM
WHERE
ORDER BY
<cfswitch expression="#Form.orderBy#">
<cfks value="KSNUMBER">
KS.KS_NBR
</cfks>
<cfks value="CREATIONDATE">
KS.KREATDAT
</cfks>
</cfswitch>
</cfquery>
<!---html report--->
<cfswitch expression="#Form.outputFormat#">
<cfks value="HTML">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<title>Ctwye Kss Report</title>
</head>
<style type="text/css">
table{
font-family:Arial, Helvetica, sans-serif;
font-size:10px;
td{
font-family:Arial, Helvetica, sans-serif;
font-size:10px;
th{
font-family:Arial, Helvetica, sans-serif;
font-size:10px;
h2{
font-family:Arial, Helvetica, sans-serif;
font-size:12px;
h3{
font-family:Arial, Helvetica, sans-serif;
font-size:13px;
</style>
<body>
<cfoutput>
<table border="0" cellpadding="3" cellspacing="0">
<tr>
<td align="center">
<h3>Ctwye Kss
Report</h3><br><br></td>
</tr>
<tr>
<td align="center">
</h2>report returned #getCtwyeKss.RecordCount#
records</h2></td>
</tr>
<tr>
<td>
<table border="1" cellpadding="2" cellspacing="0">
<tr>
<td width="160">Ks Number</td>
<td>Creation Date</td>
<!--- <td class="dataField">Address</td>
<td class="dataField">Type</td>
<td class="dataField">Description</td>--->
</tr>
<cfloop query="getCtwyeKss">
<tr bgcolor="<cfif currentrow mod
2>GHOSTWHITE<cfelse>WHITE</cfif>">
<td>#KS_NBR#</td>
<td>#dateformat(KREATDAT,"mm/dd/yyyy")#</td>
</tr>
</cfloop>
</table>
</td>
</tr>
</table>
</BODY>
</HTML>
</cfoutput>
</cfks>
<cfks value="CSV">
<CFHEADER NAME="Content-Disposition" VALUE="attachment;
filename=ctwye.csv">
<cfcontent type="application/msexcel">"Ks
Number","Creation Date"
<cfoutput
query="getCtwyeKss">#ltrim(KS_NBR)#,"#dateformat(KREATDAT,"mm/dd/yyyy")#"
<tr #IIF(getCtwyeKss.CurrentRow MOD
2,DE(''),DE('backgroundColor="##999"'))#>
<!---<tr bgcolor="<cfif currentrow mod
2>##808080<cfelse>##ffffff</cfif>"> --->
</cfoutput>
</cfks>
</cfswitch>

<cfks> is not a Coldfusion tag. Use <cfcase>
instead.
The following code will print the row numbers
<cfquery name="gelov" datasource="kl90">
select ksnumber, date
from yourTable
</cfquery>
<cfoutput query="gelov">
#currentrow#, #ksnumber#, #date#<br>
</cfoutput>

Similar Messages

  • We're sorry, but this is a serial number for a product that has been replaced. Please check your information and re-enter your serial number. If your information is correct, you may need to contact us. iPhone 4s.

    Hi everyone! I have iphone 4s, which was bought about 6 mounts later and has serial number C2*******TD6 and IMEI ****. When i try to check warranty on the page https://selfsolve.apple.com/wcResults.do i see
    We're sorry, but this is a serial number for a product that has been replaced. Please check your information and re-enter your serial number. If your information is correct, you may need to contact us.
    And if i try to enter IMEI here i see
    Our records indicate that this product has been replaced. Please provide the serial number for your replacement product to find the support and warranty coverage information. For more information, please contact us.
    Does it means, that I was bought a non exist iPhone? Or it was refurbished? I need an official answer to take them to seller because I was bought iPhone as a new.
    Thank you.
    <Edited By Host>

    Not from Apple reseller( Im apologize, that you right) Seconв question: how can i contact apple via email to get an official answer?

  • When entering my phone serial number it shows "We're sorry, but this is a serial number for a product that has been replaced. Please check your information and re-enter your serial number. If your information is correct, you may need to contact us."

    Hi,
    I had purchased an iPhone 5 last month and got the OS updated to iOS 7, yesterday.
    The data cable was of very bad quality and when I took it to the retailer for replacement, they said that its not covered under the one year warranty.
    Secondly, I have also been experiencing network coverage issues with this phone. So, I decided to contact apple care through the web. When entering my serial number/IMEI it says, "We're sorry, but this is a serial number for a product that has been replaced. Please check your information and re-enter your serial number. If your information is correct, you may need to contact us."
    Does anybody have any idea what the reason behind this could be.
    - First time with iPhone and frustrated.
    Briju

    If you purchased the iPhone from Apple or an authorized Apple reseller,
    contact them for assistance. If you purchased elsewhere, go back
    to that retailer and get them to give you a new iPhone or your money
    back.
    If you have checked the serial number carefully and re-entered it
    and that gave you the same error message, contact Apple if purchased
    from Apple or authorized retailer; otherwise you have been scammed
    and need to pursue the matter with the business you obtained the
    iPhone from.

  • How can I get the number of distinct records that each field of a DB table has?

    Hi everyone,
    I would like to know how to get he number of distinct records that each field of a DB table has. When tracing a SQL statement either in ST12 or ST05, in the plan execution, if the sentence made useage of an index, then I can click in the index name and see this kind of information (no. of distinct values for each field of that index).
    Can I do something like this but with the whole fields of a table?
    What I have found until now is in Tx ST10; I search for whatever kind of table statistics and then use the function of "Analyze table" (which takes me to Tx DB05). In here, I can enter a table and up to 5 fields in order to get the information that I want.
    Is there any other way to do this?
    Regards,
    David Reza

    Hi David,
    You can export the same to excel and sort as per requirement.
    Sorry is that what you are looking for ?
    Regards,
    Deepanshu Sharma

  • How do i get my serial number for lightroom when it was purchased from the app store?

    how do i get my serial number for lightroom when it was purchased from the app store now that the app store has discontinued selling the product?
    Thanks
    -Ethan

    Purchases from the App Store do not include serial numbers. The App Store itself provides the licensing for the product. You will have to contact Apple to have them help you reinstall Lightroom through the App store (just because it is no longer for sale does not mean that you will not be able to download your past purchases).

  • Page headers repeat for every record on *.CSV export in Crystal 8.5

    I am a MAS 90 reseller.  I have encountered this issue:
    When I try to export a report to a *.csv format in Crystal Reports version 8.5 page headers repeat for every record in the export file.  The Sage MAS 90 database provides this solution:
    This is a known Crystal Reports issue. Download U2FSEPV.DLL, version 8.6.2.475, dated 11/28/2003 from the Business Objects Web site. For more information and a download link, see knowledgebase article c2014451 at support.businessobjects.com
    Note: Be sure to select the download link for Crystal Reports 8.x.
    I cannot locate this download anywhere in the new SAP site.  Can anyone direct me to this download?
    TIA for your help!

    I was finally able to get the uploaded file by right clicking on the file and selecting Save As.  However, when I replace all instances of this dll file with the new one (renamed as directed) I continue to get headers in the CSV file.
    This does not resolve the issue of getting headers only in the output.  Is this the correct dll file or is there another issue causing this output error?

  • Getting only one spool number for every print out

    hi guys,
    when i execute my customize program i suppose to get a form in my screen, showing customer statement, when I exicute customer A out put as expected with 5 pages but after that if i exicute customer B which is supposed to be 3 pages but I am getting 8 pages which is including first out put also, its repeating same spool number for every thing and keep on adding every page , please let me know where to see for this ?? 
    for spool request    RS38L_FNAM
    and to display         'COM_SE_SPOOL_DISPLAY'

    Change ur table declaration as shown below, replace the word <b>TYPE</b> with <b>LIKE</b>
    DATA: BEGIN OF i_final OCCURS 0,
    srno TYPE i, " Serial no
    anln1 LIKE anla-anln1, " asset code no
    txt50 LIKE anla-txt50, " Brief Description of Assets
    txa50 LIKE anla-txa50, " Further Description
    ktogr LIKE anla-ktogr, " Asset Class No.
    ktgrtx LIKE t095t-ktgrtx, " Asset Class Name
    sernr LIKE anla-sernr, " Serial Number
    invnr LIKE anla-invnr, " Assets Identification No
    menge LIKE anla-menge, " Qty
    meins LIKE anla-meins, " UOM
    raumn LIKE anlz-raumn, " Location
    lifnr LIKE anla-lifnr, " Vendor
    liefe LIKE anla-liefe, " Capitalisation Date
    aktiv LIKE anla-aktiv, " Date put to use
    g_kansw LIKE anlc-kansw, " Opening Gross Block
    b_kansw LIKE anlc-kansw, " Additions during the period
    b_answl LIKE anlc-answl," Deductions/ Adjustmentsduring d period
    g_total LIKE bsis-dmbtr, " Closing Gross Block
    d_open LIKE anlb-afabg, " Dep on opening block
    d_sold LIKE anlb-afabg, " Dep on assets sold/written off
    d_add LIKE anlb-afabg, " dep on additions during the period
    afabg LIKE anlb-afabg, " Total dep for the period
    cd_sold LIKE bsis-dmbtr, " *** Dep on assets sold
    cd_asst LIKE bsis-dmbtr, " *** Dep on assets written off
    cd_dep LIKE bsis-dmbtr, " Total *** dep on deductions
    ccd_dep LIKE bsis-dmbtr, " Closing Acc Dep
    a LIKE bsis-dmbtr, " WDV of assets sold
    b LIKE bsis-dmbtr, " Selling Price
    c LIKE bsis-dmbtr, " Profit / (Loss) on sale
    d LIKE bsis-dmbtr, " Loss on write off
    e LIKE bsis-dmbtr, " Opening WDV
    f LIKE bsis-dmbtr, " Closing WDV
    END OF i_final.

  • Access 2010 Chart - Report returns an identical chart for every record in the underyling query

    Hi there, I hope someone can help me with this. I've created a stacked column chart in a Report. The chart seems to be working fine but my report is returning a chart for every record in the source query.  The chart adds up the days each vehicle in
    a fleet was used in a given time frame.  I'm not a code writer so wizarded my way to the following:
    TRANSFORM Sum(QVehicleDaysUsed.[DaysOfUseThisMonth]) AS SumOfDaysOfUseThisMonth SELECT QVehicleDaysUsed.[YearMakeModelPlate] FROM QVehicleDaysUsed GROUP BY QVehicleDaysUsed.[YearMakeModelPlate] PIVOT QVehicleDaysUsed.VehicleUseForMonthStarting;
    The chart seems to be producing exactly what I want but it's repeated once for every record in the source query. I don't know if this is the issue but I don't have a Master/Child field linking the chart to the report it's in - chart is unbound and therefore
    won't allow me to link fields. I'd sure appreciate any help you can offer! Thanks!
    (Incidentally VehicleUseForMonthStarting is a date field - ideally it should be shown as a DatePart MMMM but for whatever reason Access is balking at the Format expression.)
    Thanks!

    GOT IT! Hurray.  Obvious after giving it more thought... I had to make the report the chart was in Unbound. :) Leaving post up in case it helps someone else out.

  • We're sorry, but this is a serial number for a product that has been replaced. Please check your information and re-enter your serial number. If your information is correct, you may need to contact us.

    i am going to buy iphone 5 32 gb from some before i bought i check the serial number of that iphone on apple web site to cross check but massage is appering that ......'
    We're sorry, but this is a serial number for a product that has been replaced. Please check your information and re-enter your serial number. If your information is correct, you may need to contact us....
    can any one tell me what is that mean..... replace what ?

    In most cases, what you said is true...however, this is not always the case.  Take myself for example...
    1: I posted my phone online to sell
    2: Someone saw my serial number and called AppleCare to get a replacement phone
    3: An inferior AppleCare representative bypassed a component validation (check serial number to the device on hand) and approved the replacement under my AppleCare plan.
    4:  After noticing this (about 4 days after it happened) and  a trip to Apple and a call to AppleCare, all was resolved.  My phone is back to being covered under AppleCare+
    5:  I learned my lesson.
    So, as you can see, there is a chance that it can be something else.  Although, if the person selling the phone notices, it shouldn't take long to resolve it. Chances are that it is what you said.
    Hope this helps

  • I am getting a message. What does it means "We're sorry, but this is a serial number for a product that has been replaced. Please check your information and re-enter your serial number. "

    I have tried getting service support information from Apple Support Service. When entered my serial no. got this
    I am getting a message."We're sorry, but this is a serial number for a product that has been replaced. Please check your information and re-enter your serial number. "
    What does it means???

    ashishtgb wrote:
    I dont have any idea . I brought out it new from the market.!
    Well, when you purchase from a non-official source you run the risk of getting who knows what from wherever. It appears this phone was replaced under warranty at some point, but not returned to Apple for refurbishment. Thus, the SN is no longer valid for warranty & service. If you can return it and get your money back, I'd suggest you do so.

  • HT4061 What does it mean This is an imei number for a product  that has been replaced!

    What does it mean
    This is an imei number for a product
    that has been replaced?

    What carrier did you buy it from? Are they on this list? http://support.apple.com/kb/HT1937?viewlocale=en_US&locale=en_US
    If they are on that list and you have the original receipt from them showing the serial number, they may be able to correct the error in the Apple database.
    If they're not on that list, you were sold a black market phone.

  • HT5691 Why can't I purchase applecare support for my iphone5 that was bought from ATT?

    Why can't I purchase applecare support for my iphone5 that was bought from ATT?

    not online like I usually do.
    when I enter the serial number, it shows standard warranty with no option to purchase exended applecare+

  • Serial number for a product that has been replaced

    What happen with my phone, i check my serial number and i see "serial number for a product that has been replaced"
    can you help me & give me advice..

    yes my phone is still working for me.
    so, meaning to "serial number for a product that has been replaced with" I don't have a warranty from apple?

  • Is it possible to save System preference settings for every user that logins to a Mac OS X?

    I work at a school and we have iMacs running Mavericks 10.9 in our environment.  We have them binded to our Windows domain so that way students can use their own login to access the Macs.  I have a number of System preference settings that I would like to take a effect, but I only see that these settings take effect for every user.  So even if I login as the Main administrator account and set settings in System Preferences, such as not allowing the Wifi symbol to show, the next user that logins will still see the wifi symbol because the setting isn't taking effect for their System preferences.  Does anyone know a way to get System Preference settings to take affect for every user that logins? Maybe a script?

    Modifying the user template is not supported. You can Google for people who have done it in the past. I would recommend going to official route, if possible. Here are a couple of training documents. I'm sure there is more available though more official channels.
    http://training.apple.com/pdf/wp_osx_configuration_profiles_ml.pdf
    https://www.apple.com/education/docs/l521219b_osx_deployment_guide_030513.pdf
    http://training.apple.com/pdf/wp_integrating_active_directory_mav.pdf

  • To genrate individual file for every record.

    Hi Experts,
    I am receiving a message with multiple records. I need to generate individual files for every record.
    How can it be done?
    Thanks
    Karthik

    Bhatia,
    FCC is file content conversion. If your sender communication channel is file and the file is any fixed length or with any separator then you can use this option in your file sender communication channel.
    Regards,
    ---Satish

Maybe you are looking for

  • Multiple error messages while trying to open iTunes

    Downloaded the latest upgrade (much to my chagrin) and then started getting error messages when I tried to open iTunes. First was: "iTunes cannot run because some of its required files are missing. Please reinstall iTunes." So I did. Then I got this

  • How to run a stored procedure in TOAD 9.0

    Dear Friends, I am using TOAD 9.0 . Running a procedure but getting the error .. create or replace PROCEDURE UPD_TBL(I_table_name IN VARCHAR2) IS CURSOR c_columns is select column_name from ALL_TAB_COLUMNS where TABLE_NAME = I_table_name; BEGIN FOR r

  • Error while invoking svrmgrl.

    I'm trying to upgrade my 8.1.7 db to 10gR2. As part of the process, i've modified the init.ora. copied the listener and tnsnames files to 10g OH.moved the init.ora to 10gOH. Modified these files to reflect the new oracle_home. I've set the new oracle

  • Digital signatures for customer facing documents

    Hello, I am a pretty experienced user of Adobe TechComm Suite (FrameMaker, RoboHelp), but I've never needed to dig too deep into Acrobat, so I am a newbie when it comes to setting up digital signatures. I am using Acrobat Pro XI on Windows 7 professi

  • Metadata keeps wanting to be saved on assets.

    Greetings, My location has a FCS installation as well as a FileMaker Server installation. We are pushing metadata from FMS via XML to FCS. This process works fine. However, when users are manipulating assets in FCS that have had metadata pushed into