Cfreport  ("HTML format") missing columns for a query

Using Linux Fedora, ColdFusion 8 Developer Edition.
Problem:
The command:
<cfreport
format="HTML"
template="ReportTemplateHtml.cfr"
filename="Report.html"
overwrite="yes"
query=#structReport.query#
>
With Format equal to PDF or RTF, which is correct output:
"item" "Description" "Qty" "Unit Price" "Extension"
The HTML output writes the following columns:
"item" "" "" "Unit Price" "Extension"
The "Description" and "Qty" are missing.
Any ideas as to why data is missing from HTML report?
The html output for the table is as follows:
<tr valign="top">
<td style="width: 18px; height: 18px;"></td>
<td colspan="3" style="background-color: #EDE9C6;
border-top-style: solid; border-top-width: 1px; border-top-color:
#000000; padding-top: 1px; border-left-style: solid;
border-left-width: 1px; border-left-color: #000000; padding-left:
3px; border-bottom-style: solid; border-bottom-width: 1px;
border-bottom-color: #000000; padding-bottom: 1px;
border-right-style: solid; border-right-width: 1px;
border-right-color: #000000; padding-right: 3px; "><span
style="font-family: Helvetica; background-color: #EDE9C6;
font-size: 10.0pt; font-weight:
bold;">Item</span></td>
<td colspan="6" style="width: 273px; height:
18px;"></td>
<td colspan="3" style="background-color: #EDE9C6;
border-top-style: solid; border-top-width: 1px; border-top-color:
#000000; padding-top: 1px; border-left-style: solid;
border-left-width: 1px; border-left-color: #000000; padding-left:
3px; border-bottom-style: solid; border-bottom-width: 1px;
border-bottom-color: #000000; padding-bottom: 1px;
border-right-style: solid; border-right-width: 1px;
border-right-color: #000000; padding-right: 3px; "><span
style="font-family: Helvetica; background-color: #EDE9C6;
font-size: 10.0pt; font-weight: bold;">Unit
Price</span></td>
<td colspan="3" style="background-color: #EDE9C6;
border-top-style: solid; border-top-width: 1px; border-top-color:
#000000; padding-top: 1px; border-left-style: solid;
border-left-width: 1px; border-left-color: #000000; padding-left:
3px; border-bottom-style: solid; border-bottom-width: 1px;
border-bottom-color: #000000; padding-bottom: 1px;
border-right-style: solid; border-right-width: 1px;
border-right-color: #000000; padding-right: 3px; "><span
style="font-family: Helvetica; background-color: #EDE9C6;
font-size: 10.0pt; font-weight:
bold;">Extension</span></td>
<td style="width: 19px; height: 18px;"></td>
</tr>

Query Builder is a crutch tool. Small, lightweight, but limited. It does not have every inline function you see in the SQL reference guide. If you need more, then you have to do more on your own.

