Report Problem. Sort by Date?

Hello all.
I simply need to column sort by date, the problem is that the date needs a format mask.
So I obviously do the following:
SELECT to_char(SYSDATE, 'DD/MM/YYYY') FROM dual
The problem is, it uses it as a CHAR.
If I do
SELECT to_date(to_char(SYSDATE, 'DD/MM/YYYY'),'DD/MM/YYYY') FROM dual
It removes the format mask, any ideas?
Sam

Hi Sam,
as Mike suggested, go to the "Column Attributes" of your report column and set the property "Number / Date Format" to DD/MM/YYYY
In your SQL statement you just select the date column without any type conversion.
What does it do?
For the sorting, the Oracle database can do the sorting with the original date type. So you will get the correct ordering and after APEX has read the value it will apply the defined format mask and display it the way you like it. So APEX will do the TO_CHAR for you.
Patrick
My APEX Blog: http://inside-apex.blogspot.com
The ApexLib Framework: http://apexlib.sourceforge.net
The APEX Builder Plugin: http://sourceforge.net/projects/apexplugin/

Similar Messages

  • Report Column Sorting problem

    I have a report based on a view. For some reason some of the columns are not being sorted correctly. After pressing the column header to sort date columns the underlying data is not sorted properly (it’s out of order) or it’s not sorted at all.
    Can you please let me know if there is a known bug causing that?

    I think I'm having the same problem.
    I have a report with data columns, several "not shown" columns, and several column links. I've noticed that any columns in the query after a certain point, will not sort the correct column. If I show all the columns and allow them all to sort, then some of the columns will sort the data in another column. (for example clicking on the header/sort link for column x sorts the table by column y and clicking on the sort link for column z sorts column x, etc).
    I've noticed that I can move columns around in my select query and no matter how they are arranged, after the 7th or 8th column in the select statement, none of the columns following that will sort properly. I've tried all kinds of things, changing my select query around, enabling and disabling sorting, adding additional null columns in, setting and unsetting the default sort order, changing the order of the columns in the report. I don't have an order by in my query or anything weird besides some where clauses (most of which are from the default search functionality).
    Has anyone found a solution to this problem? We just upgraded from HTML DB 2.2 to APEX 3.0 and the problem remained the same.
    Thanks,
    Greg

  • Report Problem: HR Pay-roll report in particaular date (period) slab

    Dear Experts,
                        I have created a zreport for payroll in which i am also using the logical database called PNP selectioon, but when we execute the report for the output, It always shows the output of one month wise only. But the requirement for the problem is that, data should display with in selected period(with in start date to end date), which is not showing the report. Kindly help me to sort out this problem as soon as possible.? If possible do suggest your advices with program code?
    Warm Regards,
    Amit

    Plz tell where i have to manipulate.
    START-OF-SELECTION.
    GET PERNR.
        RP-PROVIDE-FROM-LAST p0000 space pn-begda pn-endda.
        IF pnp-sw-found EQ 0.
          MESSAGE s089(hrpadin01) WITH '0000' pernr-pernr pn-begda pN-endda.
    *        There is no infotype & for personnel no & from period & to &
         PERFORM build_error TABLES hr_error
                             USING space sy-msgid sy-msgno
                             sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
         REJECT.
       ENDIF.
       RP-PROVIDE-FROM-LAST P0001 SPACE PN-BEGDA PN-ENDDA.
       IF PNP-SW-FOUND EQ 0.
         MESSAGE s089(hrpadin01) WITH '0001' pernr-pernr pn-begda pn-endda.
    *   There is no infotype & for personnel no & from period & to &
        PERFORM build_error TABLES hr_error
                            USING space sy-msgid sy-msgno
                            sy-msgv1  sy-msgv2  sy-msgv3  sy-msgv4.
        REJECT.
      ENDIF.
    IF PNP-SW-FOUND EQ 0.
         MESSAGE s089(hrpadin01) WITH '0002' pernr-pernr pn-begda pn-endda.
    *   There is no infotype & for personnel no & from period & to &
        PERFORM build_error TABLES hr_error
                            USING space sy-msgid sy-msgno
                            sy-msgv1  sy-msgv2  sy-msgv3  sy-msgv4.
        REJECT.
      ENDIF.
    PROVIDE  * FROM p0001
              * FROM P0009
              * FROM P2001
              * FROM P0014
              * FROM P0015
              BETWEEN PN-BEGDA AND PN-ENDDA.
    ENDPROVIDE.
       PERFORM read_cluster.
    *  IF rp-imp-cd-subrc = 0 AND sy-subrc = 0.
        PERFORM get_it_final.
    * ENDIF.
    END-OF-SELECTION.
      SORT it_final BY pernr.
    ************************************* Add On 07/06/2010 ************************************************
    Loop At it_final.
          move-corresponding it_final TO it_final2.
          APPEND it_final2.
    Endloop.
    DESCRIBE TABLE it_final2 LINES count.
      IF count = 0.
        CALL FUNCTION 'POPUP_TO_INFORM'
          EXPORTING
            titel  = 'Process Discontinued'
            txt1   = 'No Payroll Results available for'(007)
            txt2   = 'employee/employees selected for this criteria'(008)
          EXCEPTIONS
            OTHERS = 1.
        EXIT.
      ENDIF.
      PERFORM DISPLAY_ALV.
    *&      Form  READ_CLUSTER
    FORM READ_CLUSTER .
      CLEAR : trgdir, trt.
      REFRESH : trgdir,trt.
      DATA : mon(2) TYPE c, year(4) TYPE c, month(10) TYPE c.
      cd-key-pernr = p0001-pernr. "Key for cluster directory
      rp-imp-c2-cu.               "Read cluster cu from c2.
      CHECK rp-imp-cd-subrc EQ 0.
      LOOP AT rgdir WHERE fpbeg >= pn-begda AND fpend <= pn-endda.
        MOVE-CORRESPONDING rgdir TO trgdir.
        APPEND trgdir.
      ENDLOOP.
    SORT trgdir BY seqnr DESCENDING
                    fpend DESCENDING.
    LOOP at trgdir.
      READ TABLE trgdir INDEX 1.
      IF sy-subrc = 0.
        mon = trgdir-fpbeg+4(2).
        year = trgdir-fpbeg+0(4).
        CASE mon.
          WHEN  '01'.
            month = 'January'.
          WHEN '02'.
            month = 'February'.
          WHEN '03'.
            month = 'March'.
          WHEN '04'.
            month = 'April'.
          WHEN '05'.
            month = 'May'.
          WHEN '06'.
            month = 'June'.
          WHEN '07'.
            month = 'July'.
          WHEN '08'.
            month = 'August'.
          WHEN '09'.
            month = 'September'.
          WHEN '10'.
            month = 'October'.
          WHEN '11'.
            month = 'November'.
          WHEN '12'.
            month = 'December'.
        ENDCASE.
        CONCATENATE month year INTO period SEPARATED
        BY space.
    ENDIF.
      rx-key-seqno = trgdir-seqnr.
      rx-key-pernr = p0001-pernr.
      rp-imp-c2-in.
    *  CHECK rp-imp-in-subrc EQ 0.
      trt[] = rt[].
    ENDLOOP.
    ENDFORM.                    " READ_CLUSTER
    *&      Form  GET_IT_FINAL
    FORM GET_IT_FINAL .
      CLEAR : it_final.
    loop at p0009.
      CASE p0009-zlsch.
         WHEN 'C'.
          it_final-pmode = 'Cheque'.
          it_final-zlsch = 'C'.
       WHEN 'E' OR ' '.
          it_final-pmode = 'Cash Payment'.
          it_final-zlsch = ' '.
       WHEN 'H'.
          it_final-pmode = 'HOLD'.
          it_final-zlsch = 'H'.
       WHEN 'D'.
          it_final-pmode = 'DRAFT PAYMENT'.
          it_final-zlsch = 'D'.
       WHEN 'O'.
          it_final-pmode = 'Onsite Payment'.
          it_final-zlsch = 'O'.
       WHEN 'T'.
          it_final-pmode = 'Bank Transfer'.
          it_final-zlsch = 'T'.
      ENDCASE.
    *  LOOP AT ptrt.
    *    CASE ptrt-lgart.
    *      WHEN '/560'.
    *        it_final-pnetmt = ptrt-betrg.
    *      WHEN '/101'.
    *        it_final-pgrsmt = ptrt-betrg.
    *    ENDCASE.
    *  ENDLOOP.
      LOOP AT trt.
        CASE trt-lgart.
    *      WHEN '/560' OR '/559' OR '/557'.
    *       clear:it_final-netmt.
    *        IF p0009-zlsch EQ space AND trt-lgart EQ '/560'.
    *          it_final-netmt = trt-betrg.
    *        ENDIF.
    *        IF ( p0009-zlsch EQ 'T' OR p0009-zlsch EQ 'C' ) AND trt-lgart EQ '/559'.
    *          it_final-netmt = trt-betrg.
    *        ENDIF.
    *        IF p0009-zlsch EQ 'E' AND trt-lgart EQ '/557'.
    *          it_final-netmt = trt-betrg.
    *        ENDIF.
    *  break abap.
          WHEN '/560'.
            it_final-netmt = trt-betrg.
          WHEN '1001'.
            it_final-w1001 = trt-betrg.
          WHEN '1002'.
            it_final-w1002 = trt-betrg.
          WHEN '1003'.
            it_final-w1003 = trt-betrg.
          WHEN '1004'.
            it_final-w1004 = trt-betrg.
          WHEN '1005'.
            it_final-w1005 = trt-betrg.
          WHEN '1006'.
            it_final-w1006 = trt-betrg.
          WHEN '1007'.
            it_final-w1007 = trt-betrg.
          WHEN '1008'.
            it_final-w1008 = trt-betrg.
          WHEN '1009'.
            it_final-w1009 = trt-betrg.
          WHEN '1010'.
            it_final-w1010 = trt-betrg.
          WHEN '1011'.
            it_final-w1011 = trt-betrg.
          WHEN '1012'.
            it_final-w1012 = trt-betrg.
          WHEN '1013'.
            it_final-w1013 = trt-betrg.
          WHEN '1014'.
            it_final-w1014 = trt-betrg.
          WHEN '1015'.
            it_final-w1015 = trt-betrg.
          WHEN '1016'.
            it_final-w1016 = trt-betrg.
          WHEN '1017'.
            it_final-w1017 = trt-betrg.
          WHEN '1018'.
            it_final-w1018 = trt-betrg.
          WHEN '1019'.
            it_final-w1019 = trt-betrg.
          WHEN '1020'.
            it_final-w1020 = trt-betrg.
          WHEN '1022'.
            it_final-w1022 = trt-betrg.
          WHEN '1023'.
            it_final-w1023 = trt-betrg.
          WHEN '4002'.
            it_final-w4002 = trt-betrg.
          WHEN '/101'.
            it_final-grsmt = trt-betrg.
          WHEN '/3F1'.
            it_final-pfamt = trt-betrg.
          WHEN '/3E1'.
            it_final-esimt = trt-betrg.
          WHEN '/460'.
            it_final-incmt = trt-betrg.
          WHEN '/3P3'.
            it_final-prfmt = trt-betrg.
        ENDCASE.
      ENDLOOP.
      LOOP AT p2001.
        CASE p2001-subty.
          WHEN 'ADVA'.
            it_final-advlv = it_final-advlv + p2001-abwtg.
    *      WHEN 'ANNU'.
    *        it_final-annlv = it_final-annlv + p2001-abwtg.
    *      WHEN 'LWPL'.
    *        it_final-lwplv = it_final-lwplv + p2001-abwtg.
           WHEN 'MATR'.
            it_final-matlv = it_final-matlv + p2001-abwtg.
          WHEN 'OPTL'.
            it_final-optlv = it_final-optlv + p2001-abwtg.
          WHEN 'PROB'.
            it_final-prblv = it_final-prblv + p2001-abwtg.
          WHEN 'PT04' OR 'PT06' OR 'PT08' OR 'PT28' OR 'PT30' OR 'PT35' OR 'PT40' OR 'PT45'.
            it_final-ptnlv = it_final-ptnlv + p2001-abwtg.
          WHEN 'SP30' OR 'SPCL'.
            it_final-spllv = it_final-spllv + p2001-abwtg.
        ENDCASE.
      ENDLOOP.
    PROVIDE * FROM P2001 BETWEEN PN-BEGDA AND PN-ENDDA.
      IF P2001-SUBTY = 'ANNU'.
         it_final-annlv = it_final-annlv + p2001-abwtg.
      ENDIF.
        IF P2001-SUBTY = 'LWPL'.
           it_final-lwplv = it_final-lwplv + p2001-abwtg.
        ENDIF.
    ENDPROVIDE.
      LOOP AT p0014.
         CASE p0014-subty.
         WHEN '2006'.
           it_final-miscded = p0014-BETRG.
         WHEN '2007'.
            it_final-advrec = p0014-BETRG.
    *     WHEN '0588'.
    *        it_final-arier = p0014-lgart.
         ENDCASE.
      ENDLOOP.
    LOOP AT p0015.
         CASE p0015-subty.
         WHEN '2006'.
           it_final-miscded = p0015-BETRG.
         WHEN '2007'.
            it_final-advrec = p0015-BETRG.
    *     WHEN '0588'.
    *        it_final-arier = p0015-lgart.
         ENDCASE.
      ENDLOOP.
      it_final-totlv = it_final-advlv + it_final-annlv + it_final-lwplv + it_final-matlv +
                       it_final-optlv + it_final-prblv + it_final-ptnlv + it_final-spllv.
      it_final-pernr = p0001-pernr.
      it_final-ename = p0001-ename.
      it_final-btrtl = p0001-btrtl.
      it_final-bkplz = p0009-bkplz.
      it_final-bankl = p0009-bankl.
    *  it_final-vargr = it_final-pgrsmt - it_final-grsmt.
    *  it_final-varnt = it_final-pnetmt - it_final-netmt.
    *PROVIDE * FROM P2001 BETWEEN PN-BEGDA AND PN-ENDDA.
      READ TABLE p0027 WITH KEY pernr =  pernr-pernr
                                subty = '01'.
      it_final-kostl = p0027-kst01.
      SELECT SINGLE ktext INTO it_final-ktext
      FROM cskt
      WHERE kostl EQ it_final-kostl
      AND   spras EQ 'E'.
      SELECT SINGLE btext INTO it_final-btext
      FROM t001p
      WHERE werks EQ p0001-werks
      AND   btrtl EQ p0001-btrtl
      AND   molga EQ '40'.
      SELECT SINGLE banka INTO it_final-bname FROM bnka
      WHERE banks EQ 'IN' AND
            bankl EQ p0009-bankl.
      it_final-ac_no = p0009-bankn.
      DATA:month like T009B-BUMON,
           yr  like T009B-BDATJ,
           totday like T009B-BUTAG.
          yr = pn-begda(4).
          month = pn-begda+4(2).
      CALL FUNCTION 'NUMBER_OF_DAYS_PER_MONTH_GET'
        EXPORTING
          PAR_MONTH       = month
          PAR_YEAR        = yr
       IMPORTING
         PAR_DAYS        = totday.
    it_final-ondays = totday - it_final-lwplv.
    APPEND it_final.
    *ENDPROVIDE.
    ENDLOOP.
    Edited by: akg.amit on Mar 10, 2011 9:48 AM

  • Report: sorting of data and temporary table sorting

    We have a report that runs a procedure, which inserts data into a temporary table using the supplied parameters. The report then selects data from this table.
    Previously the report has always displayed data in the same order in which it was inserted into the table, even though no sorting is specified by the report itself. I realize that the report itself ought to specify the sorting in order to guarantee it, but this has worked in the past.
    As part of an application/Oracle upgrade the report has been recompiled. Data is now displayed in a different order as before. However, each time we run it now, it IS the same (new) sorting. So it's still consistent, but consistent in a different way than before.
    Is there some way to go back to the old sorting (display in same order as inserted into table) - without having to re-code this (and all the other) reports in order to specify the sorting? We think that data is still inserted into the temporary table in the same order as before. We are using the same version of Crystal Reports.
    Edited by: user489847 on May 31, 2010 4:01 AM

    Crystal Reports.This is the Oracle Reports forum.
    Anyway, I have seen this in one of our applications too. Suddenly the ordering was different, because there was no explicit order by. There is never a guarantee of the ordering if you do not specify it.
    You should ask this in the database forum too, since this is not really Reports related.

  • Problem with cgicmd.dat in reports 10g

    Dear Sir/Mam,
    I've configured report serve on solaris 10. When executing reports using web url with key map given in cgicmd.dat file, I'm getting a very strange problem. Whatever parameters m passing to the reports through web url an additional "=" character is appended automatically. I'm giving details of the files below. Please help me out. Thanks in advance.
    Content of rwservlet.properties:-
    SERVER_IN_PROCESS=YES
    RELOAD_KEYMAP=YES
    DIAGNOSTIC=YES
    TRACEOPTS=TRACE_ALL
    TRACEFILE=rwservlet.trc
    TRACEMODE=TRACE_REPLACE
    SERVER=test
    #IMAGEURL=http://<web_server_name>:<port_num>/reports/rwservlet
    KEYMAPFILE=cgicmd.dat
    #DBAUTH=RWDBAUTH.HTM
    #SYSAUTH=RWSYSAUTH.HTM
    #ERRORTEMPLATE=RWERROR.HTM
    #COOKIEEXPIRE=30
    ENCRYPTIONKEY=reports9i
    #DIAGBODYTAGS=<reports_servlet_help_file_title>
    #DIAGHEADTAGS=<reports_servlet_help_file_body_tag>
    #HELPURL=<url_of_customized_help_file_for_reports_servlet>
    #SINGLESIGNON=YES
    OID_ENTITY=%REPORTS_OID_ENTITY%
    #ALLOWHTMLTAGS=NO
    #REPORTS_NETWORK_CONFIG=rwnetwork.conf
    #OIDCON_INIT=10
    #OIDCON_INCREMENT=10
    #OIDCON_TIMEOUT=0
    DEFAULTCHARSET=JA16EUC
    #DEFAULTCHARSET=EUC-JP
    Content of cgicmd.dat:-
    osk47zgenp: report=%1 userid=utimainapp/utimainapp@testdb rundebug=NO desformat=delimited destype=cache mode=bitmap mast_ext=roymask.xls p_start_dt=%2 p_end_dt=%3 p_srvc_id=%4 p_sch_id=%5 p_agnt_cd=%6 p_user_id=%7 p_sesn_id=%8
    Report URL is:-
    http://10.10.100.110:8890/reports/rwservlet?osk47zgenp+rp_os424_mat_recon.rdf+30-JUN-2009+01-JAN-2010++31++shashi+1492544
    Error coming on browser:-
    REP-110: File 'rp_os424_mat_recon.rdf=' not found.
    REP-0110: Unable to open file 'rp_os424_mat_recon.rdf='.
    Content of rwservlet.trc:-
    [2011/1/19 7:37:1:624] (RWClient:doGet) enter...
    [2011/1/19 7:37:1:625] Debug 50103 (RWClient:doGet): QueryString: osk47zgenp+rp_os424_mat_recon.rdf+30-JUN-2009+01-JAN-2010++31+
    shashi1492544
    [2011/1/19 7:37:1:625] Info 50103 (RWClient:processRequest): reload key map file: s_reloadKeyMap: YES
    [2011/1/19 7:37:1:626] Debug 50103 (KeyEntry:replaceParams): report=rp_os424_mat_recon.rdf= userid=utimainapp@testdb rundebug=N
    O desformat=delimited destype=cache mode=bitmap mast_ext=roymask.xls p_start_dt=30-JUN-2009= p_end_dt=01-JAN-2010= p_srvc_id=31=
    p_sch_id=shashi= p_agnt_cd=1492544= p_user_id= p_sesn_id=
    [2011/1/19 7:37:1:626] Debug 50103 (RWClientUtility:isFromPortal): portal: null
    [2011/1/19 7:37:1:626] Debug 50103 (RWClientUtility:isFromPortal): webdbversion: null
    [2011/1/19 7:37:1:627] Info 50103 (RWClientUtility:findServer): Failed to bind to server: test
    [2011/1/19 7:37:1:627] Warning 50103 (RWClient:startInProcessServer): start inprocess server test
    [2011/1/19 7:37:1:657] Debug 50103 (NetworkUtility:getIOR): Found a server and returning the IOR
    [2011/1/19 7:37:1:658] Debug 50103 (ServerManager:getServer): Found server class object
    [2011/1/19 7:37:1:659] Debug 50103 (ServerManager:getServer): ping server successfully
    [2011/1/19 7:37:1:660] Debug 50103 (RWClientUtility:getReportsServer): server: test
    [2011/1/19 7:37:1:660] Debug 50103 (ServerManager:getServer): Found server class object
    [2011/1/19 7:37:1:660] Debug 50103 (ServerManager:getServer): ping server successfully
    [2011/1/19 7:37:1:661] Debug 50103 (AuthManager:getAuthId): server secure: false
    [2011/1/19 7:37:1:663] Debug 50103 (RWClientUtility:getReportsServer): server: test
    [2011/1/19 7:37:1:664] Debug 50103 (RWClientUtility:getReportsServer): server: test
    [2011/1/19 7:37:1:664] Debug 50103 (ServerManager:getServer): Found server class object
    [2011/1/19 7:37:1:665] Debug 50103 (ServerManager:getServer): ping server successfully
    [2011/1/19 7:37:1:666] Debug 50103 (RWClientUtility:isFromPortal): portal: null
    [2011/1/19 7:37:1:666] Debug 50103 (RWClientUtility:isFromPortal): webdbversion: null
    [2011/1/19 7:37:1:667] Debug 50103 (RWClient:runReport): cmdline: p_end_dt=01-JAN-2010= baseUrl=http://10.10.100.110:8890/report
    s/rwservlet/getfile/ userid=utimainapp@testdb USER_AGENT="Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0)" p_srv
    c_id=31= SERVER_NAME=10.10.100.110 jobname="rp_os424_mat_recon.rdf=" p_sesn_id= mast_ext=roymask.xls getFilestr=/no> imagekey=re
    ports9i p_user_id= REMOTE_ADDR=10.10.105.54 SERVER_PROTOCOL=HTTP/1.1 authid=RWUser p_start_dt=30-JUN-2009= mode=bitmap REMOTE_HO
    ST=10.10.105.54 destype=cache SERVER_PORT=8890 p_sch_id=shashi= report="rp_os424_mat_recon.rdf=" expiredays=0 ACCEPT_LANGUAGE=en
    -us desformat=delimited p_agnt_cd=1492544= SCRIPT_NAME=/rwservlet rundebug=NO
    [2011/1/19 7:37:1:668] Debug 50103 (ServerManager:getServer): Found server class object
    [2011/1/19 7:37:1:669] Debug 50103 (ServerManager:getServer): ping server successfully
    [2011/1/19 7:37:1:669] Debug 50103 (ReportRunner:connectToServer): New Connection request for userid: RWUser to server: test
    [2011/1/19 7:37:1:673] Debug 50103 (ReportRunner:connectToServer): Connection succeeded for user: RWUser to server: test
    [2011/1/19 7:37:1:709] Info 51022 (ReportRunner:Release): Connection object has been released
    [2011/1/19 7:37:1:711] Exception 110 (): File 'rp_os424_mat_recon.rdf=' not found.
    REP-0110: Unable to open file 'rp_os424_mat_recon.rdf='.
    oracle.reports.RWException: IDL:oracle/reports/RWException:1.0
    at oracle.reports.RWExceptionHelper.read(RWExceptionHelper.java:67)
    at oracle.reports.server._ConnectionStub.runJob(_ConnectionStub.java:504)
    at oracle.reports.client.ReportRunner.dispatchReport(ReportRunner.java:288)
    at oracle.reports.rwclient.RWReportRunner.dispatchReport(RWReportRunner.java:86)
    at oracle.reports.rwclient.RWClient.runReport(RWClient.java:1671)
    at oracle.reports.rwclient.RWClient.processRequest(RWClient.java:1525)
    at oracle.reports.rwclient.RWClient.doGet(RWClient.java:366)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
    at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:663)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
    at java.lang.Thread.run(Thread.java:534)
    [2011/1/19 7:37:1:711] Debug 50103 (RWClientUtility:isFromPortal): portal: null
    [2011/1/19 7:37:1:711] Debug 50103 (RWClientUtility:isFromPortal): webdbversion: null
    [2011/1/19 7:37:1:716] Debug 50103 (RWClientUtility:isStatusFormat): statusformat: null
    [2011/1/19 7:37:1:717] Debug 50103 (RWClientUtility:isStatusFormat): statusformat: null
    [2011/1/19 7:37:1:717] (RWClient:doGet) ...exit

    HI,
    From where can I get access of the Doc id 341188.1. Could u tell me the solution? I'm stuck with it for more than 2 weeks.
    Thanks in advance.
    Regards,
    Shashi Ranjan

  • Problem sorting data in a file?

    I have a problem sorting this file alphabetically by second name. Basically, my method sorts each column alphabetically but i would like to sort the file according to the second name. I really really need help. Thanks
    File:
    Moe     Carl
    Saul     Sergio
    Rocky     Louis
    Ike     Ziken     
    This is how my method sorts the file:
    Ike          Carl
    Moe          Louis
    Rocky          Sergio
    Saul          ziken
    Instead
    Moe     Carl
    Rocky      Louis
    Saul     Sergio
    Ike     Ziken
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.util.*;
    class thedata implements Comparable
              private String firstname;
              private String secondname;
        public void setFirstname(String firstname)
                 this.firstname = firstname;
        public String getFirstname()
                  return firstname;
        public void setSecondname(String secondname)
                this.secondname = secondname;
        public String getSecondname()
                return secondname;
        public int compareTo(Object Student) throws ClassCastException
                if (!(Student instanceof ShowData))
                throw new ClassCastException("Error");
                String sn = ((ShowData) Student).getSecondname();
                return this.secondname.compareTo(sn);
    public class sort {
            public static void main(String[] args) {
            sortmethod();
            public static void sortmethod(){
              int j = 0;
              thedata data[] = new thedata[4];
             try
                      FileInputStream fstream = new FileInputStream("datafile.txt");
                      DataInputStream in = new DataInputStream(fstream);
                      BufferedReader br = new BufferedReader(new InputStreamReader(in));
                      String line;
                      String[] firstname = new String[4];
                      String[] secondname = new String[4];
                      ArrayList<String> list = new ArrayList<String>();
                      while ((line = br.readLine()) != null)
                              list.add(line);
                      Iterator<String> itr = list.iterator();
                      int k = 0;
                      for (itr = list.iterator(); itr.hasNext();)
                              String str = itr.next().toString();
                              String[] splitSt = str.split("\t");
                     for (int i = 0; i < splitSt.length; i++)
                                 firstname[k] = splitSt[0];
                                 secondname[k] = splitSt[1];
                      k++;
                      arraysort(firstname);
                      arraysort(secondname);
                         for(j = 0;j < 4;j++)
                                 data[j] = new thedata();
                                 data[j].setFirstname(firstname[j]);
                                 data[j].setSecondname(secondname[j]);
                      for (int i = 0; i < 4; i++)
                                 thedata show = data;
                             String firstname1 = show.getFirstname();
                             String secondname1 = show.getSecondname();
                                  System.out.println(firstname1 + "\t\t" + secondname1);
                        catch (Exception e)
         private static void arraysort(String[] array)
              for(int i=0; i<array.length; i++)
                   for(int j=0; j<array.length-1-i; j++)
                        if(array[j].compareTo(array[j+1])>0)
                                  String temp1 ="";
    temp1= array[j];
    array[j] = array[j+1];
    array[j+1] = temp1;
    Edited by: 999363 on Apr 11, 2013 3:41 AM

    You're not sorting your objects, you're only sorting the firstname and secondname arrays separately, so they get scrambled. Sort the array of `thedata` objects.
    BTW this:
        public int compareTo(Object Student) throws ClassCastException
                if (!(Student instanceof ShowData))
                throw new ClassCastException("Error");
                String sn = ((ShowData) Student).getSecondname();
        }contains a complete waste of time. You should just remove 'throws ClassCastException' and the first two lines of the method. The test and throw happens anyway at the cast. If Student isn't an instance of ShowData the cast will fail with the same exception (and a much better error message).

  • Problem with Save data with report

    Post Author: ramprosoft
    CA Forum: General
    Hi,
    I am new to CR and using Crystal Reports XI with SQL Server 2000.
    I'm not able to remove the saved data in a report. I have played around different options, but unfortunately I'm not able to remove the data. I have checked variouse places in web above this issue not able to find a solution, so decided to open a new post. The problem is :
    I have created a simple report and saved with-out data (1st version) the file size was 16KB. After few changes I have saved the same report with Data, the file size become 1065 KB. Its perfect and I can view the report in Report Viewer. Great Stuff!. Now the Testing completed, I would like to move this report to production environment, I notice that I'm unable to remove the data. I have played around various tricks like below, but it didnt work well.
    Trick 1:
    Uncheck: File->Options->Reporting (tab)->Save Data With Report.
    Check: File -> Options -> Reporting (tab)->Discard Saved data on Open,
    Uncheck: file-> Report Options -> Save Data With Report.
    File -> Save Data with Report (Not selected)
    Opened the report and try "save" and also tried "save as", still the size is 1065.
    Trick 2:
    I enabled all "Save Data with report" feature. Deleted all the rows in the table related to the query, previewed the report and Saved the report with "Save Data with report" featuer. But now, the funny part happen, the file size increased to 1070kb, instead of reducing. Worst Stuff!!!
    Trick 3:
    Updated the latest version of Patch and tried above tricks, still i'm not able to remove the data.
    Appreciate, if you could help me to fix the problem.
    thanks in advance

    Post Author: salmanq
    CA Forum: General
    Hi, This
    post is very informative, however I would like some specific information. If
    someone can help me then please send me a private message. Best Regards,
    Wholesale Pages UK Dropshippers
    | Wholesale Suppliers
    Australia Wholesalers and
    Dropshippers | Dubai Property and Real Estate

  • DB link problem between active Data Guard and report application database

    My database version in 11.2.0.2.0 and OS is Oracle Solaris 10 9/10.
    I am facing a problem in my Active data guard Database for reporting purpose. Active Data guard information is as below.
    SQL> select name, database_role, open_mode from v$database;
    NAME DATABASE_ROLE OPEN_MODE
    ORCL PHYSICAL STANDBY READ ONLY WITH APPLY
    Problem detail is below
    I have created a db link (Name: DATADB_LINK) between active data guard and report application database for reporting purpose.
    SQL> create database link DATADB_LINK connect to HR identified by hr using 'DRFUNPD';
    Database link created.
    But when I run a query using db link from my report application database I got this below error.
    ORA-01555: snapshot too old: rollback segment number 10 with name "_SYSSMU10_4261549777$" too small
    ORA-02063: preceding line from DATADB_LINK
    Then I check Active Data Guard database alart log file and get below error
    ORA-01555 caused by SQL statement below (SQL ID: 11yj3pucjguc8, Query Duration=1 sec, SCN: 0x0000.07c708c3):SELECT "A2"."BUSINESS_TRANSACTION_REFERENCE","A2"."BUSINESS_TRANSACTION_CODE",MAX(CASE "A1"."TRANS_DATA_KEY" WHEN 'feature' THEN "A1"."TRANS_DATA_VALUE" END ),MAX(CASE "A1"."TRANS_DATA_KEY" WHEN 'otherFeature' THEN "A1"."TRANS_DATA_VALUE" END )
    But the interesting point if I run the report query directly in Active Data Guard database, I never got error.
    So is it a problem of DB link between active Data Guard and other database?

    Fazlul Kabir Mahfuz wrote:
    My database version in 11.2.0.2.0 and OS is Oracle Solaris 10 9/10.
    I am facing a problem in my Active data guard Database for reporting purpose. Active Data guard information is as below.
    SQL> select name, database_role, open_mode from v$database;
    NAME DATABASE_ROLE OPEN_MODE
    ORCL PHYSICAL STANDBY READ ONLY WITH APPLY
    Problem detail is below
    I have created a db link (Name: DATADB_LINK) between active data guard and report application database for reporting purpose.
    SQL> create database link DATADB_LINK connect to HR identified by hr using 'DRFUNPD';
    Database link created.
    But when I run a query using db link from my report application database I got this below error.
    ORA-01555: snapshot too old: rollback segment number 10 with name "_SYSSMU10_4261549777$" too small
    ORA-02063: preceding line from DATADB_LINK
    Then I check Active Data Guard database alart log file and get below error
    ORA-01555 caused by SQL statement below (SQL ID: 11yj3pucjguc8, Query Duration=1 sec, SCN: 0x0000.07c708c3):SELECT "A2"."BUSINESS_TRANSACTION_REFERENCE","A2"."BUSINESS_TRANSACTION_CODE",MAX(CASE "A1"."TRANS_DATA_KEY" WHEN 'feature' THEN "A1"."TRANS_DATA_VALUE" END ),MAX(CASE "A1"."TRANS_DATA_KEY" WHEN 'otherFeature' THEN "A1"."TRANS_DATA_VALUE" END )
    But the interesting point if I run the report query directly in Active Data Guard database, I never got error.
    So is it a problem of DB link between active Data Guard and other database?
    Check this note which is applicable for your environment
    *ORA-01555 on Active Data Guard Standby Database [ID 1273808.1]*
    also
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:8908307196113

  • Problem in sorting with date

    Hi,
    I have a requirement of sorting a column which displays date or a comment. Because of the presence of comment in some of the rows, the data type is not maintained as Date but as String.
    That is cause of problem as the dates are getting sorted as per the String rules.
    Could anyone suggest an approach of sorting strings with date??
    Many Thanks,
    Anagha

    Hello Anagha!
    Try to this code.
    class MyComparator implements Comparator {
         public int compare(Object o1, Object o2) {
         IWDNodeElement element1 = (IWDNodeElement) o1;
         IWDNodeElement element2 = (IWDNodeElement) o2;
         Date date1 = new Date(element1.getAttributeAsText("Your name of Attribute"));
         Date date2 = new Date(element2.getAttributeAsText("Your name of Attribute"));
         return date1.compareTo(date2);
    And just use it for your node, like this
        I"YourNode"Node node = wdContext.node"YourNode"();
        MyComparator myComparator = new MyComparator();
        node.sortElements(myComparator);
    I hope it helps!
    Message was edited by:
            Vitali Bashko

  • Sorting by date in columns cross tab report.

    Hi all,
    I am working on a cross tab report in BI Publisher in which columns are generated dynamically in a pivot table depicting months as Jan 09 , Feb 09.... but data type is char.When displayed in pdf, columns are generated sorted alphabetically.
    How can I have them sorted by date in final pdf?
    or
    How can I stop the columns being sorted in pivot table at template level?
    Thanks.
    Edited by: user9061488 on Jul 21, 2010 1:13 AM

    You need to get a extra column in the query just for sorting purpose, which will have month number in it or YYYYMMDD. format, so that , it can be used in only for sorting.
    with JAN 09, FEB 09 , we can do it, but it will be little complex

  • Print or download ALV report with sort options

    Dear friends,
    How i can download into excel or print ALV report with sort options, like customer name column with similar values should not repeat in the print out or download file.
    Regards,
    Praveen Lobo

    Hi Praveen,
    Use this code, its working:-
    *FOR SORTING DATA
    DATA : it_sort TYPE slis_t_sortinfo_alv,
           wa_sort TYPE slis_sortinfo_alv.
    *          SORT W.R.T. CUSTOMER NAME
      wa_sort-spos = 1.
      wa_sort-fieldname = 'NAME1'. "field customer name
      wa_sort-tabname = 'IT_KNA1'. "internal table with records
      wa_sort-up = 'X'.
      APPEND wa_sort TO it_sort.
      CLEAR wa_sort.
    "this will sort the ALV o/p for customer with same name
    "now the name will not be repeated
    "records with same name will be grouped
    *          DISPLAY RECORDS IN ALV GRID
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
      EXPORTING
        i_callback_program                = sy-repid "report id
        it_fieldcat                       = it_field "field catalog
        it_sort                           = it_sort "sort info
      TABLES
        t_outtab                          = it_kna1 "internal table
      EXCEPTIONS
        program_error                     = 1
        OTHERS                            = 2.
      IF sy-subrc <> 0.
      ENDIF.
    Hope this solves your problem.
    Thanks & Regards,
    Tarun Gambhir
    Edited by: Tarun Gambhir on Dec 31, 2008 1:13 PM

  • Break Column in Group Above Report - Causing Error in Data Groupings

    Since I'm required to designate at least one Break Column in my Group Above report, I created a dummy column in my SELECT statement. I did this so that I could designate the required minimum of at least one break column, but I designated one that won't have any impact on how the report is ordered, because it will be the same value (NULL) for every record. So, my SELECT statement starts out looking something like this:
    SELECT
    NULL break_column,
    column_1 column1_name,
    column_2 column2_name,
    column_3 column3_name,
    column_4 column4_name,
    column_5 column5_name
    I needed for the break column to have no impact on the ordering of the report because I need for the ORDER BY clause to completely control how the report is sorted, w/o any interference by a hard-coded break column. I need this because my intention is to make the ORDER BY clause dynamic, and a hard-coded break column with actual data would supercede the ORDER BY clause, thereby making it static.
    Everything is working correctly with regard to how the report is sorting the records designated as group columns; however, the detail columns are getting all messed up as far as what main record they're grouped under.
    By this I mean that when I designate only one break column, some details may display under the wrong group, where they're not supposed to. For example, each page consists of demographic info. about a specific record on a table, and the details listed under it should be the individual comments that have been made on that record. The issue I'm seeing is that for some records, it's showing comments from not only the record for that group, but it continues to list out comments made for other requests as well, when those comments should be displayed under their own respective records.
    Why is this happening when I designate only one break column, and how can I keep it from doing this?

    Did you get a solution for this?
    I have the same problem.
    Any help would be appreciated.
    Thanks,
    Madhu

  • Sort in date order from Essbase cube source

    Hi everyone,
    I have an Essbase cube which I'm displaying the data from in OBIEE. Within the cube one of the dimensions is a date ( set as a time dimension ).
    It has several generations:
    Gen2 - Year, 2010
    Gen3 - Year/Quarter, 2010/Q1
    Gen4 - Year/Month, 2010/01
    Gen5 - Day/Month/Year, 26/01/2010
    If I produce a report filtered on the Year, say 2009, and display the full date, it puts all twelve 1st's of the month first, then the 2nds, and so on. I can resolve this by putting the Year/Month field into the report and sort on that, then the full date, but I really only want the date in chronological order.
    Can anyone advise on the best way to achieve this?
    Thanks to all in advance.
    Bagpuss
    Edited by: Bagpuss1969 on Jan 26, 2010 12:46 PM
    Generation 5 is DD/MM/YYYY

    And this is one of the reasons why OBIEE/Essbase integration is still #1 on the [Dont Try This At Home Kids|http://majendi.blogspot.com/2009/06/dont-try-this-at-home-kids.html] list.
    One of the most basic facts about the current integration - which is often disregarded - is that dimension levels and hence their contained members come across as pure VARCHARs. Sort order-wise this gives you a standard alpha-numeric sort order by default.
    However there's a workaround which we discussed just last week: Oracle BI import Essbase cube (problem on the months)
    Essbase defines the sort order. Otherwise it's alpha-numeric.
    C.

  • Treo 755P Expense Report Problems

    I have tried two expense report programs for my Treo 755P and have been frustrated with both. The first, Expense Report Wizard, wouldn't run. After a month of back and forth I asked for a refund. The second, Expense EZ, loads on the Treo, doesn't appear anywhere on my Palm desktop on my PC running XP but does show up in the "items column" on my Palm desktop on my laptop running Vista. I have entered an expense on the Treo, synced with both the PC and the laptop. Still nothing on the PC and the entry on the Treo doesn't transfer to the laptop. I can enter items on the laptop directly but that doesn't help with my problem with the programs. I am running the most current desktop on both.
    I need some help and advice. Why can't I get the progam to enter into the PC desktop and why doesn't it transfer to the laptop? Is there a better and more user friendly expense report I can use. I had been using the one that came with my Tungsten E2 and it worked like a charm for me. 
    HELP!!!!!
    Post relates to: Treo 755p (Verizon)

    Hello and thank you for using the Palm Help Forums!
     Have you tried a hard reset on the device yet? By doing this it will erase all data on the device but restore settings to default. Most likely it's some sort of data corruption causing the problem and a hard reset may resolve this. For further information and instructions on how to do a hard reset visit kb.palm.com and look up article number 42094 in the Solution ID search field.
    Sorry for the troubles and I hope this helps.
    Post relates to: Treo 800w (Sprint)
    Message Edited by patkosanke on 10-07-2008 10:05 AM

  • My photos not sorted by date in photos

    my photos are no longer sorted by date after change to photos when viewed in all photos. Also how do you change the order from oldest to newest down the screen. An option for black background would be nice.

    The problems reported here occurred right after updating to iOS according to the users as TD mentioned. 
    It's a compatibility problem between iPhoto and iOS6 that the only workaround would be to possibly batch change the date of the photos in iPhoto . Therefore we'll have to wait for it to be fixed with either an iPhoto update or an iOS update, which ever Apple feels is the proper item to to be changed.
    If they update iPhoto first (which is probably what they'll do) it'll be called an iPhoto problem.
    OT

Maybe you are looking for

  • Why can't I install the flash player on my Kindle Fire???

    I have tried several times to install the flash player on my Kindle Fire but it keeps telling me there is an issue opening the download. How am I able to download it yet am unable to install it. It makes no sense to me why it would be able to downloa

  • New Content Type with RDL template

    I'm building a new Project Server 2010 site template and one of the libraries that I want to provide will store the Status Reports for each Project. I'm struggling with what seems like a simple concept. Create a new Content Type that uses the status_

  • Sap FC Account hierarchy total calculation

    Hi, I'm working with the SAP RDS for Solvency II. Into a category scenario you can manage a Chart of accounts as a subset of the account dimension. I have also a predefined hierarchy into Account dimension. I noticed that for some scenarios (eg Balan

  • Who has Office 2003 installed? Need your help

    http://bugs.winehq.org/show_bug.cgi?id=25460 In Word/Excel File->Properties dialog. When I type something in a text box and press TAB, the next text box becomes active (as expected). But before that the tab symbol is inserted into the first text box.

  • Blank Line After Blank Line aka Mozolla Composer

    Every time I make changes in Creator 2.1 it appears to add a blank link between every data line in the associated java file.. This was (and still is even in Sea Monkey) a problem with Mozilla Composer every since Netscape (Composer) 4.x.. way back wh