How to highlight the repeated records in a BO crystal report?

Hi ,
How to highlight the repeated records in a BO crystal report?
we want to highlight the rows for which account number is same.
thanks
sriram

You don't even need to create a group.  Just sort the records on the fields that define "duplicate".  Then you can just use
if {field} = PreviousValue({field}) then crYellow else crNoColor
in the format's Background Color formula.  This will cause the background to be yellow on duplicates.  (If you need to check more than one field in order to determine duplicates, just insert
and {field2} = PreviousValue({field2}
and so on for each field that needs to be checked.
HTH,
Carl

Similar Messages

  • How to Highlight the CURRENT RECORD in a Table with Report Form

    Hi,
    I have created a Table with Report Form....let suppose the table is - EMP
    Report page - 1
    Form page - 2
    Now, when I do Create / Update on Page 2,....the control is back on Page1.
    Suppose in the Report Page (Page1)..we have 10 records....NOW how should I highlight the CURRENT RECORD in Page 1 with some color to identify the record which I have updated/created just now...
    Thanks,
    Deepak

    Hi Deepak,
    You could do that with a custom report template. I've done that here: [http://apex.oracle.com/pls/otn/f?p=267:175]
    Go to Shared Components, Templates and create a new Report template as a copy of your existing one. Then edit your template. In the above example, the Column Template 1 setting was:
    <td #ALIGNMENT# headers="#COLUMN_HEADER#" class="t18data">#COLUMN_VALUE#</td>I copied this into the Column Template 2 setting and updated the Column Template 1 setting to:
    <td #ALIGNMENT# headers="#COLUMN_HEADER#" class="t18data" style="background-color:red; color:yellow;">#COLUMN_VALUE#</td>I then set the Column Template 1 Condition to: Use Based on PL/SQL Expression
    and the Column Template 1 Expression to: '#EMPNO#' = '&P178_EMPNO.'
    (In my example, P178_EMPNO is the single item on the linked to page.
    Save those changes and go to your report and change its template to the new one. As long as a selection has been made and P178_EMPNO has a value, the condition will make sure that the report uses the first template for the row with the matching EMPNO value. All other rows get the template from Column Template 2.
    Andy

  • How to implement the Oracle Group by function in Crystal reports?

    Hi all,
    In SQL, for example we have a group function like:
    select  district,state, country, continent, sum(no.of people) from world.
    Now, How to implement this group function in crystal reports? Please advise.
    Thanks in advance..
    Regards,
    sriram

    Hi Vinay,
    Thanks for the prompt reply.
    In one of our report, we are supposed to perform group by for 14 columns to get sum of 3 columns and there by displaying 17 columns in the report.
    When we tried in crystal reports to implement this oracle group by functionality:
    1. We created 14 groups from the Insert->Group option.
    2. By performing this, we got 14 group sections vertically(one inside the other).
    3. Then we created the sum(15th column),sum(16th column), sum(17th column)  by Insert->Summary option.
    4. We suppresed all the group sections except for the last group.
    5. Then, dragged all the groups to the last group section along with the summary fields.
    This is how, we tried to acheive the oracle group by function in Crystal reports.
    Please advise, whether our approach is right. If not, please suggest the appropriate approach with a bit detailed explanation.
    Thanks,
    Sriram.

  • Combined the continuous records into one in Crystal Report XI

    I need help for combining the continuous Date1 and Date2 if same ID? What formula or method I can do?
    Original Data:
    ID               Date1             Date2
    1111111  3/16/2009      6/27/2009
    1111111  8/20/2009      9/10/2009
    1111111  10/14/2009   11/9/2009
    1111111  11/9/2009     1/11/2010
    1111111  1/11/2010     (blank)
    1111111  1/11/2010     1/11/2010
    1111111  1/11/2010     6/9/2010
    1111111  8/20/2010     9/10/2010
    Final Result:
    ID               Date1            Date2
    1111111  3/16/2009     6/27/2009
    1111111  8/20/2009     9/10/2009
    1111111  10/14/2009   (blank)
    1111111  8/20/2010     9/10/2010
    The idea is to eliminate the continuous or repeated records for the same person. The ID indicates a person, Date1 is an open date, and Date2 is a close date. If ID are same, and the date1 is equal to the previous date2, then we keep the earliest date1, which is the previous open date (date1) here and keep the latest close date (date2) if date2 is not empty.
    However, empty Date2 means it is not close yet and I am going to take that rather than other Date2 if it is the continuous cases or same Date1 for these records with same ID as well.
    If the open date (Date1) is after at least 3 days than the previous close date (previous Date2), we treat it as a new record and it is not continuous even though their ID are same.
    I am able to compare two records at a time, but I have no idea to do it when it happens across more than 2 continuous records and not even mention to delete these records and arrange their open date and close date.
    Thank you so much for your help!!

    Hi Albert, 
    We're going to need more information because what you want doesn't quite make sense.  How does
    Result:
    ID Date1 Date2
    1111111 10/14/2009 (blank)
    relate when your original data doesn't have these two dates together? 
    I'm going to make some huge assumptions here so try this. 
    If {table.DATE2} = Date (0, 0, 0) Then
        ToText ({table.ID}, 0, 0, "", "") & ToText (table.DATE1}, "MM/dd/yyyy")
    Else ToText ({table.ID}, 0, 0, "", "") & ToText (table.DATE1}, "MM/dd/yyyy") & ToText ({table.DATE2}, "MM/dd/yyyy") ;
    If Date2 is null then it build a string with just ID and Date1 otherwise build a string with all three fields. 
    Now you can group on this formula to get the distinct values. 
    Hope this helps,
    Brian

  • How to disabled the input parameter dialog box in crystal reports 9

    Post Author: Murtaza
    CA Forum: General
    Hi friends,I have got stuck with a weird problem.  In my
    crystal report, I have set up some input parameters.  I am setting
    values for these parameters somewhere inside code.  But I don't
    want to show the default input parameter dialog box. Under any case,
    user should not see the ugly parameter dialog box that crystal
    presents.   Please suggest me how I can achieve
    this.  I cannot do this through code, because our environment does
    not allow that.  I have to do this in crystal reports viewer and
    by setting some property of the crystal report object. But everything
    must be done on UI, not through code. So, the solution should not be the following. 
    // step before step 1
    // **** the line needs to refer to the report and be set before setting
    ReportSource in the viewer to myReport
    myReport.EnableParameterPrompting = False
    Any help would be greatly appreciated.  Murtaza

    Post Author: sleahcim
    CA Forum: General
    Hi Murtaza,
    Unfortunately, I am not aware of any method to suppress the prompt for the input parameters, but still use them.  It is truly a design-related issue for the report.  The reason that the prompt appears is because the parameter it is prompting for is used in the report; in particular either the Group or Record Selection, or referenced in another formula.
    The only way I can think of to not show the prompt, is to not use the parameter in the report.  You did mention that you are setting the value of the parameter inside of the report -- are you doing this through using a formula?  Perhaps you can just remove the parameter and only use the formula that you are setting the default values with.
    -Michael

  • How to avoid the parameters accepting screen generated by crystal report

    Hi ,
    I designed one rpt file which will take one parameter and trying to run that file from java servlets. But I am getting one problem. I am passing parameters from jsp and setting those to the crystal report but, instade of generating the report, it is generating one jsp page which is having text feild , after enter the parameter value onece I submit this page then only I am getting required output.
    anybody please help me in this. Below I am placing my code.     
                   ReportClientDocument reportClientDocument = new ReportClientDocument();
                   CrystalReportViewer viewer = new CrystalReportViewer();
                   ServletContext cxt = req.getSession().getServletContext();
                   String fileName = "C:/Documents and Settings/Administrator/Desktop/lib-so/ix_sample2.rpt";
                   try
                        String realPath = fileName;
                        reportClientDocument.open(realPath, 0);
                        viewer.refresh();
                        viewer.setReportSource(reportClientDocument.getReportSource());
                   catch(Exception e)
                        System.out.println("inside catch block...");
                        e.printStackTrace();
                   IReportSource reportSource = reportClientDocument.getReportSource();
                   Fields oFields = new Fields();  
                   ParameterField portfolio = new ParameterField();
                   portfolio.setName("Portfolio");
                    Values oValues = new Values();
                      ParameterFieldDiscreteValue oParameterFieldDiscreteValue = new ParameterFieldDiscreteValue();
                       oParameterFieldDiscreteValue.setValue(new Integer(16));
                       oValues.add(oParameterFieldDiscreteValue);
                       portfolio.setCurrentValues(oValues);
                       portfolio.setReportName(fileName);
                       oFields.add(portfolio);
                          viewer.setOwnPage(false);
                               viewer.setParameterFields(fi);
                       try {
                             viewer.processHttpRequest(req, res, cxt, res.getWriter());
                             viewer.dispose();
                       catch (ReportSDKExceptionBase e) {
                             e.printStackTrace();
    thanks,
    Mallikarjun
    Edited by: mallikarjuna.ch1 on May 17, 2009 9:58 AM

    Thanks a lot for worthful suggetion Neeraj.
    I got resolved my problem. I have one more issue, please give a clarification about that.
    my doublt is,
    For parameterized rpt file running purpose I need to set the database details . every jar file is placed in application lib only. And my CRConfig.xml file also placed bellow.
                  <?xml version="1.0" encoding="utf-8"?><CrystalReportEngine-configuration>
        <timeout>1</timeout>
        <ExternalFunctionLibraryClassNames>
              <classname> </classname>
              <classname> </classname>
        </ExternalFunctionLibraryClassNames>
    <keycode>B6W60-01CS200-00GCPT0-0JY1</keycode>
    <Javaserver-configuration>
    <DataDriverCommon>
         <JavaDir>D:\inventex\crystal_report\Business Objects\j2sdk1.4.2_08\bin</JavaDir>
        <Classpath>$</Classpath>
         <IORFileLocation>$</IORFileLocation>
         <JavaServerTimeout>1800</JavaServerTimeout>
         <JavaServerStartupTimeout>30</JavaServerStartupTimeout>
         <JVMMaxHeap>64000000</JVMMaxHeap>
         <JVMMinHeap>32000000</JVMMinHeap>
         <NumberOfThreads>100</NumberOfThreads>
    </DataDriverCommon>
    <JDBC>
         <CacheRowSetSize>100</CacheRowSetSize>
         <JDBCURL>jdbc:sqlserver://10.0.0.65:1433;DatabaseName=reportmanager</JDBCURL>
         <JDBCClassName>com.microsoft.sqlserver.jdbc.SQLServerDriver</JDBCClassName>
         <JDBCUserName>malli</JDBCUserName>
         <JNDIURL></JNDIURL>
         <JNDIConnectionFactory></JNDIConnectionFactory>
         <JNDIInitContext>/</JNDIInitContext>
         <JNDIUserName>weblogic</JNDIUserName>
         <GenericJDBCDriver>
              <Default>
                   <ServerType>UNKNOWN</ServerType>
                   <QuoteIdentifierOnOff>ON</QuoteIdentifierOnOff>
                   <StoredProcType>Standard</StoredProcType>
                   <LogonStyle>Standard</LogonStyle>
              </Default>
              <Sybase>
                   <ServerType>SYBASE</ServerType>
                   <QuoteIdentifierOnOff>OFF</QuoteIdentifierOnOff>
                   <DriverClassName>com.sybase.jdbc2.jdbc.SybDriver</DriverClassName>
                   <StoredProcType>Standard</StoredProcType>
                   <LogonStyle>MySQL</LogonStyle>
              </Sybase>
         </GenericJDBCDriver>
    </JDBC>
    <XML>
         <CacheRowSetSize>100</CacheRowSetSize>
         <PreReadNBytes>4096</PreReadNBytes>
         <XMLLocalURL></XMLLocalURL>
         <SchemaLocalURL></SchemaLocalURL>
         <XMLHttpURL></XMLHttpURL>
         <SchemaHttpURL></SchemaHttpURL>
    </XML>
    <JavaBeans>
        <CacheRowSetSize>100</CacheRowSetSize>
         <JavaBeansClassPath></JavaBeansClassPath>
    </JavaBeans>
    </Javaserver-configuration>
    </CrystalReportEngine-configuration>
    still it is showing "Error finding JNDI name (sql server) " error. I am solving this problem setting these paramers through program.

  • How to get the total page number when using Crystal Report in JSP

    In my JSP, I use the class CrystalReportViewer to generate and display the report views. But this class only sypply the function to get the info of the active view.
    Thus with this info, I only can get the active view's page number. How can I get the report total page number without showing the last page first?
    Thanks.

    Anything you do without submitting to form has to be done on the client side (ususally by JavaScript) using data which has been send already from the server.
    With JavaScript you can do quite a bit. You can download tables which don't necessarilly appear on the screen, loading them into JavaScript arrays by dynamically generating javascript. Then you can pick up events like drop-box selection and use these tables to chose what you do next (e.g. preloading other fields, setting drop box content etc.).
    Or, you can cause forms to be submitted when actions like a selection happen without the user clicking a button. It's generally a matter of how much data you'd need to transmit.
    Another posibility is to use a Java applet, which can generate requests to the server and handle the results as it chooses. That are a number of problems with that but occasionally it's the best solution.
    What you can't do is to handle user input inside a JSP. The JSP has come and gone before the user even gets to see your form.

  • Please give me idea how I highlight the gird row which have

    Sir
    I have gird with 5 column
    Vno
    Code
    Dept
    Date
    Amount
    Sir my need is which record have above 5000 amount that color read and other color blue
    It means above 5000 highlight in grid
    Please give me idea how I highlight the gird row which have above 5000 maount
    Thank
    aamir

    PROCEDURE pr_Set_VA (p_VA IN VARCHAR2) IS
    v_Feld VARCHAR2 (30);
    v_Item VARCHAR2 (61);
    v_Block VARCHAR2 (30);
    BEGIN
    v_Block := :SYSTEM.CURSOR_BLOCK;
    v_Feld := Get_Block_Property (v_Block, FIRST_ITEM);
    WHILE (v_Feld IS NOT NULL) LOOP
    v_Item := v_Block || '.' || v_Feld;
    Set_Item_Instance_Property (v_Item, CURRENT_RECORD, VISUAL_ATTRIBUTE, p_VA);
    v_Feld := Get_Item_Property (v_Item, NEXTITEM);
    END LOOP;
    END;

  • How to get the previous record value in the current record plz help me...

    In my sql how to get the previous record value...
    in table i m having the field called Date i want find the difference b/w 2nd record date value with first record date... plz any one help me to know this i m waiting for ur reply....
    Thanx in Advance
    with regards
    kotresh

    First of this not hte mysql or database forum so don;t repeate again.
    to get diff between two date in mysql use date_format() to convert them to date if they r not date type
    then use - (minus)to get diff.

  • How to Delete the condition record in CRM

    HI,
    Can you please help me how to delete the condition record from condition table in CRM.
    Please explain the usage of FM CRMXIF_CONDITION_SEL_DELETE with examples.
    I have also read the documention of the function module. How to use this FM for custom defined condition table.
    (this is the code given in Documentation)
    DATA-OBJECT_REPRESENTATION         = 'E'
    DATA-SEL_OPT-CT_APPLICATION              = 'CRM'
    DATA-SEL_OPT-OBJECT_TASK                    = 'D'
    DATA-SEL_OPT-RANGE-FIELDNAME        = 'PRODUCT_ID'
    DATA-SEL_OPT-RANGE-R_SIGN                  = 'I'    (Including)
    DATA-SEL_OPT-RANGE-R_OPTION           = 'EQ'
    DATA-SEL_OPT-RANGE-R_VALUE_LOW  = 'PROD_1'
    Thanks
    Shankar

    Hi Shankar,
    I am using the same CRMXIF_CONDITION_SEL_DELETE function module to delete condition record present in CRM.
    But it is giving me below error in the return table of the FM after i run the program. Can you please correct me if I am doing any thing wrong?
    Error in  lt_return: SMW3     CND_MAST_SEL_DEL_EXT_VALIDATE     CND_M_SD
    code:
    ls_range-fieldname = 'PRODUCT_ID''.
    ls_range-R_SIGN = 'I'.
    ls_range-R_OPTION = 'EQ'.
    ls_range-R_VALUE_LOW = '123456'.
    APPEND ls_range TO lt_range.
    MOVE lt_range TO ls_entry-SEL_OPT-range.
    ls_data-SEL_OPT-object_task = 'D'.
    ls_data-SEL_OPT-ct_application = 'CRM'.
    ls_data-object_representation = 'E'.
    CALL FUNCTION 'CRMXIF_CONDITION_SEL_DELETE'
      EXPORTING
        DATA          = ls_date
    IMPORTING
       RETURN        = lt_return
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
      IMPORTING
        return = lt_ret.
    Edited by: Saravanaprasad Nadar on Jul 7, 2010 1:27 AM

  • How to highlight the messages in the WDA?

    hi experts,
                     Iam new to Webdynpro.i just want to know how to highlight the texts displayed . like BOLD,italic etc and also colors.
    Regards,
    murthy.

    I dont think you have it via standard message area. Probably you can have a TextView UI element and use the properties Design and semanticColor to achieve this. If you have a contextNode , thats mapped to the texview and message manager writing text to this node. Solution should work.
    Greetings
    Prashant

  • How to restrict the last record and not moving to next reocrd

    1) how to restrict the last record and not moving to next reocrd.
    2) Also for the F6 key(for new record).

    When you are on the last record, next-record will create a new one, so that my question is do you want to forbid new record creation.
    Francois

  • How to handle the control records in case of file to idoc scenario.

    Hi All,
    can you please clarify me how to handle the control records in case of file to idoc scenario.

    Hi,
    In File to Idoc scenario even though you selected apply control record values from payload and you are not getting those correct values which you have provided in the mapping.
    Also check the checkboxes Take sender from payload and Take receiver from payload along with the Apply control record values from payload checkbox
    Regards
    Seshagiri

  • How to highlight the whole row of a particular line item of sale

    How to highlight the whole row of a particular line item of sales order depending on condition?
    Please help its urgent..
    Looking forward your reply.
    Moderator message: please do more research before asking, show what you have done yourself when asking, do not flag posts as "urgent".
    [Rules of engagement|http://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]
    [Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers]
    Edited by: Thomas Zloch on Aug 9, 2011 9:30 AM

    Any ideas on what would cause this NOT to work? I added this row right after the table is created and populated and it is still not highlighted when I enter the form. The snippet of code that does this is:
    MyTableModel modelS = (MyTableModel)dataModel.get("S");
    jTable1 = new JTable(modelS);
    jTable1.setRowSelectionInterval(0,0);MyTableModel is this:
    class MyTableModel extends DefaultTableModel {
      public MyTableModel(Object[] columnNames, int numRows) {
        super(columnNames, numRows);
      public boolean isCellEditable(int row, int column) {
        if (TableKey == 'S') {
          if (column == 6) {
            return false;
        if (TableKey == 'O') {
          if (column == 0 || column == 4 || column == 5) {
            return false;
        if (TableKey == 'P') {
          return false;
      return true;
    }Can anyone help? Thanks.
    Allyson

  • How  to  copy  the  table1selected  records into table 2 in webdynpro java.

    Hi 
           how  to  copy  the  table1selected  records into table 2 in webdynpro java.
    venkat
    Edited by: venkatpvr on Sep 23, 2011 11:53 AM

    Hi Venkat,
    You have 2 Value Nodes one for Table1 and second for Table2.
    Table1 node having one more Value Attribute i.e check Box data type is Boolean. Now you are requirement are select records from Table1 Node and click on One Method that records will moves to Second Table2 Node.
    Create One Method for getting the Records from 1-Table to 2-Table
    CopytoTable2 ()
    In this method you have to write code like this
    If (wdContext.nodeTable1.Checkbox(true))
    If(1. Check the Table1 Value Node Size()>0)
    Get the Table1 records and set to table2 Value node.
    Else
    Please select check box// Error message
    Hope this helps!!
    Regards
    Vijay K

Maybe you are looking for

  • Issue with BBM 7 Compatibly with Blackberri​es with OS6 systems (BOLD 9780)

    I downloaded BBM 7 on my blackberry and the icon simply dissapeared, i dont know what to do, do i try to re-download it or do i simply try to re-install bbm 6? eitherways i have tired to do both and neither have worked, please help. URGENT

  • Javax comm 2.0 API

    Hello everyone. Do anyone of you know why the new version of comm api (version 3.0) does not support Windows? It is only available for Solaris SPARC, Solaris x86, and Linux x86. Therefore, I can only use comm 2.0. But my problem is that although I ha

  • INDESIGN CS6 FOLIO BUILDER

    Folio Builder panel is requesting I download the latest update which I have done and installed and restarted. However Folio Builder panel is requesting I download like nothing happened. I am using Indesign CS6 and have updated the correct download fo

  • Bug in CR-200 Car App?

    My workplace is located in Cambridge, UK. However, the weather portion of the CR-200 Car App insists that I'm located in Cambridge, ON, Canada. Curiously, the Weather & Calendar app for the DT-910 stand gets it right. I suspect that the Car App is fi

  • Disable all the input field in Manage Internet Access

    I have find one error that when i use adobe reader with login from my window AD a/c, i cannot use the Adobe Reader Trust Manage because all input field are disable, it is not happen in early time, so could anybody help me to solve this, thx..