Similar Messages

  • RPD - Cannot obtain number of columns for the query result :Working with MS SQL 2012 schema

    Hi All,
    I have created my warehouse in MS SQL 2012.
    For management purpose, I have created different schemas in SQL database
    In RPD, Physical layer, when i view data > I get error as
    [nQSError:16002] Cannot obtain number of columns for the query result.
    [nQSError:16001] ODBC error state : S0002 code : 208 message: [Microsoft][ODBC SQL Server Driver][SQL Server] Invalid object name 'tbl'..
    [nQSError:16001] ODBC error state : S0002 code : 208 message: [Microsoft][ODBC SQL Server Driver][SQL Server] Statements could not be prepared..
    I have already browsed : OBIEE 11g Strange ODBC Driver Error with SQL Server : Total Business Intelligence ... did not help me
    please help!!!

    Hi All,
    After all R&D it is been found that Oracle business administrator( RPD) needs default dbo schema. It doesn't accept custom schema for pulling data.
    If anybody have other views please share.!!
    Thank you

  • Missing field for MDX query for All Members

    Hello,
    I'm using MDX query with SSRS for report and I ran into this issue:
    Query 1:
    select non empty ([Product].[Category].allmembers*[Date].[Calendar].[Calendar Year].allmembers ) on 1,
    ([Measures].[Internet Sales Amount]) on 0
    from [Adventure Works]
    go
    Query 2
    select non empty ([Product].[Category].[All]*[Date].[Calendar].[Calendar Year].allmembers ) on 1,
    ([Measures].[Internet Sales Amount]) on 0
    from [Adventure Works]
    In case I run query 2 in SSDT (query designer), it doesn't return first column whereas if I run above two queries in SSMS, I get similar columns/fields.
    How it can be resolved in SSRS to return all columns for query 1 and 2.
    Thanks,
    P
    mark it as answer if it answered your question :)

    Hello,
    I'm using MDX query with SSRS for report and I ran into this issue:
    Query 1:
    select non empty ([Product].[Category].allmembers*[Date].[Calendar].[Calendar Year].allmembers ) on 1,
    ([Measures].[Internet Sales Amount]) on 0
    from [Adventure Works]
    go
    Query 2
    select non empty ([Product].[Category].[All]*[Date].[Calendar].[Calendar Year].allmembers ) on 1,
    ([Measures].[Internet Sales Amount]) on 0
    from [Adventure Works]
    In case I run query 2 in SSDT (query designer), it doesn't return first column whereas if I run above two queries in SSMS, I get similar columns/fields.
    How it can be resolved in SSRS to return all columns for query 1 and 2.
    Thanks,
    P

  • How to change the name of the column for dynamic query

    I would like to change the name of the column name to bidderone, biddertwo and bidderthree. the only problem is the vendors name unknown when I run the query and sometimes the query returns two vendors. the maximum vendor is three. here is the query and please let me know how this can be done. thank you so much. I am using oracle 10i
    FOR lv_rec IN   ( SELECT vendor, calcbtot
      FROM (SELECT t.*, ROW_NUMBER () OVER (ORDER BY t.calcbtot Asc) rn
              FROM (  SELECT DISTINCT
                             s.vendor,
                             TO_CHAR (s.calcbtot, '999,999,999.00') calcbtot
                        FROM bidtabs b, bidders s
                       WHERE     b.CALL = s.CALL
                             AND b.letting = s.letting
                             AND b.vendor = s.vendor
                             AND b.letting = v_letting
                             AND b.CALL = v_call
                    ORDER BY 2) t)
    WHERE rn <= 3 )                 
       LOOP
          lv_sql :=
                lv_sql  || ', TO_CHAR(MAX(DECODE(TRIM(S.VENDOR),'''|| TRIM (lv_rec.vendor) || ''', S.BIDPRICE)),  ''$999,999,999.00'') AS "'|| TRIM (lv_rec.vendor) ||'" ';
       END LOOP;

    thank you so so much for your help on this. I am sorry i did not post the entire code. my intention is to use bidderone, biddertwo,bidderthree as a column name insead of the name of the vendors and also calcuate the average of the three vendors. the maximum vendor will be three but the minumum could be one or two. hope this is enought information to help me out further . thank you
    CREATE OR REPLACE PROCEDURE biddersquoteforbridge (
       p_spnumber   IN       VARCHAR2,
       p_result     OUT      sys_refcursor
    IS
       v_letting   VARCHAR2 (40);
       v_call      VARCHAR2 (40);
       lv_sql      VARCHAR2 (32767) := NULL;
    BEGIN
       SELECT DISTINCT L.LETTING, CALL
                  INTO v_letting, v_call
                  FROM LETPROP L, PROPOSAL P
                 WHERE L.LCONTID = P.CONTID AND CPROJNUM= p_spnumber;
       lv_sql :=
          'SELECT   O.PRPITEM "Item Number",
                    INITCAP(FUNC_GET_ITEM_DESCRIPTION(O.PRPITEM)) "Description",
                    O.CONTID "Contract Id",O.SECTION "Section" , P.CPROJNUM "SP Number", P.CFACSSUP "District",
                    FUNCT_GET_SECTION_IDENTIFIER(O.SECTION, O.CONTID) "Section Title",  ''Q''||(TO_CHAR(D.DATELET, ''Q-YYYY'')) "Quarter",
                    O.IPLINENO "Line Number", O.QTY "Quantity" ';
      FOR lv_rec IN   ( SELECT vendor, calcbtot
      FROM (SELECT t.*, ROW_NUMBER () OVER (ORDER BY t.calcbtot Asc) rn
              FROM (  SELECT DISTINCT
                             s.vendor,
                             TO_CHAR (s.calcbtot, '999,999,999.00') calcbtot
                        FROM bidtabs b, bidders s
                       WHERE     b.CALL = s.CALL
                             AND b.letting = s.letting
                             AND b.vendor = s.vendor
                             AND b.letting = v_letting
                             AND b.CALL = v_call
                    ORDER BY 2) t)
    WHERE rn <= 3 )                 
       LOOP
          lv_sql :=
                lv_sql  || ', TO_CHAR(MAX(DECODE(TRIM(S.VENDOR),'''|| TRIM (lv_rec.vendor) || ''', S.BIDPRICE)),  ''$999,999,999.00'') AS "'|| TRIM (lv_rec.vendor) ||'" ';
       END LOOP;
       lv_sql :=
             lv_sql
          || '
            FROM   PROPITEM O  ,                   
                   PROPOSAL P  ,
                   LETPROP  L  ,
                   BIDDERS  B  ,
                   BIDTABS  S  ,
                   BIDLET   D
             WHERE O.CONTID = P.CONTID
                    AND P.CONTID = L.LCONTID
                    AND L.CALL = B.CALL
                    AND L.LETTING = B.LETTING
                    AND B.CALL = S.CALL             
                    AND B.LETTING = S.LETTING
                    AND B.VENDOR = S.VENDOR 
                    AND S.IPLINENO = O.IPLINENO
                    AND L.LETTING = D.LETTING             
                    AND O.LINEFLAG =''L''    
                    AND L.LETTING = :B1
                    AND L.CALL = :B2
             GROUP BY
                   O.CONTID,
                   O.SECTION,
                   O.IPLINENO,
                   O.PRPITEM,
                   O.QTY,
                   P.CPROJNUM,
                   P.CFACSSUP,
                   O.PRICE ,
                   D.DATELET             
             ORDER BY O.IPLINENO ';
      -- DBMS_OUTPUT.put_line (lv_sql);
       OPEN p_result FOR lv_sql USING v_letting, v_call;
    END;

  • Query Schema error adding columns for a query at workbench channel

    Hello experts,
    For our customer, we have created a custom query and it has been included into the query group Master Agreement List to be also used on the Master Agreement List Channel. However, when use tries to add columns, following error is raised:
    Do you know if this issue can be fixed? Is there any system property controlling this property?
    Thanks in advance and best regards,
    Isaac

    Hello Isaac,
    Thank you for providing the additional details. Some of the saved changes to the advanced list page query is stored as XML data in the database, so as rightly pointed out by Bogdan it appears that you may have hit the limit especially when dealing with large number of columns. Since the limitation is
    at the DB level our options for a solution will be limited as well. I’m following up with development team to see if there is a way to optimize the xml to make little bit more room or may be come up with an alternate approach. Either way it would require product code change. It would be helpful if you could open a message and add the details so we can track it.
    Regards,
    Vikram

  • Changing format, missing column

    I never use the message window in the Inbox. I leave it so that the Inbox window is only a list of messages; if I want to read one, I double click and read it in its own window. One of the columns I always want to see is the Flags column. For years, there was no glitch.
    But now, frequently, when I start the program, the Inbox comes up with the split screen (showing the message box), and whenever it does this, the Flags column is not visible. I have to expand the message list each time, and go to the menu and re-instate the Flags.
    What's the deal?
    G4   Mac OS X (10.4.6)  

    You may try re-creating the file where those settings are stored:
    1. If you have a .Mac account and .Mac synchronization of Mail data is enabled either in Mail > Preferences > General or in System Preferences > .Mac, disable it before proceeding.
    2. Quit Mail if it’s running.
    3. Make a backup copy of the ~/Library/Mail folder, just in case something goes wrong while trying to solve the problem. You can do this in the Finder by dragging the folder to the Desktop while holding the Option (Alt) key down, for example. This is where all your mail is locally stored.
    4. In the Finder, go to ~/Library/Preferences/. Locate com.apple.mail.plist and move it to the Desktop (to be deleted if this solves the problem).
    5. Open Mail. You’ll have to set up your non-.Mac accounts from scratch all over again. If given the option to import existing mailboxes or something like that, don’t. Just enter the account information and Mail will automagically rediscover the data in ~/Library/Mail/ when done.
    6. You’ll have to re-configure most of your settings in Mail > Preferences. For spam-related security reasons, the first thing you should do is go to Preferences > Viewing and disable Display remote images in HTML messages if it’s enabled.
    7. You may also need to re-install or re-enable any Mail plug-ins you have installed for Mail to recognize them.
    8. As a side effect of re-creating com.apple.mail.plist, Mail might rename Outbox (which is where messages waiting to be sent are stored) to Delivered. The name of that mailbox is actually a misnomer, as it would contain messages (if any) that couldn’t be delivered for some reason. You can delete that mailbox if you wish.
    9. If the problem is fixed now and .Mac synchronization of Mail data was enabled at the beginning, enable it again, go to System Preferences > .Mac > Advanced, click Reset Sync Data, and choose the appropriate options to reset the Mail data stored on the .Mac server with the data locally stored on the computer, i.e. sync data must flow from the computer to the .Mac server.
    Note: For those not familiarized with the ~/ notation, it refers to the user’s home folder. You can easily locate any of the folders referred to in this post by copying the folder path here, doing Go > Go to Folder in the Finder, and pasting the folder path there.

  • Edit properties missing columns for some documents

    SP 2010
    I created a new document library and added several choice columns.  I copied about 150 files from an old document library using folders to the new document library.  23 files of the 150 will not let me see anything other than the file name when
    I select Edit Properties.
    I downloaded one of the files, renamed it, and uploaded it as a new document.  It also will not show anything other than the file name.  These are MS Word .docx file types.  When I use the Document Information Panel it does not show the columns
    from the document library (where I opened it from).
    What might be causing these few select files to not allow metadata to be set?
    Greg W Appelt SharePoint Designer Project Server Noob

    After some more trial I understand, it is not "Some" of the documents.
    This issue is with ID having "_" (underscore) in their names.
    Can it be handled in some way by AI ?

  • Capturing cursor output in HTML format

    Hi,
    I want to capture Cursor's output in html format.
    following is the current query which is giving me output as mentioned below it
    Query:-
    declare
    v_msgtext  varchar(4000);
    cursor c_query IS
    select emp_no,emp_name,salary
              from employees
              where dept_id = 100;
    begin
    for v_query in c_query LOOP
    v_msgtext = v_msgtext ||
                        'empno:'|| v_query.emp_no||','||
                        'emp_name:'||v_query.emp_name||'.'||
                        'emp_salary:'||'v_query.salary'||
                        char(13)||char(10);
    END LOOP;
    utl_mail.send(v_sender, v_recipient, NULL, NULL, v_subject, v_msgText, 'text/html; charset=windows-1250', NULL);
    end; 
    o/p:-
    empno: 123,emp_name:sagar,emp_salary:10,000
    empno: 124,emp_name:neeraj,emp_salary:20.000
    empno: 125,emp_name:ashish,emp_salary:18.000
    empno: 126,emp_name:ramesh,emp_salary:5.000
    empno: 127,emp_name:suresh,emp_salary:30.000
    I want to generate the output as HTML report in tabular format with the below columns
    (empno,emp_name,salary) and send this html file via email to user.
    Can anybody please suggest a solution ASAP.
    Thanks in advance.

    Hi ,
    Please follow the below link may it will be useful for you.It shows how to generate a HTML format output through the query.
    oracle - Within a PL/SQL procedure, wrap a query or refcursor in HTML table - Stack Overflow

  • Capture cursor output in HTML format in PL/SQL

    Hi,
    I want to capture Cursor's output in html format.
    following is the current query which is giving me output as mentioned below it
    Query:-
    declare
    v_msgtext  varchar(4000);
    cursor c_query IS
    select emp_no,emp_name,salary
              from employees
              where dept_id = 100;
    begin
    for v_query in c_query LOOP
    v_msgtext = v_msgtext ||
                        'empno:'|| v_query.emp_no||','||
                        'emp_name:'||v_query.emp_name||'.'||
                        'emp_salary:'||'v_query.salary'||
                        char(13)||char(10);
    END LOOP;
    utl_mail.send(v_sender, v_recipient, NULL, NULL, v_subject, v_msgText, 'text/html; charset=windows-1250', NULL);
    end;  
    o/p:-
    empno: 123,emp_name:sagar,emp_salary:10,000
    empno: 124,emp_name:neeraj,emp_salary:20.000
    empno: 125,emp_name:ashish,emp_salary:18.000
    empno: 126,emp_name:ramesh,emp_salary:5.000
    empno: 127,emp_name:suresh,emp_salary:30.000
    I want to generate the output as HTML report in tabular format with the below columns
    (empno,emp_name,salary) and send this html file via email to user.
    Can anybody please suggest a solution ASAP.
    Thanks in advance.

    Hi,
    You can do in this way ...
    CALL FUNCTION 'WWW_ITAB_TO_HTML'
         TABLES
              HTML   = F_HTML
              FIELDS = FLDS
              ITABLE = ITAB.
    IF SY-SUBRC NE 0.
      WRITE: / 'Error in generating the html format'.
      EXIT.
    ENDIF.
    CALL FUNCTION 'WS_DOWNLOAD'
         EXPORTING
              FILENAME         = 'c:test.html'
              MODE             = 'BIN'
         TABLES
              DATA_TAB         = F_HTML
         EXCEPTIONS
              FILE_OPEN_ERROR  = 1
              FILE_WRITE_ERROR = 2
              OTHERS           = 9.
    call these 2 Fucntion modules for every page. so each page it wil downlaod a HTML page
    Regards
    Sudheer

  • Send email with attachment html format.

    Hello experts,
    I have 1 screen with 4 tables , 3  is table control , and 1 is container .
    I want sent e-mail which include this screen in html format.
    How can i do this?
    Thanks for the help.
    Avi.
    Edited by: avi azulay on Oct 13, 2010 10:38 PM

    Hello ,
    It is not help me, i want to know how convert screen with 3 table control and 1 container to html format?
    Thanks for the help,
    Avi.

  • Count number of colums for that query.

    Hi all,
    I need to return the number of columns for that query, the columns are not known...dynamic columns.
    i.e
    1) Example 1
    select column1, column2
    from dual;
    Result should return counter = 2
    2) Example 2:
    select column1, column2,column3,column4, column5
    from dual;
    Result should return counter = 5
    from dual;
    Result should return counter = 2
    Thanks.

    qwestion wrote:
    I need to return the number of columns for that query, the columns are not known...dynamic columns.For this you'll need to use the DBMS_SQL package:
    e.g.
    SQL> ed
    Wrote file afiedt.buf
      1  CREATE OR REPLACE procedure query_col_count(p_sql IN VARCHAR2) IS
      2    c NUMBER;
      3    rec_tab DBMS_SQL.DESC_TAB;
      4    col_cnt INTEGER;
      5  BEGIN
      6    c := DBMS_SQL.OPEN_CURSOR;
      7    DBMS_SQL.PARSE(c, p_sql, DBMS_SQL.NATIVE);
      8    DBMS_SQL.DESCRIBE_COLUMNS(c, col_cnt, rec_tab);
      9    DBMS_SQL.CLOSE_CURSOR(c);
    10    DBMS_OUTPUT.PUT_LINE('Number of columns: '||col_cnt);
    11* END;
    SQL> /
    Procedure created.
    SQL> exec query_col_count('select empno, ename from emp');
    Number of columns: 2
    PL/SQL procedure successfully completed.
    SQL> exec query_col_count('select * from emp');
    Number of columns: 8
    PL/SQL procedure successfully completed.
    SQL>

  • Send emails in html format

    Hi All,
    My requirement is to send emails. I am using javamail and it works fine. But the body of the email should be in table format.
    I am planning to use Html as below. But don't know how to combine html in java. Is there any other way of achieving it ? Please let me know if I am not clear.
    <htm>
    <table border="1">
    <tr>
    <td bgcolor="red">Header</td>
    </tr>
    <tr>
    <td bgcolor="yellow">Sub Header1</td>
    <td bgcolor="yellow">Sub Header1</td>
    </tr>
    <tr>
    <td bgcolor="green">Values</td>
    <td bgcolor="green">Values</td>
    </tr>
    </html>

    so, do I need another method which tells Java whereto output the HTML Tags ?
    The method writes to a PrintWriter defined somewhere,
    you can also pass the PrintWriter as third argument
    to the method.
    To generate a String containg the whole HTML Dokument
    you would write something like:
    StringWriter stringWriter = new StringWriter();
    PrintWriter printWriter = new
    PrintWriter(stringWriter);
    writeStartTable();
    writeStartRow();
    writeCell("BlaBla", "green");
    printEndTable();
    printWriter.flush();
    printWriter.close();
    stringWriter.close();
    String content = stringWriter().toString();
    BodyPart mailBody = new MimeBodyPart();
    mailBody.setContent(content, "text/html");
    I was succesful in sending mail using HTML format. Thanks for ur reply.
    But if I try send the mail in HTML format along with an attachment, the MIME type defaults to "text/plain".
    Is there a way to set the MIME type to "text/html" when I send mail with an attachment.
    Please help . Let me know if I am not clear

  • Outlook 2010 - Always reply using HTML Format Option???

    Hey Guys,
    Have had a good look through the outlook 2010 options but can't find anywhere the option you had in previous outlook versions to set always reply using HTML format email as your default reply type.
    You can open the email and go to the "Format Text" tab and Select "HTML" but I was looking for a permenant way of setting HTML.
    Thanks for any help you can give,
    Thomas

    A couple of things spring to mind.
    If you click the Reply button then delete the TO address and type a different one that's not really a reply. You are effectively Forwarding the message (to another person) and changing its format to suit that other person. Perhaps you
    could investigate adding a custom button that does these two actions with one click.
    Your bug system started the email in Plain Text, probably because it isn't configured for or can't handle HTML mail. Perhaps you could investigate if it can be configured to use HTML format or changed for a system that can.
    You don't have to copy and paste your HTML signature. After you change to HTML format, just click Insert | Signature again and any Plain Text signature should be replaced by an HTML one. (Outlook 2007 and 2010 certainly do this as they know where the signature
    is. I seem to remember that 2003 and before add an HTML signature to the message so you have to delete any existing Plain Text one and/or move the HTML signature to the right place in the message.) This is assuming you have Outlook add a signature to all messages
    as they are created. If you don't then there is no signature to change on the message. You just add the signature after changing format.
    I fully accept that there are valid reasons for wanting to force Outlook to use HTML format
    in certain circumstances but it will not be the right thing to do 100% of the time and if you do so you risk the message you send being unreadable at the other end. For this reason Outlook makes the change of format a manual task. It could, in future,
    make it easier or help you decide when it is appropriate. We will have to wait and see what transpires in Office '15' which should be going to public beta in the next couple of months.
    Simon Jones
    If you found this post helpful, please "Vote as Helpful". If it actually answered your question, please remember to
    "Mark as Answer". This will help other people find answers to their problems more quickly.

  • How to Get Missing Dates for Each Support Ticket In My Query?

    Hello -
    I'm really baffled as to how to get missing dates for each support ticket in my query.  I did a search for this and found several CTE's however they only provide ways to find missing dates in a date table rather than missing dates for another column
    in a table.  Let me explain a bit further here -
    I have a query which has a list of support tickets for the month of January.  Each support ticket is supposed to be updated daily by a support rep, however that isn't happening so the business wants to know for each ticket which dates have NOT been
    updated.  So, for example, I might have support ticket 44BS which was updated on 2014-01-01, 2014-01-05, 2014-01-07.  Each time the ticket is updated a new row is inserted into the table.  I need a query which will return the missing dates per
    each support ticket.
    I should also add that I DO NOT have any sort of admin nor write permissions to the database...none at all.  My team has tried and they won't give 'em.   So proposing a function or storable solution will not work.  I'm stuck with doing everything
    in a query.
    I'll try and provide some sample data as an example -
    CREATE TABLE #Tickets
    TicketNo VARCHAR(4)
    ,DateUpdated DATE
    INSERT INTO #Tickets VALUES ('44BS', '2014-01-01')
    INSERT INTO #Tickets VALUES ('44BS', '2014-01-05')
    INSERT INTO #Tickets VALUES ('44BS', '2014-01-07')
    INSERT INTO #Tickets VALUES ('32VT', '2014-01-03')
    INSERT INTO #Tickets VALUES ('32VT', '2014-01-09')
    INSERT INTO #Tickets VALUES ('32VT', '2014-01-11')
    So for ticket 44BS, I need to return the missing dates between January 1st and January 5th, again between January 5th and January 7th.  A set-based solution would be best.
    I'm sure this is easier than i'm making it.  However, after playing around for a couple of hours my head hurts and I need sleep.  If anyone can help, you'd be a job-saver :)
    Thanks!!

    CREATE TABLE #Tickets (
    TicketNo VARCHAR(4)
    ,DateUpdated DATETIME
    GO
    INSERT INTO #Tickets
    VALUES (
    '44BS'
    ,'2014-01-01'
    INSERT INTO #Tickets
    VALUES (
    '44BS'
    ,'2014-01-05'
    INSERT INTO #Tickets
    VALUES (
    '44BS'
    ,'2014-01-07'
    INSERT INTO #Tickets
    VALUES (
    '32VT'
    ,'2014-01-03'
    INSERT INTO #Tickets
    VALUES (
    '32VT'
    ,'2014-01-09'
    INSERT INTO #Tickets
    VALUES (
    '32VT'
    ,'2014-01-11'
    GO
    GO
    SELECT *
    FROM #Tickets
    GO
    GO
    CREATE TABLE #tempDist (
    NRow INT
    ,TicketNo VARCHAR(4)
    ,MinDate DATETIME
    ,MaxDate DATETIME
    GO
    CREATE TABLE #tempUnUserdDate (
    TicketNo VARCHAR(4)
    ,MissDate DATETIME
    GO
    INSERT INTO #tempDist
    SELECT Row_Number() OVER (
    ORDER BY TicketNo
    ) AS NROw
    ,TicketNo
    ,Min(DateUpdated) AS MinDate
    ,MAx(DateUpdated) AS MaxDate
    FROM #Tickets
    GROUP BY TicketNo
    SELECT *
    FROM #tempDist
    GO
    -- Get the number of rows in the looping table
    DECLARE @RowCount INT
    SET @RowCount = (
    SELECT COUNT(TicketNo)
    FROM #tempDist
    -- Declare an iterator
    DECLARE @I INT
    -- Initialize the iterator
    SET @I = 1
    -- Loop through the rows of a table @myTable
    WHILE (@I <= @RowCount)
    BEGIN
    --  Declare variables to hold the data which we get after looping each record
    DECLARE @MyDate DATETIME
    DECLARE @TicketNo VARCHAR(50)
    ,@MinDate DATETIME
    ,@MaxDate DATETIME
    -- Get the data from table and set to variables
    SELECT @TicketNo = TicketNo
    ,@MinDate = MinDate
    ,@MaxDate = MaxDate
    FROM #tempDist
    WHERE NRow = @I
    SET @MyDate = @MinDate
    WHILE @MaxDate > @MyDate
    BEGIN
    IF NOT EXISTS (
    SELECT *
    FROM #Tickets
    WHERE TicketNo = @TicketNo
    AND DateUpdated = @MyDate
    BEGIN
    INSERT INTO #tempUnUserdDate
    VALUES (
    @TicketNo
    ,@MyDate
    END
    SET @MyDate = dateadd(d, 1, @MyDate)
    END
    SET @I = @I + 1
    END
    GO
    SELECT *
    FROM #tempUnUserdDate
    GO
    GO
    DROP TABLE #tickets
    GO
    DROP TABLE #tempDist
    GO
    DROP TABLE #tempUnUserdDate
    Thanks, 
    Shridhar J Joshi 
    <If the post was helpful mark as 'Helpful' and if the post answered your query, mark as 'Answered'>

  • Where to add html format for phone # so it dials on touch in List View

    Hi,
    In Apex 4.2 Jquery mobile list view how can you apply html format for the phone# field to make it dial with a touch.  For example, I see how to do a list view of the 'DEMO_CUSTOMER' sample data, but I cannot figure out how to format the phone # fields so that they will dial on touch.  I know the HTML tags to use and I know how to use it in a standard report, but I can't figure out list view.
    Thanks,
    Pat

    Hi, Vincent,
    Thanks for the quick response!  I found the Settings and subtype but when I set to phone it does not make the phone # dial-able on touch.
    In a report I can set : Column Formatting --> HTML expression to:
    <a href="tel:#PHONE_NUMBER#">#PHONE_NUMBER#</a>
    The phone # will then dial out when touched on smartphone.  List view does not seem to allow formatting the column with such a format.  Seems strange that Jquery mobile would not have this type of formatting 'built in' so any subtype defined as phone would automatically be dialed on touch.
    Pat

Maybe you are looking for

  • Can not update Adobe Reader as it did not come from Apple App Store.

    Can not update Adobe Reader or Adobe Lightroom 5 as they did not come through Apple App Store.  Note says I selected not to accept apps other than from Apple.  Just started backing up new Iphone and Ipad to Macbook Pro.  Is there a setting some where

  • I get "itunes not installed correctly error 7 windows error 193?

    tried to open itunes today and got "itunes not installed correctly reinstall error 7 windows 193" ?  I did nothing to my system just wanted to open itunes.  I had no problem other times before. If I reinstall will I lose my songs.  I can still get  t

  • Access range function in SAP/R3

    I have the following problem: I want to develop a portal component that is accessing SAP/R3 transactions and show the result in the portal. Therefore I'm using a form.The values within the form are handed over to the RFC as import parameter. A table

  • Should I partition on the Mac?

    I've got the full CS4 Master Suite. I'm just about to get a new iMac with 2TB internal HD, 16GB RAM. Can anyone tell me the best way to set up the iMac's HD to get the best from Premiere Pro? I've just read Harm Millaar's interesting post: Storage ru

  • Page breaks in form - can't print only one page?

    Hi guys This might be a really simple question - but how do I insert page breaks into my form? I have 8 pages in my document, and it is showing me this, so there seems to be no issue until I try to print only one page, and the whole document prints o