Lines between every other record in show report

I've noticed that when I display the results of an Application-Report in Portal with Internet Explorer there is always a faint gray line between the second and third record, the forth and fith record, etc... When viewed with Netscape 6.1 this same report looks as I designed it, with a plain white background behind all of the records. Is there a workaround for this?

Here are a couple of formulas that should help you out.
This will calc the time diff between sequential start and end times
WhilePrintingRecords;
Global DateTimeVar x := IF {TableName.Type} = "start" THEN {TableName.TimeStamp} ELSE x;
Local DateTimeVar y := {TableName.TimeStamp};
Local NumberVar z:= IF {TableName.Type} = "start" THEN 0 ELSE DateDiff("n", x, y);
And this one will provide a manual running total
WhilePrintingRecords;
Global DateTimeVar x := IF {TableName.Type} = "start" THEN {TableName.TimeStamp} ELSE x;
Local DateTimeVar y := {TableName.TimeStamp};
Global NumberVar z:= z + IF {TableName.Type} = "start" THEN 0 ELSE DateDiff("n", x, y);
Note that you'll want to sort  the records by the "TimeStamp"
HTH,
Jason

Similar Messages

  • It possible to insert lines between 2 other lines in Grid

    Hi
    Is it possible to insert lines between 2 other lines in the Grid. Example, I need to enter a new item between line 1 and 2 in the grid. Similar to inserting lines on the sales documents.
    Can any having any idea please share with me.
    Regards
    Senthil

    Hi,
    have a look at the DataColumns Collection
    A collection of DataColumn objects. Use this collection to add columns to the collection or remove columns from the collection.
    You can access the collection via the DataTable.Columns property.
    you'll find it in the UI API Dokumentation.
    i hope it helps you.
    regards
    David

  • Query results:every other record/row grey and white

    Hello guys,
    query results:every other record/row grey and white
    how would you make every other record/rows a different color
    just like the forums color. Lightest grey and white?
    <cfquery name="Myqueryname"
    datasource="#Request.MainDSN#">
    SELECT
    CompanyID,
    CompanyName,
    Address,
    City,
    State,
    ZipCode,
    Comments
    FROM
    Company
    ORDER BY
    CompanyName ASC
    </cfquery>
    <html>
    <head>
    <title>CF TUTORIALS</title>
    <link rel="stylesheet" href="styles.css">
    </head>
    <body>
    <h1>All CO Listings</h1>
    <table>
    <tr>
    <td><b>ID</b></td>
    <td><b>Name</b></td>
    <td><b>Address</b></td>
    <td><b>City</b></td>
    <td><b>State</b></td>
    <td><b>ZIP Code</b></td>
    <td> </td>
    </tr>
    <cfoutput query="Myqueryname">
    <tr>
    <td>#CompanyID#</td>
    <td>#CompanyName#</td>
    <td>#Address#</td>
    <td>#City#</td>
    <td>#State#</td>
    <td>#ZipCode#</td>
    <td>
    <a href=" ALL Emps.cfm?CompanyID=#CompanyID#">ALL
    Emps</a>
    <a href=" AddCO Form.cfm">AddCO</a>
    <a href="
    Editco.cfm?CompanyID=#CompanyID#">Editco</a>
    <a
    href="CoDeleteForm.cfm?CompanyID=#CompanyID#">Delete</a>
    </td>
    </tr>
    </cfoutput>
    </table>
    </body>
    </html>

    There is a cool tool in Coldfusion called MOD
    This basically calculates the remainder of the row number
    when divided.
    I interpreted its use to something like this, which has
    worked for me.
    <cfoutput query="qry_requestedlist" maxrows="30"
    startrow="1">
    <cfset EvenRow=#CurrentRow# +1>
    <cfif CurrentRow Mod 2 IS 1>
    <tr>
    <th class="grey" CurrentRow#</th>
    <cfelse>
    <th class="white">#CurrentRow#</th>
    <tr>
    </cfif>
    </cfoutput>
    I doubt this is precisely what you want but this is the sort
    of thing.

  • Print every nth record to a report -- additional question

    I have successfully created a report that prints every 10th record. That has yielded a report with Branch 1 containing 186 records, Branch 2 containing 30 records, Branch 3 containing 2 records, etc.. I would now like to restrict the printed information. I would like to print only print 10 of these records per branch. For example: for Branch 1 I would like to only print the first 10 of the 186 that I am now getting. I have tried a few things, which did not work.
    Is there a way to do this?
    Thanks in advance for any and all help.

    Please re-post if this is still an issue

  • Calculate difference between every other time record

    Here's what I have going on.  Users are keeping track of time they work on a project.  Data to be used in contained in two columns.  In the first column they enter "start" or "stop".  In the second column they input the date and time.  So, output would look something like this:
    start     1/1/2011 3:30pm
    stop     1/1/2011 3:35pm
    start     1/2/2011 1:00pm
    stop     1/2/2011 1:30pm
    start     1/2/2011 2:00pm
    stop     1/2/2011 2:18pm
    I need to be able to calculate the difference between the start and stop time and then create a running total of those time.  Running total not an issue but what can I do to calculate the time difference between start and stop?  Been awhile since I used Crystal (about 5 years) so I've forgotten way too much.  Another issue that I'm running into is that sometimes the users forget to enter the start or stop, so I might have two stops in a row (with one missing the start time) or two starts in a row.  I'm not completely sure how I want to handle those yet.  I may just throw those records out but not certain how I'll do that yet.
    Sorry if this is a bit basic.  Trying to relearn Crystal again - oh, and it's crystal reports 10.

    Here are a couple of formulas that should help you out.
    This will calc the time diff between sequential start and end times
    WhilePrintingRecords;
    Global DateTimeVar x := IF {TableName.Type} = "start" THEN {TableName.TimeStamp} ELSE x;
    Local DateTimeVar y := {TableName.TimeStamp};
    Local NumberVar z:= IF {TableName.Type} = "start" THEN 0 ELSE DateDiff("n", x, y);
    And this one will provide a manual running total
    WhilePrintingRecords;
    Global DateTimeVar x := IF {TableName.Type} = "start" THEN {TableName.TimeStamp} ELSE x;
    Local DateTimeVar y := {TableName.TimeStamp};
    Global NumberVar z:= z + IF {TableName.Type} = "start" THEN 0 ELSE DateDiff("n", x, y);
    Note that you'll want to sort  the records by the "TimeStamp"
    HTH,
    Jason

  • When I open my Yahoo mail account, it comes up with lines between every entry. When I try to send a new message, the dialogue box is incomplete. The tool bar above the message box is empty so I cannot change the font or font size, etc.

    This problem does not occur when I open my Yahoo mail account in Internet Explorer.
    Because of it, I cannot use Firefox to access my Yahoo mail.

    See:
    * http://kb.mozillazine.org/Website_colors_are_wrong
    * http://kb.mozillazine.org/Websites_look_wrong
    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites that cause problems: Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]

  • Not printing every other line

    I have a HO OfficeJet Pro 8500.
    All catridges are HP.
    The printer is printing every other line (leaving every other line blank).
    Please help.
    Thanks,
    George [Personal Information Removed]

    Sorry that you are having a problem with the print quality. 
    See if you can print a self-test page or status report. Let me know if the same things happens. 
    Have you cleaned the print heads?
    Make a copy of a document, and see if you still get every other line printing. 
    **Click the KUDOS star on the left to say 'Thanks'**
    Please mark a reply "ACCEPTED AS SOLUTION" if it solved your problem, so others can find it.

  • Every Other page is Blank....

    Hey All,
              I am using CR2008 on a winXP 32 machine.  I had built a report in CRX and it was was showing 6 pages in print preview and it was 6 pages when I exported to PDF.  
              After I converted it to CR2008 it still shows 6 pages in print preview but when I export it to PDF it comes out as 12 pages with a blank page every other page.  It shows multiple sections and sub reports per page like it is supposed to and they are still grouped correctly except for the blanks in between every other page.
    NOTE: The page numbers at the bottom of the pages still say X of 6 {Page N of M}.  So it is still only seeing 6 pages but when it exports in PDF it is throwing in the extra blank pages for fun or spite, take your pick.
    Any help or direction would be greatly appreciated. 
    What I have done so far with no effect
    Main Report --> Section Expert --> Checked Suppress Duplicates for each section
    Page Setup -->  Margins --> Checked Automatically Adjust
    Sub Report --> Section Expert --> Checked Suppress Duplicates
    Thanks,
    Jason

    That worked.
    Thanks a ton!
    OLD Settings
    LEFT = .200
    RIGHT = .200
    HEADER = .167
    FOOTER = .167
    NEW Settings
    LEFT = .1
    RIGHT = .1
    HEADER = .1
    FOOTER = .1
    Edited by: Jason Simon on Apr 7, 2011 4:56 PM

  • Blank pages every other page

    I have a photosmart 7280 and it spits out blank sheets between every other printed sheet. My daughter has the same printer and it is doing the same thing. Driving us crazy !! Does anyone have a solution?

    This appears to be an end-user problem. The better place for you to ask is in the "Communities":
    http://answers.microsoft.com/en-us/office/forum/word
    The MSDN forums target programming problems. There are fewer people here who can help you and the answer you get is likely to be in "code speak".
    FWIW, though, do a search on the term: DifferentFirstPage
    Hint: Page Layout/Page Setup, click the dialog box launcher
    Cindy Meister, VSTO/Word MVP,
    my blog

  • Insert a blank line between records

    Hi,
    I am creating a sqlplus report and want to insert a blank line or some seperator to seperate the records between the start and end points of the loop to make it more readable.
    ex : The output currently look like this.
    ColumnA       ColumnB
    1                  2
    2                  3
    3                  1
    4                  5
    5                  6
    6                  4I want the output to look like this
    ColumnA       ColumnB
    1                  2
    2                  3
    3                  1
    4                  5
    5                  6
    6                  4Thanks for the help in advance!

    Hi,
    You probably work with this table every day, and you probably struggled with this particular query for a while before posting a question, so you're very familiar with the table, the data, and the application.
    Perhaps no one else in the world is in that position. Don't assume we know what your data is, or where it came from.
    Are you getting the data from a query like this?
    SELECT     columna
    ,     columnb
    FROM     table_x
    START WITH          columna     IN (1, 4)
    CONNECT BY NOCYCLE     columna     = PRIOR (columnb)
    ;If so, that's the kind of thing you should say clearly in your first message, rather than hint at in your third.
    As Ow said, you should manufacture a column for use in the BREAK command, and use COLUMN ... NOPRINT if you don't want to see it in the results?
    The question here is, what is an appropriate column? CONNECT_BY_ROOT seems to work perfectly for your example
    BREAK     ON my_break_column     SKIP 1
    COLUMN     my_break_column     NOPRINT
    SELECT     columna
    ,     columnb
    ,     CONNECT_BY_ROOT     columna     AS my_break_column
    FROM     table_x
    START WITH          columna     IN (1, 4)
    CONNECT BY NOCYCLE     columna     = PRIOR (columnb)
    ;The rest of this message is an merely a tangent. I find it interesting, but feel free to skip it.
    You might think CONNECT_BY_ISCYCLE was an obvious choice for a BREAK oclumn: you want to skip a line after every output row where CONNECT_BY_ISCYCLE = 1.
    Unfortunately, BREAK always works when a column value changes. That is, you can't tell it "Please skip one line after rows where columnz = 1"; all you can say is "Please skip a row before rows where columnz is different than it was on the previous row". (At least that's what I think: I would love it if someone proved me wrong!)
    So we have to manufacture some column that keeps its value for an entire loop. The SUM of CONNECT_BY_ISCYCLE (in DESCending order, as returned by the CONNECT BY query) would work. Analytic ORDER BY clauses seem to destroy the order imposed by CONNECT BY, so you'd have to do the CONNECT BY in a sub-query, capture the ROWNUM to preserve the order, and use the analytic SUM function in the main query:
    WITH     oq     AS
         SELECT     columna
         ,     columnb
         ,     ROWNUM               AS r_num
         ,     CONNECT_BY_ISCYCLE     AS cycle_val
         FROM     table_x
         START WITH          columna     IN (1, 4)
         CONNECT BY NOCYCLE     columna     = PRIOR (columnb)
    SELECT     columna
    ,     columnb
    ,     root
    ,     SUM (cycle_val) OVER (ORDER BY ROWNUM DESC)
    --               AS my_break_column
    FROM     oq
    ORDER BY     r_num
    ;The only reason for actually doing this is to learn about CONNECT BY queries. CONNECT_BY_ROOT, as shown above, works much better for your requirements.

  • Records Not Showing Up On Report

    I'm using Crystal XI
    I can take the query from "Show SQL Query..." and paste it into a query screen in SQL Server 2008 management studio and retrieve the correct records.  However, the report itself does not contain all the records the should have been returned.
    To the best that I can figure, the records where a transaction date (date/time field) is null is not showing up on the report.  I only display the field, do not do any calculations based on the field. 
    It is part of the record selection formula, where I test for the field to be between start/end parameters or is null (which produces the correct SQL query as I stated above)
    So why are the records not showing up on the report, and more importantly, how do I get them to show up?
    TIA

    It already was set to "Exception for Nulls"
    On the other hand, just on a whim, I tried reversing the order of the query from what it was:
    {MyQuery.Company = {?Company}
        And
        {MyQuery.Transaction_Date} In {?Start/End Date}
        Or
        IsNull({MyQuery.Transaction_Date})
    To:
    {MyQuery.Company = {?Company}
        And
        IsNull({MyQuery.Transaction_Date})
        Or
        {MyQuery.Transaction_Date} In {?Start/End Date}
    And that seemed to work.  I'm not sure why it will work in the Mangement Studio, but not in Crystal Reports, but at least it works.
    Thanks for the tug in the right direction.

  • How do i plot with the operating system time in one plot and show lines between cursors in another using the same XY graph?

    I am having some trouble graphing two plots at once. One plot is to show the current temperature inside a chamber as a function of time. I am trying to pick the current time and temperature each second and plot it with each point being connected by a line. I am able to show a moving, blinking dot each second but I can't figure out how to develop an actual line with these dots. To make matters worse, the blinking dot is back in the year 1903. I understand that it uses seconds elapsed since 1903, and am trying to find out how to graph the current temperature with the system time.
    The second plot is just 5 moveable cursors that are to be connected by a line. I am able to move the cursors and retrieve the position information, but I can't make a line between them.
    I have attached my main .vi, though you may have to pick the graphing part off to have it work for you.
    Attachments:
    Main Module Chamber Testing I_O every 30 sec.vi ‏288 KB

    You're not creating the XY graph data correctly. I've attached an example with a couple of simple XY Graphs. One is using a couple of shift registers to hold the spearate x and y arrays. I think this is what you were trying to do. The other one uses a VI from the shipping examples called XY Chart. It makes an XY Grpah act like a chart. I've also shown the correct way to display current time.Message Edited by Dennis Knutson on 05-12-2005 03:51 PM
    Attachments:
    XY Graph.vi ‏41 KB

  • Export Excel Data only causes blank line between 2 lines of records

    Hi,
    I wrote a complete winform application using CR2008.
    For information :
    C# Framework 3.5
    Windows XP SP2 or Windows Server 2003 SP1
    CR2008 SP1
    Application allow to preview report. In the preview window (CR activx) there is a "letter icon" to export report in several format.
    -RPT
    -PDF
    -DOC
    -XSL
    -XSL Data only
    When I export with "Excel Data only" format, I always have a blank line between 2 lines of records in Excel.
    Is there a way to supress them from VS2008 ?
    Thanks a lot for your reply,

    Hello, Jonik;
    Do you see the same blank lines when you export to Excel Data only in the Crystal Reports designer?
    Elaine

  • [SOLVED]How would I highlight every other line in ZSH output?

    komrad_toast wrote:
    Hello everyone I have the following function in ZSH (it is part of a larger help file i've created called @help):
    function mykeys #== Lists all dwm keybindings in a nice, formatted manner. Used in @help
    echo ""
    gawk 'BEGIN { printf("\33[1;7;32m%-18s\33[34m%-50s\n\33[0m"," Key"," Binding"," Description") }'
    grep "//#" $HOME/code/dwm/config.h | awk -F "//#" '{print $2}' | column -ts :
    echo ""
    This function greps my dwm config.h for comments related to my keybindings and displays them in an easily readable manner.
    The comments are in the following format for easy finding/parsing:
    //#Mod+i:Increments number of windows in master area
    The output of this function looks like this:
    I was wondering if there was a way to 'highlight' every other line in this with a different background color (preferrably a light shade of grey) for even easier readability. Any help would be appreciated, and thanks in advaced!
    I seem to have  solved my own problem. For anyone interested in the solution, it was just a little awk scripting. I changed the function to the following:
    function mykeys #== Lists all dwm keybindings in a nice, formatted manner. Used in @help
    echo ""
    gawk 'BEGIN { printf("\33[1;7;32m%-18s\33[34m%-50s\n\33[0m"," Key"," Binding"," Description") }'
    _LINES=$(grep "//#" $HOME/code/dwm/config.h | awk -F "//#" '{print $2}' | column -ts :)
    echo $_LINES | gawk '{
    if (FNR % 2 == 0)
    printf("\033[00,40m%s\033[0m\n",$0)
    else
    printf("%s\n",$0)}'
    echo ""
    Explanation:
    The first gawk statement just prints the titles for the different columns in the screenshot, done mainly with escape sequences. Then I'm setting _LINES equal to the formatted comments from my config.h file. _LINES is then piped to the second gawk statement which uses the builtin FNR variable (which is set to the current record number of the file that you are parsing) to figure out if the line number is even or not. If it is, it sets the background color to a lighter grey, prints the entire record, then resets the color and prints a new line. Voila! Pretty nifty what a little gawk can do.
    Now if only i could get the background color to extend to the end of the column...
    edit: duh, simple fix for that to. Just change to %s in the first printf of the if/else statement to %-67s
    Last edited by komrad_toast (2015-01-15 10:30:20)

    Thanks for that!
    After your suggestion i revised the function to this:
    function mykeys #== Lists all dwm keybindings in a nice, formatted manner. Used in @help
    gawk -F'[#:]' '
    BEGIN {
    printf("\n\33[1;7;32m%-21s\33[34m%-52s\n\33[0m"," Key"," Binding"," Description")
    if ((FNR % 2) == 0)
    printf("\033[0;2;40m %-21s%-51s\033[0m\n",$2,$3)
    else
    printf(" %-21s%-50s\n",$2,$3)
    END {
    printf("\n")
    }' $HOME/code/dwm/config.h
    This could actually go in my aliases file now, but i think it's fine as a function. Thanks again
    EDIT: The only caveat now is that if any two of the lines in config.h that have '//#' on them contain lines WITHOUT '#//' on them between them it throws off the highlighting. This is why:
    FNR is an awk built-in that represents the current record number in the current file. I am using it as if every record in the file will contain '//#', obviously not every record will. So if line 100 in my config.h is
    { MODKEY, XK_i, incnmaster, {.i = +1 } }, //#Mod+i:Increments number of windows in master area
    then it will be highlighted, because it matches the pattern ('/\/\/#') and is an even line number. But if line 101 does not contain a comment that matches the pattern, and line 102 does, then you will see two highlighted rows right next to eachother in the final output. I do not know a way around this.
    Last edited by komrad_toast (2015-01-17 09:18:28)

  • Lines Between Report Columns in Purchase Order Report

    Hello All,
    I am working with the Oracle Purchasing Report called POXPRPOP.rdf. I am trying to add a black frame between each column in the report. Imagine in a purchase order where several columns of data that have a black line in between them. I have tried working with the expanding frame around the data fields of the report, changing the line color of these expanding frames to black. This didn’t work to give me lines in between the columns. I have been able to bring other graphical elements into the report so it is not a graphics problem at the UNIX environment.
    I am using Reports 6i and Running the report through Oracle Applications Concurrent manager.
    Thanks for any help,
    Bradley

    It seems like I might be able to put a line between the data fields and set it to expand with the repeating frame. Maybe this is this how it is done.
    Bradley

Maybe you are looking for

  • Can not view mobile me gallery videos on IPHONE

    Can any body tell me why i can not view my mobile me gallery videos on my Iphone? When i bring up my gallery on my phone it only shows some of my posted video not all of them and the time has 0:00. If you try and play it you get an error message.

  • PSA request is in yellow status

    Hi We got the problem when loading the 2LIS_03_BF data into cube. We have around 4 cubes and 2 ods. The data got loaded into all the cubes and ods except on Cube. There was a problem of table space and now it is solved. Now the request is in yellow s

  • How can i reverse from ion to prevues version - can't unjust - uncomfortable feeling - need help...

    How can I reverse iphone 5 to io6 - io7 is very uncomfortable...please help - Thans

  • Oracle RDF Model plugin for Protégé

    Hello, I'm looking for clear and precise document where to find and how to install the plugin in Protege. Would anyone please provide me with updated information for Protege 4.0.2 and Oracle 11 g? Thanks, A.

  • "invalid directory" error. SOS

    My JDK1.3.1 is working fine when I compile my programs using Kawa editor. But when I try to get in to enter into the jdk1.3.1 directory in my DOS shell, I get a message "invalid directory" , and returns to the c:\ prompt. Why is that so?? Fyi, I have