Timestamp format in Report table

How can you set the timestamp value to nowrap in the Report table results. It is the only column that is wrapping since the timestamp is longer than the Column header

I also work with Timestamps, and I would ask what you are trying to achieve. The Timestamp takes up a lot of room. If you don't necessarily need every bit of the timestamp, use a dateformat to display it in a shorter format that fits in the space restraints you define. If you need all the data, you're going to have to either give it the space it needs (could be up to almost 30 characters) or put it on two lines.
You could also try using HTML tags to affect the font size, or even display the full timestamp as a mouseover. Other than that, not many options.

Similar Messages

  • How to print formatted data / report on user's printer in Web Application

    Hi All
    I want to print some formatted data/report ( it might be 1000 pages) on user's printer.
    application is web based and tech. used are Java - jsp - servlets
    now prob. is ...
    how i will transfer all data to client (web browser) from the server and how i can print that data on user's printer ...??
    there is requirement that I can not use applet for this purpose.
    if any one done or have idea then let me know.
    thanks
    Shailesh Koradiya

    Hi
    Its simple, first of all break ur data in terms of pages. Write the logic in one JSP.
    suppose i have jsp PrintReport.jsp , for page 1 url will PrintReport.jsp?page=0 ... so on
    get the page parameter in JSP
    String page="";
    if(request.getParameter("page")!=null)
    page=request.getParameter("page");
    get the rowcount from the Result and assume records per page is 100
    if u have 1000 rows then 10 pages u have to serve
    StartRowNumber=page*recordsPerPage
    EndRowNumber=StartRowNumber+recordsPerPage
    Execute a SQL query , select * from table where rownum between
    StartRowNumber and EndRowNumber
    Provide google like pageNumbers in ur HTML page
    ie 1 2 3 4 5 6 ..10
    Regarding printing , Create HTML button called 'print' and add Javascript ' window.print()' on clicking it.
    Hope it would solve ur problem
    Cheers
    Rajendra Bandi

  • How to write a Timestamp in an Oracle table?

    Hi,
    I am pretty new to SAP IdM and therefore have a very basic question.
    I am using SAP IdM 7.2 SP8 on Oracle.
    I was creating a job where I calculated some values from the database with a 'From Database' path.
    Then I wanted to store these values in a temporary table together with the timestamp when these were stored/calculated.
    Doing this in the Destination-Tab of the 'From Database'-path I got following error message...
    java.sql.SQLException: Missing IN or OUT parameter at index::2
    I did several tests and created a little test which recreates the problem...
    1. Create a Job with a 'From Database'-path
    2. In the source statement, insert...
    select
      'Test' AS Message,
      systimestamp AS TempDate
    from dual;
    3. In the destination tab add a temp Table and two columns. Since I want to add a date/timestamp-value I create a column of type 'DATE' here.
    4. After running the Job the error appears. (Here in german)
    Doing some additional tests I am able to add the date as a varchar2 if I convert the TempDate using a to_char()-function.
    Thus it seems like I misusing the Timestamp/Date data type.
    Do you have recommendations how I can add the Timestamp as a Date/Timestamp value to my table?
    Kind Regards, Andreas

    Hi,
    I really never got this to work properly and most of what follows is just my own rant caused by the annoyance of not getting this seemingly simple thing to work and are strictly my own theories not based on facts or actual knowledge of how Oracle or JDBC works, nor representing my employer in any way. Anyhow :-)
    Its possible that cause of the problem is that the timestamp is "destroyed" by NLS/JDBC when transferred from the database to the client. This is also one of the issues that varies a bit from version to version of the jdbc driver. Also the DATE datatype does not include fractional seconds, so you need to create the column as TIMESTAMP if you want that.
    The real fun thing with Oracle (or their jdbc driver) is that you can read a timestamp in the source and jdbc/NLS will convert it according to your locality setting, but you can't write what you read from Oracle back to Oracle.
    Just the same way you can use to_char to get a timestamp in a nice enough format, but when writing it to_date may not be able to parse the date back when using the exact same conversion mask...
    Example:
         select TO_CHAR(current_timestamp,'YYYYMMDD HH24:MI:SS.FFTZHTZM') from dual;
    Gives: 20140314 12:41:03.320000+0100. But both
         select TO_DATE('20140314 12:41:03.320000+0100','YYYYMMDD HH24:MI:SS.FFTZHTZM') from dual;
    and
         select TO_TIMESTAMP('20140314 12:41:03.320000+0100','YYYYMMDD HH24:MI:SS.FFTZHTZM') from dual;
    give errors.
    Rather than argue and fight with it I usually just end up using a To Database pass, check SQL Updating and write the Create Table and update/insert statements myself. Alternativly you can create the table with a trigger that automatically adds the timestamp on inserts/updates.
    1st To Database pass has no source, creates the temp table:
    The next pass has the source to read the data and insert it into the temp table:
    Then just use the current_timestamp function in the insert statement to keep it local and unconverted in the database engine...
    Br
    Chris
    Message was edited by: Per Krabsetsve

  • Need help with Formating a report referenced by a Weblink field

    Hi,
    I have created a report and a field that's a weblink. The field on accounts references the report I've created so that it only returns information on that account and not all accounts in Siebel.
    Now.. the report is formatted in a sequential fashion as most basic reports are formatted.. ex.
    Account Name Number Address City State etc.
    aaaaaa 2222 23 Main NY NY
    I want it to be formatted in a table and not horizontal. Is this possible?
    Like:
    Account Name Number
    aaaaaa 2222
    Address City State etc.
    23 Main NY NY

    Hi !
    On the second step of report design, click on Add view and then Narrative.
    In the narrative part paste the following (it's only an example, you'll have to modify it to fit your needs) :
    <table border="1" cellpadding="5">
    <tr bgcolor="#6666FF">
    <td>Account Name</td><td>Account Location</td>
    </tr>
    <tr>
    <td>@1</td><td>@2</td>
    </tr>
    <tr bgcolor="#6666FF">
    <td>Address</td><td>City</td>
    </tr>
    <tr>
    <td>@3</td><td>@4 @5</td>
    </tr>
    </table>
    This assume that you selected column 1 to 5 with the appropriate datas...
    Regards,
    Max

  • DATE FORMAT in HANA table

    Hi
    I have Csv file in UTF-8 format have fields like data
    2012/02/23, XXXXXX( all 2byte characters),........................................
    When i import it says invalid number for 2012/02/23.
    I created table like this
    Create column table Schema1.table (
    SHOD     DATE,
    MANUD     DATE,
    and
    Create column table Schema1.table (
    SHOD     VARCHAR(10),
    MANUD     VARCHAR(10),
    both does not allow me to store data into table..any idea please.
    Regards
    Magalingam

    Hi,
    If you are using the .ctl file to import .CSV files into HANA, the default source date format is YYYYMMDD. However, if say your source format is in the YYYY/MM/DD format for e.g... you can change your IMPORT statement as follows:
    IMPORT FROM '<file_location>.ctl' WITH THREADS 16 BATCH 200000 DATE FORMAT 'YYYY/MM/DD';
    It is worth noting the SYTAX of the IMPORT statement as you could transform TIME and TIMESTAMP fields similarly:
    IMPORT FROM [<file_type>] <file_path> [INTO <table_name>] [WITH <import_from_option
    _list>]
    <file_type> ::= CSV FILE | CONTROL FILE
    <file_path> ::= '<character>...'
    <table_name> ::= [<schema_name>.]<identifier>
    <import_from_option_list> ::= <import_from_option> | <import_from_option_list> <import_from_option>
    <import_from_option> :: =
    THREADS <number_of_threads> |
    BATCH <number_of_records_of_each_commit> |
    TABLE LOCK |
    NO TYPE CHECK |
    SKIP FIRST <number_of_rows_to_skip> ROW |
    COLUMN LIST IN FIRST ROW |
    COLUMN LIST ( <column_name_list> ) |
    RECORD DELIMITED BY  '<string_for_record_delimiter>' |
    FIELD DELIMITED BY  '<string_for_field_delimiter>' |
    OPTIONALLY ENCLOSED BY '<character_for_optional_enclosure>' |
    DATE FORMAT '<string_for_date_format>' |
    TIME FORMAT '<string_for_time_format>' |
    TIMESTAMP FORMAT '<string_for_timestamp_format>' |
    Thanks,
    Anooj

  • Conditional Format in Pivot Table

    Thanks in advance...
    I created report like below in pivot table
    _____Year 2009
    ______Period 3
    Name Mark
    Aju__ 100
    Alex_ 75
    Mick_ 80
    Rabi_ 90
    sam_ 80
    from this report I need to highlight the entire row of 'Alex' and 'Sam' ...
    but its work in 'Compound Layout'
    How could I do this ?
    Regards,
    Selva

    Hi Selva,
    Conditional formatting is bit difficult for your requirement in Pivot table,because there some limitations in conditional formatting of pivot table.
    You can select the entire Pivot table and apply the conditional formatting but..conditions will only format specific Cells .. and can not format entire row.. (for exmp. it will highlight only cell of alex. and not entire row of alex)
    Hope this will help..
    Thanks.

  • Timestamp format must be yyyy-mm-dd hh:mm:ss.fffffffff

    We have a project using TopLink 10.1.3 with WAS 6.0 and Oracle 9i. The project is experiencing the following exception. Could someone provide an insight on what could cause the error? We greatly appreciate your help.
    [7/20/07 10:00:32:718 EDT] 00000023 SystemOut     O [TopLink Finer]: 2007.07.20 10:00:32.718--ServerSession(120755866)--client acquired
    [7/20/07 10:00:32:718 EDT] 00000023 SystemOut     O [TopLink Finest]: 2007.07.20 10:00:32.718--ClientSession(1697994439)--Execute query ReadAllQuery(com.ford.gpd.plm.fos.bo.RepSolvedRules)
    [7/20/07 10:00:32:718 EDT] 00000023 SystemOut     O [TopLink Finest]: 2007.07.20 10:00:32.718--ServerSession(120755866)--reconnecting to external connection pool
    [7/20/07 10:00:32:718 EDT] 00000023 SystemOut     O [TopLink Fine]: 2007.07.20 10:00:32.718--ServerSession(120755866)--Connection(2023118535)--select a.fos005_ftr_C, a.fos007_rule_d, a.fos011_column_d, a.fos001_option_c, a.fos009_report_k, a.FOS002_PROD_TYPE_C, a.FOS002_VEH_LINE_C, a.FOS002_MODEL_YEAR_R
    from  FFOSV01_REP_OPT_SOLVE_RULE_VW a, FFOS020_REP_SOLVE_QUALIFIER b
    where a.fos009_report_k = 3
    and a.fos011_column_d in (3, 4, 5, 8, 9, 14)
    and UPPER(b.fos005_qualifier_ftr_c) like UPPER('a3%')
    and a.fos009_report_k = b.fos009_report_k
    and a.fos013_group_d = b.fos013_group_d
    and a.fos011_column_d = b.fos011_column_d
    and a.fos007_rule_d = b.fos007_rule_d
    --and a.fos013_report_date_s = b.fos013_report_date_s
    order by a.fos005_ftr_C, a.fos011_column_d, DECODE(a.fos001_option_c, 'S', 1, 'L', 2, 'M', 3, 'O', 4, 'P', 5, 'I', 6, 'A', 7)
    [7/20/07 10:00:32:749 EDT] 00000023 SystemOut     O [TopLink Warning]: 2007.07.20 10:00:32.749--ClientSession(1697994439)--java.lang.IllegalArgumentException: Timestamp format must be yyyy-mm-dd hh:mm:ss.fffffffff
         at java.sql.Timestamp.valueOf(Timestamp.java:304)
         at oracle.jdbc.driver.OracleStatement.getTimestampValue(OracleStatement.java(Compiled Code))
         at oracle.jdbc.driver.OracleResultSetImpl.getTimestamp(OracleResultSetImpl.java(Compiled Code))
         at com.ibm.ws.rsadapter.jdbc.WSJdbcResultSet.getTimestamp(WSJdbcResultSet.java(Compiled Code))
         at oracle.toplink.oraclespecific.Oracle9Platform.getObjectFromResultSet(Oracle9Platform.java(Compiled Code))
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.getObject(DatabaseAccessor.java(Compiled Code))
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.fetchRow(DatabaseAccessor.java(Compiled Code))
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java(Compiled Code))
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:442)
         at oracle.toplink.threetier.ServerSession.executeCall(ServerSession.java:453)
         at oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:117)
         at oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:103)
         at oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism.executeSelectCall(DatasourceCallQueryMechanism.java:174)
         at oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism.selectAllRows(DatasourceCallQueryMechanism.java:481)
         at oracle.toplink.queryframework.ReadAllQuery.executeObjectLevelReadQuery(ReadAllQuery.java:458)
         at oracle.toplink.queryframework.ObjectLevelReadQuery.executeDatabaseQuery(ObjectLevelReadQuery.java:800)
         at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:603)
         at oracle.toplink.queryframework.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:768)
         at oracle.toplink.queryframework.ReadAllQuery.execute(ReadAllQuery.java:436)
         at oracle.toplink.publicinterface.Session.internalExecuteQuery(Session.java:2062)
         at oracle.toplink.publicinterface.Session.executeQuery(Session.java:981)
         at oracle.toplink.publicinterface.Session.executeQuery(Session.java:953)
         at com.ford.it.persistence.impl.toplink.AbstractQueryStrategy.execute(AbstractQueryStrategy.java:324)
         at com.ford.it.persistence.impl.toplink.QueryImpl.execute(QueryImpl.java:138)FFOSV01_REP_OPT_SOLVE_RULE_VW is a VIEW and the reference b FFOS020_REP_SOLVE_QUALIFIER is a table with a to b as one-to-many mapping. View has a reportDate filed as DATE and the same with the b table. Java side descriptors are using the java.sql.Timestamp.
    The problem is when joining the View with the Table(like in the above SQL), the Exception occurs. If we run a select from the View then we don't see this exception.
    -- Haiwei

    Thanks for your responses.
    The developer changed the query in the Workbench to be:
    SELECT DISTINCT t0.FOS001_OPTION_C, t0.FOS007_RULE_D, t0.FOS009_REPORT_K, t0.FOS011_COLUMN_D, t0.FOS013_GROUP_D, t0.FOS003_EFF_PT_IN_C, t0.FOS003_EFF_PT_OUT_C, t0.FOS013_REPORT_DATE_S, t0.FOS005_FTR_C, t0.FOS002_PROD_TYPE_C, t0.FOS002_MODEL_YEAR_R, t0.FOS002_VEH_LINE_C
    FROM FFOSV01_REP_OPT_SOLVE_RULE_VW t0, FFOS020_REP_SOLVE_QUALIFIER t1
    WHERE (((t0.FOS009_REPORT_K = 3)
    AND (t1.FOS005_QUALIFIER_FTR_C LIKE 'A3%'))
    AND (t0.FOS011_COLUMN_D in (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14))
    AND ((t1.FOS002_VEH_LINE_C = t0.FOS002_VEH_LINE_C)
    AND ((t1.FOS013_GROUP_D = t0.FOS013_GROUP_D)
    AND ((t1.FOS007_RULE_D = t0.FOS007_RULE_D)
    AND ((t1.FOS009_REPORT_K = t0.FOS009_REPORT_K)
    AND ((t1.FOS013_REPORT_DATE_S = t0.FOS013_REPORT_DATE_S)
    AND ((t1.FOS002_PROD_TYPE_C = t0.FOS002_PROD_TYPE_C)
    AND ((t1.FOS011_COLUMN_D = t0.FOS011_COLUMN_D)
    AND (t1.FOS002_MODEL_YEAR_R = t0.FOS002_MODEL_YEAR_R)))))))))
    order by t0.FOS005_FTR_C, t0.FOS011_COLUMN_D, DECODE(t0.FOS001_OPTION_C, 'S', 1, 'L', 2, 'M', 3, 'O', 4, 'P', 5, 'I', 6, 'A', 7)and it worked.
    What happened was that when the application defined a similar join using Expression, with simplified where clause, between the View and table in the Workbench, the join worked fine. So the applicaiton updated its original query (the select part) based on the SQL generated by TopLink runtime for the join.
    The project uses Oracle9Platform.
    Regarding "Query executes in JDBC and returns expected result": the original query executed fine with Oracle SQL Developer.
    Regarding "Does the date column you are trying to read have any time portion or is it just a date with no time portion?": the date column is of DATE database type, and has time portion.
    Thanks again for your responses.
    Haiwei

  • Error formatting Cross-Tab table

    Hello!
    My CR2008 reports include many cross-tab tables and till now, everything went smoothly.
    ...till I got the message "Error formatting Cross-Tab table" while viewing the print preview.
    Technically the error comes up while clicking one of the groups itemized on the left.
    The database hasn't changed. Besides it happened with two different reports associated with two different data bases.
    Any idea ?
    Any help would be appreciated as I've been lost for a while.
    Thib'

    Before I received your answer (thanks a million by the way), I have been installing/un-installing subreports in the main report 'til the 'Error formatting Cross-Tab table' stops.
    The Error stopped occurring when I added a small Group Footer in the subreport : apparently the Error had begun when I had put it to a zero-height.
    Having said that, an hour later and many changes here and there, I have just put a zero-height again and no Error anymore...
    > Check in the main report design tab to see if the width of the subreport fits within the page of the main report.
    > If it doesn't try shrinking the subreport to fit.
    Within 'an hour later and many changes here and there', I did the opposite : I widened a subreport which did not fit in the main report. And the Error isn't raised anymore.
    > What happens if you drill into the subreport?
    You mean if I double-click the subreport to edit it ?
    If that is your question, no Error has ever been raised in the subreport : always in the Preview tab of the Main Report.
    Sorry for describing such an irrational behavior.
    I will categorize my question as answered but if you have any idea, I'd be delighted : I feel like this can happen again and I'd be less under stress to know what detail/ 'parameter' makes CR raise this Error. But your hint about the subreport fitting or not within the main report might be a clue.
    Thank you again
    Thib'

  • 4.0 EA3 - SQL History TIMESTAMP format

    Timestamp in SQL history is incorrectly showing the dates. Seems like a mismatch between the Timestamp format; looks like in some case the is showing the dar as month and month as day; have some other scenarios where also the year is wrong.
    This issue was also reported here: https://forums.oracle.com/thread/2593880

    Hi Gary,
    Is possible that it may be a "Locale" related issue, but I don't know where is the Locale value comming from, since my Windows and SQLDeveloper are in English. See screenshot... http://img822.imageshack.us/img822/5097/6jbq.jpg
    Nevertheless, is true that I'm located in Spain, and in previous versions of  SQL Developer, the IDE was in Spanish by default, and I had to edit the sqldeveloper.conf file, adding the following option (I like my tools in English)
    AddVMOption -Duser.language=en
    SQL Developer 4 is correctly showing in English without editing the file.
    Regards

  • SEVERE: Message: [-3050]: Invalid timestamp format:ISO(input position 2)

    Hello!
    I'm installing a AS JAVA 2004S with EP/EP-CORE and BI_JAVA and got following error during Java Load step.   (The installation successfully creates and loads about 1000 tables prior the error).
    Regards,
    Fredrik
    serverXX:/usr/sap/TPQ/ciinst # more jload.java.log
    java version "1.4.2"
    Java(TM) 2 Runtime Environment, Standard Edition (build 2.2)
    IBM J9SE VM (build 2.2, J2RE 1.4.2 IBM J9 2.2 Linux amd64-64 j9xa64142-20061124 (JIT enabled)
    J9VM - 20061121_1035_LHdSMr
    JIT  - r7_level20061020_1803)
    May 24, 2007 11:39:52 AM com.sap.inst.jload.Jload main
    INFO: Jload -sec TPQ,jdbc/pool/TPQ,/usr/sap/TPQ/SYS/global/security/data/SecStore.properties,/usr/sap/TPQ/SYS/global/security/data/Se
    cStore.key -dataDir /a_stage/51032257/JAVA_EXPORT/JDMP -job /usr/sap/TPQ/ciinst/IMPORT.XML -log jload.log
    May 24, 2007 11:39:53 AM com.sap.inst.jload.db.DBConnection connectViaSecureStore
    INFO: connected to TPQ on jdbc/pool/TPQ
    May 24, 2007 11:39:53 AM com.sap.inst.jload.JobStatus readStatus
    INFO: trying to read status file /usr/sap/TPQ/ciinst/IMPORT.sta
    May 24, 2007 11:39:53 AM com.sap.inst.jload.JobStatus readStatus
    INFO: commencing restart
    May 24, 2007 11:39:53 AM com.sap.inst.jload.Jload dbImport
    INFO: trying to delete from table BC_UDDI_PARAM
    May 24, 2007 11:39:53 AM com.sap.inst.jload.Jload dbImport
    INFO: BC_UDDI_PARAM deleted
    May 24, 2007 11:39:53 AM com.sap.inst.jload.Jload dbImport
    SEVERE: DB Error during import of BC_UDDI_PARAM
    May 24, 2007 11:39:53 AM com.sap.inst.jload.Jload printSQLException
    SEVERE: Message: [-3050]: Invalid timestamp format:ISO(input position 83)
    May 24, 2007 11:39:53 AM com.sap.inst.jload.Jload printSQLException
    SEVERE: SQLState: I3050
    May 24, 2007 11:39:53 AM com.sap.inst.jload.Jload printSQLException
    SEVERE: ErrorCode: -3050
    May 24, 2007 11:39:53 AM com.sap.inst.jload.Jload dbImport
    INFO: trying to delete from table BC_XMLA_COL
    May 24, 2007 11:39:53 AM com.sap.inst.jload.Jload dbImport
    INFO: BC_XMLA_COL deleted
    May 24, 2007 11:39:53 AM com.sap.inst.jload.Jload dbImport
    SEVERE: DB Error during import of BC_XMLA_COL
    May 24, 2007 11:39:53 AM com.sap.inst.jload.Jload printSQLException
    SEVERE: Message: [-3050]: Invalid timestamp format:ISO(input position 2)
    May 24, 2007 11:39:53 AM com.sap.inst.jload.Jload printSQLException
    SEVERE: SQLState: I3050
    May 24, 2007 11:39:53 AM com.sap.inst.jload.Jload printSQLException
    SEVERE: ErrorCode: -3050
    May 24, 2007 11:39:53 AM com.sap.inst.jload.db.DBConnection disconnect
    INFO: disconnected
    serverXX:/usr/sap/TPQ/ciinst #

    Hi
    yes, I had the same issue and I found a solution.
    You need to request a patch for BUG 9212862 (already corrected in WLS 10.3.3) and do the follwing:
    javax.xml.ws.BindingProvider provider = (javax.xml.ws.BindingProvider)port;
    java.util.Map context = provider.getRequestContext();
    context.put(weblogic.wsee.jaxrpc.WLStub.POLICY_COMPATIBILITY_PREFERENCE, weblogic.wsee.jaxrpc.WLStub.POLICY_COMPATIBILITY_MSFT);      
    This will cause the SecurityMessageArchitect class of WLS to not send the SecurityTokenReference in the Soap security header.
    Please note that is evidently a non-comformity to the specs of microsoft:
    Please give a look at
    http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0.pdf (8.3 Signing Tokens)
    and also at:
    http://www.oasis-open.org/committees/download.php/16768/wss-v1.1-spec-os-SAMLTokenProfile.pdf
    (3.4 Identifying and Referencing Security Tokens)
    A SAML key identifier reference MUST be used for all (local and remote) references to SAML 1.1
    assertions. [...]
    All conformant implementations MUST be able to process SAML assertion references occurring in a
    <wsse:Security> header or in a header element other than a signature to acquire the corresponding
    assertion. A conformant implementation MUST be able to process any such reference independent of the
    confirmation method of the referenced assertion.
    It follows that the .NET 3.5 is a non conformat implementation: I would gladly know which is the position of Microsoft on that.
    ciao
    carlo

  • Trouble getting a timestamp formatted by a 'to_char' function

    We have trouble getting a timestamp formatted by a 'to_char' function and a 'group by'
    for a count. By assigning the result of the to_char function to an attribute and
    grouping on that attribute, we try to get the frequency of an event.
    What happens is a non predictable 'IllegalArgumentException' on
    'Timestamp.class' while getting the timestampvalue.
    We make use of a scrollablecursor as you can see in the stacktrace.
    java.lang.IllegalArgumentException: Timestamp format must be yyyy-mm-dd hh:mm:ss.fffffffff
    at java.sql.Timestamp.valueOf(Timestamp.java:160)
    at oracle.sql.CHAR.timestampValue(CHAR.java:567)
    at oracle.jdbc.driver.ScrollableResultSet.getTimestamp(ScrollableResultSet.java:658)
    at oracle.toplink.oraclespecific.Oracle9Platform.getObjectFromResultSet(Unknown Source)
    at oracle.toplink.internal.databaseaccess.DatabaseAccessor.getObject(Unknown Source)
    at oracle.toplink.internal.databaseaccess.DatabaseAccessor.fetchRow(Unknown Source)
    at oracle.toplink.internal.databaseaccess.DatabaseAccessor.cursorRetrieveNextRow(Unknown Source)
    at oracle.toplink.queryframework.ScrollableCursor.retrieveNextObject(ScrollableCursor.java:512)
    at oracle.toplink.queryframework.ScrollableCursor.loadNext(ScrollableCursor.java:357)
    at oracle.toplink.queryframework.ScrollableCursor.hasNext(ScrollableCursor.java:233)
    After restarting the application server there is a chance that the query returns
    with the expected results. But most of the times it just returns the above
    mentioned exception.
    I don't see the logic in the apparently random parsing of the value.
    The column in the database is a timestamp, but that the reason why i'm using the
    to_char method.

    This is a bug in TopLink with ReportQuery. Please report this is Oracle technical support. Basically TopLink is converting to the attribute type, but should not be if a function was applied to the expression.
    To workaround the issue you can use getField(/) in the expression instead of get(/) (using the database field name instead of the class attribute name).

  • Hiding one specific column element in specific row  of a report table

    Hi Apex People!
    I have a report table showing something like this:
    Make Reservation····Movie·········Time·······Available Seats
    Link·······················Terminator·················>12
    Link·······················Terminator·················4
    Link·······················Terminator·················>12
    Link·······················Terminator·················sold out
    What I want is to hide the first column link when the screening is sold out:
    Make Reservation····Movie·········Time·······Available Seats
    Link·······················Terminator·················>12
    Link·······················Terminator·················4
    Link·······················Terminator·················>12
    ·····························Terminator·················sold out
    How can one do that?
    All I tried so far let me hide all Links, but not the one from the rows, with available_seats =0...
    Thank you
    Johann

    Johann,
    You could use a CASE statement in the select from the report to hide the first column dependent on the value in the Available seets column.
    Or you could grey it out using a style tag.
    Have a look at this link which talks about conditional formatting which is what you are wanting to do
    formating values
    Chris
    Message was edited by:
    tiffer

  • Changing date format at reporting level

    Hello,
    Will u plz tell me how can i change the date format at reporting level?
    I want to display date in dd/mm/yyyy, but by default its showing mm/dd/yyyy.
    Delta is already loaded in the system, so i don't want to disturb regular data loading.
    Is there any way so that i can change the format of date.
    Plz help me out.
    Thanks,
    Regards,
    Steve

    Hi steve
    There r so many postings on the same topic
    go through these previous threads
    date format
    Date format
    u can find solution
    regards
    Ravi Kiran

  • Report / Table for getting Datewise item cost

    Friends,
    Can u help me know MM Report / Table for getting Datewise item cost in a plant.

    hi,
    try table S031...Movement of stocks....
    THis shd help you..
    Regards
    Priyanka.P

  • Is it possible to display keyfigures in italics format in report output

    Hi All,
    Is it possible to display keyfigures in italics and bold format in report output?
    Thanks,
    Sri Arun Prian

    you can edit the CSS - there is a CSS class assigned to the key figures.... this is for WAD....
    Edited by: Arun Varadarajan on Feb 5, 2009 2:43 PM

Maybe you are looking for