Automatically add a current date at the end of the comments

Hi,
I have a form on a table with 5 fields... on one the field I am asking my users to enter comments...
I am looking for a functionality to automatically add a current date at the end of the comments, only when they are updated or newly filled in...
Please advice how can I do it... I am anticipating some sort of a trigger on column (when the data is modified)...
Thanks

automatically add a current date at the end of the comments, only when they are updated or newly filled inDo you want to add the date to the page item itself and hence show it to the end user as and when its changed, thn
Assuming comments item is named '*P1_COMMENTS* , add the following to the "execute on load"
$('P1_COMMENTS').change( function(){
  var d = new Date();
  $s('P1_COMMENTS', $v('P1_COMMENTS')+ d.toUTCString() );
});If its to be done only when updating ie in the PLSQL block
UPDATE <table name>
SET <comments _column> = (  SELECT DECODE(  NVL(<comments _column>,'')
                                                                      ,NVL(:P1_COMMENTS,'')
                                                                      ,<comments _column>
                                                                      ,:P1_COMMENTS||TOCHAR(SYSDATE,'DD-MON-YYY')
                                              FROM DUAL
WHERE <condition>

Similar Messages

  • How to find end of the Page in Crystal ? or I need to add one Horizontal line at the end of the page.--- URGENT HELP NEEDED

    Hi friends,
    I need to add one horizontal line  for the detail section at the end of the page.
    I tried to put that line in page footer and i tried with Box also. Both are not properly working. Some space problem is coming.
    Is there any feature to find end of the Page.
    I want report format like this.
    set id  |  set name |  date  Name
      1         x           dddd   vijay
                            dddd   sarathi
                            dddd    reddy
    (End of the page)
    Thanks in advance...
    vijay.

    Do you know how many detail records are showing up per page?
    If you do - you could create a Details B section that is suppressed except for on Record N (where N is a counter, and N is the last Detail record that will show up on a page).
    The Page footer is indeed built so that it will be rendered at the bottom of your physical page of paper.

  • Need to add a new row at the end of the table

    Experts,
    working jdev 11.1.1.3.0
    i am adding row programetically, my requirement need to add the row at after last row.
    i tried different ways.
    Row newLastRow = getPWBBidLaneVO().last();
    int lastRowIndex = getPWBBidLaneVO().getRangeIndexOf(newLastRow);
    getPWBBidLaneVO().insertRowAtRangeIndex(lastRowIndex - 1,
    laneRow);
    this is giving --- java.lang.ArrayIndexOutOfBoundsException: 0
    and
    http://kohlivikram.blogspot.com/2008/10/add-new-row-in-adf-table-on-button.html --- its giving index out of bound because vo.getRangeSize() is 25. We set this value at vo for performance improment suggestions.
    is there a way to add a new row at the end of the table?

    Add this to the view row impl class
           public void insertRow(Row row) {
               //go to the end of Rowset if it has rows
               Row lastRow = this.last();
               if (lastRow !=null){
                    //insert new row at the end and make it current
                   int indx = this.getRangeIndexOf(lastRow)+1;
                   this.insertRowAtRangeIndex(indx,row);
                   this.setCurrentRow(row);
               }else { // empty Rowset
               super.insertRow(row);
               }

  • BSP adds CR/LF marker at the end of the page even with compression options

    Hello!
    I'm creating normal BSP Page with Flow Logic and setting the contents myself:
    <%@page language="abap" %><%
      response->set_cdata( '-=-' ).
    %>
    The problem is that WebAS somehow always adds a CR/LF (new line) marker at the end of the page (even if I set compression option to "Remove leading and trailing spaces"). I also tried to set different mime-types.
    On the other side there is a BSP Application it00 (described here http://help.sap.com/saphelp_nw04/helpdata/en/eb/8c683c8de8a969e10000000a114084/content.htm ) that shows the uploaded file right.
    So I was trying to include that 'solution' setting OnInputProcessing event to this
    *         set response data to be the file content
              runtime->server->response->set_cdata( '!=!' ).
    *         set the mime-type and file size in the response
              runtime->server->response->set_header_field(
                name  = 'Content-Type'
                value = 'text/plain' ).
              runtime->server->response->set_header_field(
                name  = 'Content-Length'
                value = '3' ).
              navigation->response_complete( ).
    But nothing happens at all.
    Please, help me getting rid of these two annoying bytes ('CR/LF') at the end of page.

    Thank you, Cornelia!
    It works now.
    The following code is "must have"
    navigation->response_complete( ).

  • Utl_file.utl_raw adds a line feed at the end of the line. How to avoid it.

    utl_file.utl_raw adds a line feed at the end of the line. I have to send some binary files to my vendor and they do not want a line feed at the end of the line.
    When I execute the sample program below, it creates a file with a line feed(chr(10)) at the end of the line. When I do dump in hexa, it shows a character x0A
    How to avoid the line feed at end of line?
    We are using Oracle 9i on unix platform.
    declare
    l_output           utl_file.file_type;
    v_raw      raw(32767);
    v_trlr_rec_code      VARCHAR2(2);
    v_trlr_evnt_title      VARCHAR2(6);
    begin
    l_output := utl_file.fopen( 'RM_MHE_IN_DIR', 'abc.dat', 'w', 14 );
    v_trlr_rec_code      := '99';
    v_trlr_evnt_title      := 'STARTD';
    v_raw := HEXTORAW(v_trlr_rec_code) || utl_raw.cast_to_raw(v_trlr_evnt_title);
    utl_file.put_raw( l_output, v_raw );
    utl_file.fflush( l_output );
    utl_file.fclose( l_output );
    dbms_output.put_line( utl_raw.cast_to_varchar2( v_raw ) );
    EXCEPTION
    WHEN OTHERS THEN
         dbms_output.put_line( sqlerrm );
    end;
    /

    oops, sorry i overlooked the fact that the db is 9i; thanks for pointing it out Solomon.
    Not sure about this, but a workaround could be to remove the "\n" characters at the end of each line using one of the many Unix utilities after the file has been created.
    isotope

  • Will I be able to keep my current data plan when I buy the new iPhone 5.

    Will I be able to keep my current data plan when I buy the new iPhone 5.

    Sprint, definite yes (but moot because 3GS is not a CDMA phone)
    Verizon, if you buy at full price $600
    At&t, yes but there may be a caveat
    Outside the USA, I don't know, we need to know your current Tariffe/plan to help.
    Contact your carrier to negotiate any loose ends.

  • How to add an extra row at the end of the Grid?

    Hi gurus,
    I am getting result from the select query which has 4 columns.
    I got the requirement to display the sum of those columns as the last row.
    How can i add the another row at the end of the iGrid ?
    Data would look like
    Sno  Col1   Col2  Col3  Col4
    1         4       6      1       6
    2         5       8      0       8
    3         6       1      2       5
    Sum     15     14    3       19
    Do i have to add transformation to the sql query? or
    Can i add row to the display tempalate by accessing the Gridobject?
    Please help.
    Thanks
    Vansi
    Edited by: vamsi P on Feb 12, 2008 8:49 PM
    Edited by: vamsi P on Feb 12, 2008 8:49 PM

    Hi Vamsi,
    There are a few options ...
    1) The one suggested by Prasanna
    2) Loop through all rows via JavaScript and use the GridObject methods to set cell values and then perform an applet.refreshGrid( false )
    3) Apply an Inline transform
    4) Use a stored procedure to return the results and the totals as one recordset.
    The stored procedure would be the fastest for runtime.
    The Iniline XSL transform would be the second fastest.  If you specify the XSL in a generic way, you may even be able to reuse it in other scenarios.  If you hardcode the fields in the XSL, it would be a matter of simple code adjustment when you encounter a similar scenario.
    Hope this helps.
    Cheers,
    Jai.

  • Employee Termination after payperiod end dates and before end of the year

    I need a best possible senario at my current client one of the employees is going to be terminated *(resignation)on  Dec 29th 2010 and his last payroll for the year runs up to Dec 26th 2010 (12/13/2010-12/26/2010: Check Date 12/24/2010), and there will be a reminder of three more days because his termination on 12/29/2010. But the business is looking to not to carry his additional three working pay days for the next year and W2 and wanted to pay in regular check that will be 12/24/2010 as an additional payment.
    We dont do OCWB checks...can you please give us a best possible senario in SAP will be greatly appreciated

    Hi,
    A few things could be done here:
    1. Put the employee on unpaid leave for the extra three days and pay them out using a one time payment in the last pay period of the year.
    2. Terminate them at the end of the pay period and pay them out with a one time payment in the last pay period of the year.
    It really depends on a few factors.  You have to think about how end dating the employee on a different date them the actual termination date will effect other configuration/customization you my have and should the employee really get a year end tax form next year for those 3 days.
    thanks.
    JB

  • How to add a sub report at the end of the main report whilst grouped

    Hi!
    I have a main report that is grouped by the Customers name and then details of transactions they did with the company.
    I need to add a letter at the end of each group for each customer (With their name displayed in the letter). I tried adding a sub report in the report footer, but it only appears once at the end of the report, rather than at the end of each group for each customer.
    How can I achieve the desired result?
    Regards
    Vik

    Vik,
    You are on the right track with the sub-report.
    1. Create your letter in a separate report.
    2. Add the Letter Report to your original report as a sub report in the group footer.
    3. Set the report links on the "Group By" field.
    This will give you a letter record for each report record with the same grouping as the main report.
    Hope this helps,
    Jason

  • Osx 10.7.4   safari 6.0  when I add a new bookmark to the "bookmarks menu" it is added somewhere in the middle instead of at the end of the list.  this just started a few days ago after an update.  Has anyone else noticed this?.

    osx 10.7.4   safari 6.0  When I add a new bookmark to the "bookmarks menu" it is added somewhere in the middle instead of at the end of the list.  This just started a few days ago after an update.  Has anyone else noticed this?.

    Just for those who are interested, this is what cleared the "bookmark menu"  trbl I had.
    Open System Preferences > iCloud
    Deselect the box next to Bookmarks, then reselect it.
    Quit and relaunch Safari. Try a bookmark again.

  • Add JTable Row Headers At The End Of The Rows(At Right)?

    hi all
    i got this example for adding JTable Row Headers,but it adds the headers at the left(beginning of the row)
    and i want to add the headers at the end of the row(at right),any ideas how to do that?
    import java.awt.BorderLayout;
    import java.awt.Component;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    import javax.swing.AbstractListModel;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JList;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import javax.swing.ListCellRenderer;
    import javax.swing.ListModel;
    import javax.swing.UIManager;
    import javax.swing.table.DefaultTableModel;
    import javax.swing.table.JTableHeader;
    * @version 1.0 11/09/98
    class RowHeaderRenderer extends JLabel implements ListCellRenderer {
      RowHeaderRenderer(JTable table) {
        JTableHeader header = table.getTableHeader();
        setOpaque(true);
        setBorder(UIManager.getBorder("TableHeader.cellBorder"));
        setHorizontalAlignment(CENTER);
        setForeground(header.getForeground());
        setBackground(header.getBackground());
        setFont(header.getFont());
      public Component getListCellRendererComponent(JList list, Object value,
          int index, boolean isSelected, boolean cellHasFocus) {
        setText((value == null) ? "" : value.toString());
        return this;
    class RowHeaderExample extends JFrame {
      public RowHeaderExample() {
        super("Row Header Example");
        setSize(370, 150);
        ListModel lm = new AbstractListModel() {
          String headers[] = { "Row1", "Row2", "Row3", "Row4"};
          public int getSize() {
            return headers.length;
          public Object getElementAt(int index) {
            return headers[index];
        DefaultTableModel dm = new DefaultTableModel(lm.getSize(), 4);
        JTable table = new JTable(dm);
        table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
        table.setRowHeight(18);
        JList rowHeader = new JList(lm);
        rowHeader.setFixedCellWidth(50);
        rowHeader.setFixedCellHeight(18);
        rowHeader.setCellRenderer(new RowHeaderRenderer(table));
        JScrollPane scroll = new JScrollPane(table);
        scroll.setRowHeaderView(rowHeader);
        getContentPane().add(scroll, BorderLayout.CENTER);
      public static void main(String[] args) {
        RowHeaderExample frame = new RowHeaderExample();
        frame.addWindowListener(new WindowAdapter() {
          public void windowClosing(WindowEvent e) {
            System.exit(0);
        frame.setVisible(true);
    }

    fixed by:
    list.setBackground(table.getTableHeader().getBackground());here's the full code:
    import java.awt.BorderLayout;
    import java.awt.Component;
    import java.awt.ComponentOrientation;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    import javax.swing.DefaultListModel;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JList;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import javax.swing.ListCellRenderer;
    import javax.swing.UIManager;
    import javax.swing.table.DefaultTableModel;
    import javax.swing.table.JTableHeader;
    * @version 1.0 11/09/98
    class RowHeaderRenderer extends JLabel implements ListCellRenderer {
      JTable table;
      RowHeaderRenderer(JTable table) {
        this.table = table;
        JTableHeader header = table.getTableHeader();
        setOpaque(true);
        setBorder(UIManager.getBorder("TableHeader.cellBorder"));
        setHorizontalAlignment(CENTER);
        setForeground(header.getForeground());
        setBackground(header.getBackground());
        setFont(header.getFont());
      public Component getListCellRendererComponent(JList list, Object value,
          int index, boolean isSelected, boolean cellHasFocus) {
        list.setBackground(table.getTableHeader().getBackground());
        setText((value == null) ? "" : value.toString());
        return this;
    class RowHeaderExample extends JFrame {
      public RowHeaderExample() {
        super("Row Header Example");
        setSize(370, 150);
        setLocationRelativeTo(null);
        DefaultListModel lstModel = new DefaultListModel();
        lstModel.addElement("Row 1");
        lstModel.addElement("Row 2");
        lstModel.addElement("Row 3");
        lstModel.addElement("Row 4");
        DefaultTableModel dm = new DefaultTableModel(lstModel.getSize(), 4);
        JTable table = new JTable(dm);
        table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
        table.setRowHeight(18);
        JList rowHeader = new JList(lstModel);
        rowHeader.setFixedCellWidth(50);
        rowHeader.setFixedCellHeight(18);
        rowHeader.setCellRenderer(new RowHeaderRenderer(table));
        JScrollPane scroll = new JScrollPane(table);
        scroll.setRowHeaderView(rowHeader);
        table.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
        scroll.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
        getContentPane().add(scroll, BorderLayout.CENTER);
      public static void main(String[] args) {
        RowHeaderExample frame = new RowHeaderExample();
        frame.addWindowListener(new WindowAdapter() {
          public void windowClosing(WindowEvent e) {
            System.exit(0);
        frame.setVisible(true);
    }

  • Does anyone know how to add a preface page at the beginning of the book in ibooks author once the book is written? No matter how I try to add a Preface page, it goes to the end of the book.

    Does anyone know how to add a preface page at the beginning of the book in ibooks author once the book is written? No matter how I try to add a Preface page, it goes to the end of the book.

    Thanks. I've tried this and apparently the template I'm using is one of those where it doesn't work. I've tried dragging it as well as cutting a pasting but it always travels back to the end of the book. Maybe I can try changing the template temporarily, move the preface page, and then convert back to the original template. I'll experiment a little.

  • How do I duplicate layers & groups without automatically adding a "copy", "copy 1", "copy #" at the end of the new group?

    How do I duplicate layers & groups without automatically adding a "copy", "copy 1", "copy #" at the end of the new group?
    It's been pestering me for quite a while now, since I often work with the same elements over and over again. Its frustrating to have to change the name of each layer manually, especially if I'm copying a whole group.
    Is there a setting in Photoshop or perhaps an external script that can help fix this for me?
    Cheers,
    Qiming

    There is no way to defeat this within the program itself. Here's the workaround:
    Duplicate the file (from the Image menu).
    Drag the Group or layers from the Layers list from the duplicate to the image window of the original , while holding down Shift.
    That will make a "copyless" copy and reposition the copyed material in the exact same position it was on the original.

  • I got new iphone and when i connect it to my pc, it lost all my current data and replaced it with the backup on my computer, which is from april. so i have lost all my calendar information and schedule. does anyone know how i can reverse this?

    i got new iphone and when i connect it to my pc, it lost all my current data and replaced it with the backup on my computer, which is from april. so i have lost all my calendar information and schedule. does anyone know how i can reverse this and get my information back?

    Every backup replaces the old one, so, unless you included the backup folder in your computer backup routine, you can't get back your calendar info.
    The only time iTunes will not replace a backup is, when you use it to restore from, this one will stay in the backup list in iTunes.
    More info on backups here: http://support.apple.com/kb/HT1766

  • How can I Read lines of data from a file starting at the end of the file??

    Can anyone help me with how to read lines of data starting from the end of a file instead of the beginning?? I do not want to load the entire file into memory as the files are very rather large. Instead I want to start at the end of the file and read lines backward , until I find the particular data item i am searching for, then stop.
    Can this be done in Java ? I know it can be done in Perl.
    Thanks.

    Thanks for your suggestion about the RandomAccessFile, I did actually thought about that approach , but wasn't sure it would work.
    I do not want to read the file in a sequential forward manner because the files contain large number of lines of data that have already been processed and therefore there is no need to reprocess these lines of data.
    The Unprocessed lines are always at the the end of the file and these are the data lines I am interesting in getting at without having to read the entire file. Therefore, i figure that if I can read the data from the end of the file then this would be much more efficient.

Maybe you are looking for

  • Error while starting Standby server using Dataguard

    Hi , Db opened successfully, but SAP MMC not starting, pls find below dev_w0 log M  M Tue Apr 12 12:00:56 2011 M  calling db_connect ... C  Prepending K:\usr\sap\EC6\DVEBMGS00\exe to Path. C  Oracle Client Version: '10.2.0.1.0' C  Client NLS settings

  • WRT54GX2; WPA2 AES

    Windows XP Hot fix has been installed.  Intel 2200 b/g driver is updated.  WRT54GX2 firmware is updated. (There is no version info on the router, so I assumed it version 1.  Accordingly I downloaded firware update for version 1 from the support)  Whe

  • Incremental statistics in 10g

    dear all facts: - oracle ent 10.1.0.5 - aix 5.3 - datawarehouse environment - a lot of partitioned tables I want to implement an incremental statistics in order to apply in partitions recently loaded. not in all table. Do you have a script or plsql b

  • HT1435 My Ipod is telling me it can't sync...and it is corrupted...any help, can it be fixed or is it done

    My iopd classic will not sync , any help?

  • Initial backup with TM fails partway

    Hi, and thanks for the help. I have actually searched and read, and am still puzzling on this. I have a WD MyBook 500GB drive connected via USB to my new iMac. This drive has been functioning on my PC, but I have reconfig'ed it to a single partion (G