OA Framework Attachment Table Last Updated Column Format

Hi,
Tired multiple ways to get date time stamp for column Last Updated in Attachment table,
In standard display ,it shows as DD-Mon-YYYY ,requirement is to display Last Updated Column as DD-Mon-YYYY HH:MI:SS.
Can we have default sort on the title on the table.
Please advise.
Thanks,Sarath.

Thanks Kali for the reply.
Let us consider notification list seeded page, which lists the notifications. This notification table has a column called "Sent" which shows the date (and not the time) when this notification was sent. I also want to see time part in this. Type of the column is MessageStyledText. I can't change type from Date to DateTime as you suggested, via personaliztion. Can I?
If I can't change it via personalization, should I do it via controller extension?
regards, Yora

Similar Messages

  • Query for the table last updated

    hi,
    how to know the time and date a table last updated?
    Regards
    Raj

    Raj,
    Query DBA_OBJECTS, here is an example:
    SQL> SELECT OBJECT_NAME, LAST_DDL_TIM, TIMESTAMP
    FROM DBA_OBJECTS
    WHERE OBJECT_NAME = 'FND_USER'
    AND OBJECT_TYPE = 'TABLE';

  • How can I find out when was a particular table last updated?

    How can I find out when was a particular table last updated? I need to find out the usage of this table - when was it last updated, etc. Thanks in advance. The version I am using is Oracle 9i.

    If you don't have any application level logging, and auditing is not enabled, there's not much hope.
    You could, if you have archive logs available, go trawling through archive logs via logminer, but that's likely to prove painful and not very fruitful, unless you're very meticulous and patient...
    -Mark

  • Table - Last Updated Timestamp

    Hi,
    I have one use case, for this I want to know Last updated Timestamp for all the Tables in one schema.
    Can you please help me to get the SQL Query for this?
    Regards,
    Muthu

    Hi Muthuraman,
    Try this SQL. You can try filtering STATEMENT_STRING with any operation as per your requirement. Here my sql will get all the INSERT queries to "MY_SCHEMA"."MY_TABLE" and their execution time. Similarly you can try with UPDATE, DELETE, DROP, etc.
    SELECT STATEMENT_STRING, LAST_EXECUTION_TIMESTAMP FROM M_SQL_PLAN_CACHE
    WHERE STATEMENT_STRING LIKE 'INSERT INTO "MY_SCHEMA"."MY_TABLE"%'
    ORDER BY LAST_EXECUTION_TIMESTAMP;
    Regards,
    Chandra

  • ADF Faces af:table partialTriggers update column footer

    I have table based on SortableModel (stored in session) with one column as input & other column as formula based on input field both as numeric.
    I have ValueChangeEvent on input field,which calculate new value for formula column. It is updated on page immediately. I am also computing summary for both column & store it sessionbean. But ValueChangeEvent does not update these values, I have to refresh page manually to see new totals. I have linked both the outputText field to inputText by partialTriggers property.
    If I move these outputText out of tablefooter they get updated immediately.
    I tried to link af:table & columns to inputText by partialTriggers but do not work.
    How I can update coulmn footer immediately if one of the field in table changed?
    Thanks, Yogesh
    -- Column footer : Does not update immediately
    <f:facet name="footer">
    <af:outputText value="#{PartyTableBean.newTotalBalance}"
    binding="#{backing_FinancialClose.newTotalBalance}"
    id="newTotalBalance" partialTriggers="newInvoiced">
    <af:convertNumber currencySymbol="$" type="currency"/>
    </af:outputText>
    </f:facet>
    -- outputText outside of table : updates immediately
    <af:outputText value="#{PartyTableBean.newTotalBalance}" id="newTotalBalance22"
    partialTriggers="newInvoiced" binding="#{backing_FinancialClose.outputText7}">
    <af:convertNumber currencySymbol="$" type="currency"/>
    </af:outputText>

    I was mistakenly believing that you couldn't use a selectOneChoice in an af:table given some experimentation where they simply failed to render at all.
    It turns out that I had a hadn'e created the appropriate setter method for the property. However, instead of making the data readOnly (as most of the ADF FACES controls do) it just didn't render anything. Thus making me think it just didn't work inside of a table.
    FYI - in case this happens to anyone else.

  • When table last updated

    Can i know how to find out/sql query when was the last time oracle table is updated

    If you are interested in the timing of the most recently committed INSERTs and UPDATEs, you can find out the SCN of the most recently modified row in the table using this query
    SELECT max(ORA_ROWSCN)
    FROM <TABLE>Once you have the most recent SCN, you can try to find out what time it corresponds to.
    For “recent” SCNs, you can try SCN_TO_TIMESTAMP function.
    If SCN_TO_TIMESTAMP does not work for your SCN, you can try to approximate the time using V$ARCHIVED_LOG or other methods.
    Again, this procedure would not detect DELETEd records.
    Iordan Iotzov
    http://iiotzov.wordpress.com/

  • Last update condition...

    Hi All
    I need to select the records who's last update date less than ( sysdate-90/1440)
    {Query}
    SQL> select present.object_type, present.object_id
    2 from (select cb2.object_type, cb2.object_id, incident_status_name,
    3 incident_severity_name
    4 from cs_brm_3d_service_request_v cb2,
    5 cs_incidents_all cia,
    6 jtf_rs_groups_vl jrgv
    7 where cb2.record_status = 'present'
    8 and (cb2.incident_id = cia.incident_id)
    9 and cb2.incident_severity_name = 'emergency'
    10 and cb2.incident_type_name = 'rts customer service request'
    11 --and cb2.incident_status_name = 'open'
    12 and cia.status_flag = 'o'
    13 and cia.owner_group_id = jrgv.group_id
    14 and jrgv.group_name in ('rts', 'rtm', 'rtn')
    15 and cb2.close_date is null
    16 and ( cb2.last_update_date <= (sysdate - 90 / 1440)
    17 or exists (
    18 select 1
    19 from jtf_tasks_b jtb
    20 where jtb.source_object_id = cb2.incident_id
    21 and jtb.last_update_date <= (sysdate - 90 / 1440)
    22 and jtb.last_update_date =
    23 (select max (last_update_date)
    24 from jtf_tasks_b
    25 where source_object_id = cb2.incident_id))
    26 or exists (
    27 select 1
    28 from fnd_attached_documents fad
    29 where pk1_value = cb2.incident_id
    30 and fad.last_update_date <= (sysdate - 90 / 1440)
    31 and fad.last_update_date =
    32 (select max (last_update_date)
    33 from fnd_attached_documents
    34 where pk1_value = cb2.incident_id))
    35 or exists (
    36 select *
    37 from jtf_ih_activities jih
    38 where jih.doc_id = cb2.incident_id
    39 and jih.last_update_date <= (sysdate - 90 / 1440)
    40 and jih.last_update_date =
    41 (select max (last_update_date)
    42 from jtf_ih_activities
    43 where doc_id = cb2.incident_id))
    44 )) present;
    {end Query}
    here tables jtb,fad, jih are may or may not have records..
    Could you please suggest me how can i do this..
    Thanks
    Ravula

    Hi Frank, thanks for your quick response..
    I need to check jtb,fad,jih tables last update also, these tables may or mayn't have records..
    16 and ( cb2.last_update_date <= (sysdate - 90 / 1440)
    17 or exists (
    18 select 1
    19 from jtf_tasks_b jtb
    20 where jtb.source_object_id = cb2.incident_id
    21 and jtb.last_update_date <= (sysdate - 90 / 1440)
    22 and jtb.last_update_date =
    23 (select max (last_update_date)
    24 from jtf_tasks_b
    25 where source_object_id = cb2.incident_id))
    26 or exists (
    27 select 1
    28 from fnd_attached_documents fad
    29 where pk1_value = cb2.incident_id
    30 and fad.last_update_date <= (sysdate - 90 / 1440)
    31 and fad.last_update_date =
    32 (select max (last_update_date)
    33 from fnd_attached_documents
    34 where pk1_value = cb2.incident_id))
    35 or exists (
    36 select *
    37 from jtf_ih_activities jih
    38 where jih.doc_id = cb2.incident_id
    39 and jih.last_update_date <= (sysdate - 90 / 1440)
    40 and jih.last_update_date =
    41 (select max (last_update_date)
    42 from jtf_ih_activities
    43 where doc_id = cb2.incident_id))
    Thanks
    Ravula

  • [Suggestion] "Last update" in podcasts

    Since there is a mass amount of podcasts I think it would really help to have a "Last Updated" column.
    When looking for a new podcast I skip the ones that haven't been updated in months. If I did like it there would be no reason to download podcast of things that happened a year ago. And if I DID like it I would only be disappointed they discontinued making them.
    An even better feature would to be a filter system with a "Has been updated in the past...6mons/3mons/1mon/2weeks/1week" option.
    Its the only thing I would really enjoy seeing on iTunes...Hopefully this catches the right eyes.

    Try a reset: Simultaneously hold down the Home and On buttons until the device shuts down. Ignore the off slider if it appears. Once shut down is complete, if it doesn't restart on it own, turn the device back on using the On button. In some cases it also helps to double click the Home button and close all apps BEFORE doing the reset.

  • Excel tables... columns and row formatting after I update the indesign page

    When my excel table gets updated in indesign I lose formatting (hight/wide) for the columns&rows. There are 26 columns and each one is a difference size. Do I have to formatting (hight&wide) each column and row every time the excel table is updated?

    We have many publications with statistical tables, which are done in excel. We want to try to do some publications with only tables and do it in-house. The problem is when we place the table in indesign and finish formatting the table. We will get a updated table that needs to be updated in indesign. But when we do we update we lose all of the indesign formatting. Fixing the fonts, type size, etc is easy but how do we get back the all column widths.

  • ODP OracleCommandBuilder. Updating a table including DATE columns.

    Hi
    I have a problem with the OracleCommandBuilder not creating the correct update commands when I have DATE type columns in the table.
    I have created a test table (called DATETEST) with three columns:
    STRINGCOLUMN     VARCHAR2 10
    DATECOLUMN DATE
    NUMBERCOLUMN     NUMBER
    The STRINGCOLUMN is the primary key.
    Then I created a typed dataset that looks like this:
    STRINGCOLUMN     string
    DATECOLUMN string
    NUMBERCOLUMN     long
    This is the XML schema for the typed dataset:
    <?xml version="1.0" encoding="utf-8" ?>
    <xs:schema id="DateDS" targetNamespace="http://tempuri.org/DateDS.xsd" elementFormDefault="qualified" attributeFormDefault="qualified" xmlns="http://tempuri.org/DateDS.xsd" xmlns:mstns="http://tempuri.org/DateDS.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
         <xs:element name="DateDS" msdata:IsDataSet="true">
              <xs:complexType>
                   <xs:choice maxOccurs="unbounded">
                        <xs:element name="DATETEST">
                             <xs:complexType>
                                  <xs:sequence>
                                       <xs:element name="DATECOLUMN" type="xs:string" minOccurs="0" />
                                       <xs:element name="STRINGCOLUMN" type="xs:string" minOccurs="0" />
                                       <xs:element name="NUMBERCOLUMN" type="xs:long" minOccurs="0" />
                                  </xs:sequence>
                             </xs:complexType>
                        </xs:element>
                   </xs:choice>
              </xs:complexType>
         </xs:element>
    </xs:schema>
    And this is the test code:
    Dim connection As Oracle.DataAccess.Client.OracleConnection
    Dim adapter As New Oracle.DataAccess.Client.OracleDataAdapter()
    Dim dbCommand As New Oracle.DataAccess.Client.OracleCommand()
    Dim sqlstring As String
    Dim data As New DateDS() 'Typed dataset
    Const ConnectionString As String = "User Id=............."
    Try
    'Connect to database
    connection = New OracleConnection(ConnectionString)
    connection.Open()
    'Get data from table DATETEST
    dbCommand.CommandText = "SELECT STRINGCOLUMN, TO_CHAR(DATECOLUMN) AS DATECOLUMN, NUMBERCOLUMN FROM DATETEST"
    dbCommand.Connection = connection
    adapter.SelectCommand = dbCommand
    adapter.Fill(data, "DATETEST")
    'Make changes to dataset
    data.DATETEST(0).DATECOLUMN = Now()
    data.DATETEST(0).NUMBERCOLUMN = data.DATETEST(0).NUMBERCOLUMN + 1
    'Update database
    sqlstring = "SELECT * FROM DATETEST"
    adapter.SelectCommand = New OracleCommand(sqlstring, connection)
    Dim custCB As New Oracle.DataAccess.Client.OracleCommandBuilder()
    custCB.DataAdapter = adapter
    adapter.Update(data, "DATETEST")
    'Disconnect
    connection.Close()
    connection.Dispose()
    Catch exc As Exception
    MessageBox.Show(exc.Message)
    End Try
    Getting the data from the database is not a problem.
    The dataset contains the correct information.
    But updating the database is impossible.
    I get errors like:
    ORA-01861: literal does not match format string
    And if I don't specify a DATE format in the TO_CHAR statement I get this error:
    Concurrency violation: the UpdateCommand affected 0 records.
    I think I've tried everything.
    I've used the OracleGlobalization class, with the SetSessionInfo method.
    I've tried all different types of date conversions to make sure that
    the date format on the database is the same as in the dataset.
    I've tried to change the NLS parameters on the DB server and in the registry on the client.
    I've tried to change the DATECOLUMN type in the typed dataset from string to Oracle.DataAccess.Types.OracleDate
    But it still doesn't work.
    The default date format on the DB 9i server is AMERICAN,(DD-MON-RR).
    A strange thing is that when I instead of using the ODP classes use
    the System.Data.OracleClient and its OracleCommandBuilder
    the code works perfectly without any errors.
    This is the test code that works:
    Dim connection As System.Data.OracleClient.OracleConnection
    Dim adapter As New System.Data.OracleClient.OracleDataAdapter()
    Dim dbCommand As New System.Data.OracleClient.OracleCommand()
    Dim data As New DateDS()
    Dim sqlstring As String
    Const ConnectionString As String = "User Id=......."
    Try
    'Connect to database
    connection = New System.Data.OracleClient.OracleConnection(ConnectionString)
    connection.Open()
    'Get data from table DATETEST
    dbCommand.CommandText = "SELECT STRINGCOLUMN, TO_CHAR(DATECOLUMN,'YYYY-MM-DD HH24:MI:SS') AS DATECOLUMN, NUMBERCOLUMN FROM DATETEST"
    dbCommand.Connection = connection
    adapter.SelectCommand = dbCommand
    adapter.Fill(data, "DATETEST")
    'Make changes to dataset
    data.DATETEST(0).DATECOLUMN = Now()
    data.DATETEST(0).NUMBERCOLUMN = data.DATETEST(0).NUMBERCOLUMN + 1
    'Update database
    sqlstring = "SELECT * FROM DATETEST"
    adapter.SelectCommand = New System.Data.OracleClient.OracleCommand(sqlstring, connection)
    Dim custCB As New System.Data.OracleClient.OracleCommandBuilder()
    custCB.DataAdapter = adapter
    adapter.Update(data, "DATETEST")
    'Disconnect
    connection.Close()
    connection.Dispose()
    Catch exc As Exception
    MessageBox.Show(exc.Message)
    End Try
    My experience until this came up is that the ODP provider is better on everything
    than the microsoft Oracle provider so I don't want to switch unless I have to.
    Could someone that have used the ODP OracleCommandBuilder for updating a table including DATE columns with a typed dataset please give me some tips on how to make this work?
    I would be the happiest man on earth if someone had a solution :-)
    Erik

    Don't convert the dates to strings. Ever.
    The command builder uses the metadata returned from the select command to build the insert/update commands. Using to_char in the query tells ODP that that is a varchar2 column. If you omit the to_char the commandBuilder will know to bind a date parameter in that spot.
    Also in your typed dataset you should change the type from a string to a date.
    David

  • Recording a last updated time for each record in a table

    hi
    i have a table with 5 columns. and the table has 100 rows of data.
    i need to add a sixth column and this column should contain the last updated time of that particular row.
    i am allowed to use triggers.
    for example, if the 55th row undergoes a change, the 6th column's value for the 55th row should update itself with that particular time.
    can any one of you come up with an optimized solution for this please ???
    thanx a million in advance and best regards,
    novice DBA
    :)

    Hi,
    Here's an example:
    CREATE OR REPLACE TRIGGER table_x_biu
    BEFORE INSERT OR UPDATE ON table_x
    FOR EACH ROW
    BEGIN
         :NEW.modified_dt := SYSDATE;
    END     table_x_biu
    SHOW ERRORSwhere table_x is your table name, and modified_dt is the DATE column to be populated.
    You won't have to specify modified_dt in any INSERT or UPDATE statements. In fact, if you do, the value you give will be ignored, and the trigger will always substitute SYSDATE.
    WARNING: if you do get an error message, the line number reported will usually be relative to the first DECLARE or BEGIN statement in the trigger. For example, if I had mis-spelled SYSDATE in the example above, the error message would say there was a problem in line 2, not line 5.

  • Last update DDL time of column

    Hi,
    Requirement: when the column of the table got updated.
    I have tried to use following query but my Oracle9i Enterprise Edition Release 9.2.0.8.0 does not support ORA_ROWSCN.
    SELECT SCN_TO_TIMESTAMP(ORA_ROWSCN) from FOLDERHEADERS;I need to know when folders.notify column got updated last time.
    select *
    from folders
    where notify is not null
    where dept = 10;Thanks
    Sandhya

    Since you are using Oracle 9.2, if you don't have something that tracks updates (i.e. a LAST_UPDATED_TIME column in the table, an audit trail, etc.), you're probably out of luck. Oracle doesn't track that information.
    If you're really desperate and your database is in ARCHIVELOG mode and you have all the archived log files from the days when the modification could have been made, you could potentially use LogMiner to read through the redo logs looking for changes of interest. This would be very slow and likely very manual so it would not be appropriate to do from an application. But it could be done if you're trying to track down a one-off issue.
    Justin
    Edited by: Justin Cave on Jun 29, 2011 4:32 PM
    Note that your subject line refers to DDL but the text of your question appears to relate to DML changes. I assumed the latter (DML tracking) was the actual goal. If you're tracking DDL, that is tracked at the table level in the LAST_DDL_TIME column in DBA_OBJECTS but not at the column level. Again, you could use LogMiner to look for this sort of thing if you aren't auditing the change but doing so would be labor intensive.

  • How to update column values in a table where that column is referring to different tables

    i have a table Order it has columns
    OrderID, Name, Total
    1            trade   value populated from i.e. tradeorder table
    2            fixed   value is populated from fixedorder table
    3            annual  value populated from another table
    I m thinking of creating function for every order id to call those tables..
    and there are many insertions taking place in order table ,,at the moment its 20 rows ..
    kindly provide your suggestions

    You can group rows in order table and update the set of row from the specific table. For instance
    UPDATE [ORDER] SET [TOTAL]=B.[TOTAL] FROM [ORDER] A INNER JOIN [TRADEORDER] B ON A.ORDERID=B.ORDERID WHERE A.NAME='TRADE'
    UPDATE [ORDER] SET [TOTAL]=B.[TOTAL] FROM [ORDER] A INNER JOIN [FIXEDORDER] B ON A.ORDERID=B.ORDERID WHERE A.NAME='FIXED'
    UPDATE [ORDER] SET [TOTAL]=B.[TOTAL] FROM [ORDER] A INNER JOIN [ANOTHERTABLE] B ON A.ORDERID=B.ORDERID WHERE A.NAME='ANNUAL'
    Regards, RSingh

  • Since last update on Mavericks, the picture attachement to a movie in iTunes no longer works. Any idea ?

    Since last update on Mavericks, the picture attachement to a movie in iTunes no longer works. Any idea ?
    Picture added is not displayed in the finder ; when transfering the movie to an Ipad, it is not displayed either.
    iMac 27', Mavericks 10.9 + iTunes 11.1.2

    Working here just fine. Try reinstalling:
    Reinstalling Mavericks, Lion/Mountain Lion Without Erasing the Drive
    Boot to the Recovery HD: Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the main menu. Repair the Hard Drive and Permissions as follows.
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu.
    Reinstall Lion/Mountain Lion, Mavericks: Select Reinstall Lion/Mountain Lion, Mavericks and click on the Continue button.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless.

  • Attachment table in framework

    I am using attachment table in oracle framework and I get the folllowing error:
    INSERT INTO FND_LOBS(FILE_ID,FILE_NAME,FILE_CONTENT_TYPE,FILE_DATA,FILE_FORMAT) VALUES (:1,:2,:3,:4,:5)".
    domain index is marked LOADING/FAILED/UNUSABLE
    can any one help with this error?

    Hi,
    Try this:
    1) Run this select statement-
    SELECT *
    FROM user_indexes
    WHERE index_type LIKE '%DOMAIN%'
    AND (domidx_status <> 'VALID' OR domidx_opstatus <> 'VALID');
    2)If you find any result for this query, fix those indexes using this-
    alter index indexname rebuild;
    --Sushant                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Maybe you are looking for