Display UTC-Timestamp in timezone of user/server

Hello,
the view of my WD Component displays UTC-Timestamps in a table (Cell Editor LinkToAction).
The user has the possibility to alter the timestamps by providing date and time.
The controller converts date and time to a UTC-timestamp by using ABAP-Statement CONVERT with timezone of server (sy-zonlo).
The timezone is CET (UTC1). Therefore the fields to enter the time is displayed in UTC1 but the  timestamp is displayed as UTC. The user might be confused, because when entering a time in the inputfield, the timestamp will be displayed 1 hour in the past.
The domain of the timestamp is TZNTSTMPS. I also tried to convert the timestamp into a field with domain TZNTSTMPSL, but with the same effect.
Is there a possibility to display the timestamp in the timezone of the server (sy-zonlo) or in the timezone of the user?
Thanks in advance
Patrick

Thank you Phil,
I already use both commands.
The user can enter a date and time which is already displayed in his timezone (use of command CONVERT TIMESTAMP ... and later when user saves his settings use of command CONVERT DATE lv_date TIME lv_time ...).
The date and time that user has given should be displayed as a timestamp later(LinkToAction in a table column).
Hope I made the problem clear. The date and time that the user can enter is already displayed in his timezone. It's just about the timestamp which is displayed after user has given date and time. That timestamp should be also displayed in the timezone of the user and not in UTC.
Thanks for your help so far.
Patrick

Similar Messages

  • Error in sql server with a trigger (I want to display a customize message, when the user left a blank field or null) How can I do?

    How I display a customize message(with a trigger)when a user left a blank field? I want to the stop the insert statament if the user left  the status field in blank. I create a trigger but now I can't enter a row, i used an instead trigger
    too but doesn't work. I want to display a customize message when the user left the
    status field in blank or null. 
     I have the following code:
    CREATE TRIGGER [dbo].[BLANKFIELD] 
    ON [dbo].[Status] 
    FOR INSERT 
    AS 
    BEGIN 
    IF (SELECT COUNT(*) FROM inserted WHERE Status IS NULL) =1
     PRINT 'Please Fill the Status  field is required'
    Rollback;
    END 

    I agree with other comments that you should do this with specifying that the column is NOT NULL to prevent it from being NULL and a constraint if you don't want it to be blank (spaces or the empty string - note that the empty string is not the same thing
    as NULL).
    But for completeness, the reason your trigger does not ever allow you to enter a row is the code
    IF (SELECT COUNT(*) FROM inserted WHERE Status IS NULL) =1
    PRINT 'Please Fill the Status field is required'
    Rollback;
    Since you don't have a begin/end block after IF, the only conditionally executed statement is the one immediately following the IF (that is the PRINT).  So the Rollback is always executed whether or not the IF is true and so all updates are rejected.
    So if you were to do this in a trigger you could do something like the following
    CREATE TRIGGER [dbo].[BLANKFIELD]
    ON [dbo].[Status]
    FOR INSERT
    AS
    BEGIN
    IF EXISTS(SELECT * FROM inserted WHERE Status IS NULL)
    BEGIN
    PRINT 'Please Fill the Status field is required';
    Rollback;
    END
    END
    (As José noted, there can be more than one row in the inserted pseudo table, so you don't want to test whether the COUNT = 1, instead just whether one or more rows exist where the Status  is null.  If you want to prevent Status is NULL, or all
    spaces, or the empty string, then your IF statement would be
    IF EXISTS(SELECT * FROM inserted WHERE ISNULL(Status, '') = '')
    Tom

  • Timezones and client/server issue

    We have a client process which runs on Windows PCs which are scattered among different timezones. These clients send data periodically to a server.
    The data includes timestamps indicating when certain events happened on each client PC. We need to know the timezone for each PC so that we can display those timestamps (stored on the server in GMT) in the timezone of each PC.
    The tricky bit: the clients are in C++ and the server is in Java. We cannot assume a JRE is installed on the clients.
    Our C++ client code can get the Windows timezone name as a string and pass that to our Java server code. What isn't obvious is how to translate that string to a Java TimeZone object. For example, the Windows string "Central Standard Time" maps to the Java TimeZone ID String "America/Chicago".
    I've done enough research to discover that the (relatively new) jre/lib/tzmappings file contains exactly these mappings. But it appears that the code which relies on that file is quite "under the hood" in java -- most likely in the unpublished sun.util.calendar package.
    Does anyone know of a way to map an O/S-specific timezone string to a Java TimeZone object? I know I can write my own code to read the tzmappings file myself, but that file explicitly states that "No applications should depend on this file in any form." I'd prefer a kosher solution.
    All ideas, suggestions, thoughts, links, etc. appreciated. Thank you!

    Thanks for the comments, everyone. Some responses:
    It seems the exact opposite to me. Relying on yourown file rather
    than using a file that explictly says "Don't useme!" seems less brittle.
    Both are brittle. By relying on the "one built into
    Java" I can rely on timezone additions and changes
    made by Sun without doing anything. Otherwise I have
    to be responsible for maintaining mine over time,
    noticing (for example) whenever Sun updates theirs
    and then updating and re-releasing mine.
    You either are going to be mixing data or not.Can you clarify for me what you mean by "mixing
    data"?
    We were planning to store all timestamps in the
    database in GMT with a timezone code. This allows
    queries to be based on normalized time (all use GMT),
    yet also allows us to know when an event happened in
    "local time" (on the PC where the event occurred) by
    converting the GMT value using the timezone code.There is a difference between doing a query and displaying the data.
    In terms of the query you don't need to access anything (special files.) You do the query in SQL, nothing more.
    In terms of displaying the data you have a number of choices.
    1. Don't display the time at all.
    2. Display it in reference to a specific timezone.
    3. Display each time in reference to the timezone that originated it.
    The last choice is not usable for users when the data is mixed in one display.
    >
    it is going to be a very large mistake to attemptto display each time in
    a different timezone (without categorizing it someother way.) It will be
    non-sensical to the users.What about when the clients ARE in various timezones?
    We have GUI screens and reports which show events on
    PCs in various continents. For example, showing:
    Again you are going to be doing one of the following.
    1. Data that is relative to them only.
    2. Data from all zones.
    If the first then just display the time relative to them in the first place (use the default for the VM.)
    If the second then you are back to the problem that I discussed above.
    MachineA 09:01 Service Started
    MachineA 10:32 Service Stopped
    MachineB 10:33 Service Stopped
    makes it look like the events (Service Stopped)
    happened about a minute apart on MachineA and
    MachineB. But they didn't, in this example, because
    the machines are in two different timezones. A user
    can't tell that above. But this clarifies it:
    MachineA 09:01 PST Service Started
    MachineA 10:32 PST Service Stopped
    MachineB 10:33 EST Service StoppedNote that I am not suggesting that you do not store your data in an absolute sense.
    But storage and display are two different things. And your example is flawed unless your database data is flawed.
    For example if you store the time in the database as GMT then the only way you can get case 1 is if you use the local timezone for each and then don't display the timezone.
    >
    In fact, the service stopped on MachineB before
    MachineA.
    The question begging to be asked is: what does the
    user expect to see? A list of events sorted relative
    to "wall time" (shown above), or a list sorted by
    absolute time? The latter looks like this:I think you will find that most users expect time to be relative to a certain timezone when times from different timezones are mixed in the same display.
    If grouped by timezone then they will accept timezone relative times even when there are different view with different timezones.

  • How can I get BCC to present timestamps localized for the user

    I work on an ATG deployment has Internal users accessing a server located in Washington from all over the world. The users want to see all timestamps presented in their timezone (10/18/2011 09:30 Pacific Daylight Time is 10/19/2011 12:30 China Standard Time) not the timezone of the server. How can I get this effect in the BCC?
    Bob

    I do not see that form in the page source, so it looks that it the login form gets created via JavaScript and the Firefox Password Manager doesn't work in such cases. Form fill may store the name.

  • Regarding timestamp with timezone

    Hi,
    I have the following timestamp with timezone issue.
    From java program I am passing the datetime with timezone value to database (INTERVALTIME (column name)).
    PrepareStatemenet statement;
    java.util.Date dt = ISODateUtil.parse("2006-06-21T18:00:00+00:00");
    SimpleTimeZone zone = new SimpleTimeZone(0,"IST");
    Calendar cal = converting the dt to calendar;
    cal.setTimeZone(zone);
    statement.setTimestamp(col, new Timestamp(cal.getTimeInMillis()),cal);     
    In database INTERVALTIME (column name) coulmn type is TiMESTAMP WITH TIMEZONE.Database is in PDT (GMT-8) timezone.
    Now the problem is :
    Even if i send the datetime of IST timezone, it is displaying in PDT (GMT-8) timezone.
    How can i resolve this issue?

    Reo wrote:
    The query you provided doesn't run. If I want to convert to a different timezone, I need the from_tz.Is column update_time a TIMESTAMP WITH TIME ZONE? If so, then no casting is needed:
    SQL> create table test(id number,update_time timestamp with time zone)
      2  /
    Table created.
    SQL> insert into test values(1,systimestamp)
      2  /
    1 row created.
    SQL> insert into test values(2,systimestamp  at time zone 'UTC')
      2  /
    1 row created.
    SQL> select  id,
      2          update_time,
      3          update_time at time zone 'US/Pacific'
      4    from test
      5  /
            ID
    UPDATE_TIME
    UPDATE_TIMEATTIMEZONE'US/PACIFIC'
             1
    18-NOV-09 04.23.03.241000 PM -05:00
    18-NOV-09 01.23.03.241000 PM US/PACIFIC
             2
    18-NOV-09 09.23.29.346000 PM UTC
    18-NOV-09 01.23.29.346000 PM US/PACIFIC
            ID
    UPDATE_TIME
    UPDATE_TIMEATTIMEZONE'US/PACIFIC'
    SQL> SY.

  • Displaying a Timestamp on a Java Applet

    Hi, I am working on a java applet in Jbuilder. I would like to display a timestamp on my applet. Where can I find the code for this. I have searched the forums and can't find anything I need. I just wanted it to current time.
    thanks

    Here is a little of my code.. I imported the 2 packages and the I placed it at the bottom of this portion of code. The error I am getting is
    illegal start of expression at 141 (141:1)
    ';' expected at line 141 (141:8)
    import java.sql.Time;
    import java.sql.Timestamp;
    public class JavaProject extends Applet implements ItemListener, ActionListener, MouseListener
    Connection conjavafinal;
    Statement cmdjavafinal;
    ResultSet rsjavafinal;
    private String dbURL =
    "jdbc:mysql://web6.duc.auburn.edu/?user=hansokl&password=tiger21";
    boolean blnSuccessfulOpen = false;
    Choice lstNames = new Choice();
    TextField txtLastName = new TextField(15);
    TextField txtFirstName = new TextField(15);
    TextField txtid_number = new TextField(15);
    TextField txtemployee = new TextField(15);
    TextField txthoursbilled = new TextField(15);
    TextField txtbillingrate = new TextField(15);
    TextField txttotalcharged = new TextField(15);
    TextField txtAddress = new TextField(15);
    TextField txtCity = new TextField(15);
    TextField txtState = new TextField(2);
    TextField txtZip = new TextField(4);
    TextField txtPhone = new TextField(15);
    TextField txtemail = new TextField(15);
    Label lblLastName = new Label("Last Name");
    Label lblFirstName = new Label("First Name");
    Label lblid_number = new Label("Id Number");
    Label lblemployee = new Label("Employee");
    Label lblhoursbilled = new Label("Hours Billed");
    Label lblbillingrate = new Label("Billing Rate");
    Label lblAddress = new Label("Address");
    Label lblCity = new Label("City");
    Label lblState = new Label("State");
    Label lblZip = new Label("Zip");
    Label lblPhone = new Label("Phone");
    Label lblemail = new Label("Email");
    Button btntotalcharged = new Button("Calculate");
    Button btnAdd = new Button("Add");
    Button btnEdit = new Button("Save");
    Button btnCancel = new Button("Cancel");
    Button btnDelete = new Button("Delete");
    Button btnNext = new Button("Next");
    Button btnLast = new Button("Last");
    Button btnPrevious = new Button("Previous");
    Button btnFirst = new Button( "First");
    TextArea txaResults = new TextArea(10, 30);
    String strid_number;
    String stremployee;
    String strhoursbilled;
    String strbillingrate;
    String strtotalcharged;
    String strLastName;
    String strFirstName;
    String strAddress;
    String strCity;
    String strState;
    String strZip;
    String strPhone;
    String stremail;
    public void init() {
    public void mouseClicked(MouseEvent e)
    float flttotalcharged;
    float fltbillingrate;
    float flthoursbilled;
    fltbillingrate = Float.valueOf(txtbillingrate.getText()).floatValue();
    flthoursbilled = Float.valueOf(txthoursbilled.getText()).floatValue();
    flttotalcharged = fltbillingrate * flthoursbilled;
    txttotalcharged.setText("" + flttotalcharged);
    public void mousePressed(MouseEvent e)
    public void mouseReleased(MouseEvent e)
    btnAdd.setForeground(Color.cyan);
    btnAdd.setBackground(Color.white);
    public void mouseEntered(MouseEvent e)
    showStatus("Calculate Total Charge");
    public void mouseExited(MouseEvent e)
    showStatus("Ready");
    setBackground(Color.ORANGE);
    setForeground(Color.BLUE);
    LoadDatabase();
    if (blnSuccessfulOpen) {
    add(new Label("Client Billing System"));
    this is line 141 in my code ------> public class Main
    public static void main(String[] args)
    Timestamp ts = new Timestamp(System.currentTimeMillis());
    Time time = new Time(ts.getTime());
    System.out.println(time);
    }

  • Oracle ODBC driver and TIMESTAMP with timezone

    Does anyone know if it is possible to return data from a "TIMESTAMP WITH TIMEZONE" column using the Oracle ODBC driver and an ADO Recordset?
    I am using the Oracle driver version 10.2.0.2 and TIMESTAMP fields work fine.
    I can call Recordset->Open() with a query like "SELECT * FROM TABLE" when the table contains a column of type timestamp with timezone but when I execute a statement to see if there are results as in
    if (!(srcRecsetPtr->BOF && srcRecsetPtr->EndOfFile))
    my application throws an unhandled exception and exits. The exception is not a COM exception and I'm not sure how to get back additional information if that's possible.
    The only information I've been able to find in searching TechNet and MetaLink is that a workaround is to wrap the columns in a TO_CHAR or TO_DATE conversion first but that's not a good solution for my problem since I am executing user specified SQL which may join multiple tables.
    I've found one other note that says the documentation should be corrected and that these fields are NOT supported period (Bug #4011640).
    I've experimented with the Bind Timestamp as Date option in the ODBC connection and with various ALTER SESSION settings to attempt to change the NLS_TIMESTAMP_TZ_FORMAT but I have been unable to get past the problem.
    Any ideas are greatly appreciated.
    Thanks,
    Troy

    Hi Justin
    Thanks for your help.
    I tried what you mentioned and I could connect myself via SQL*Plus without passing a password and a login, Extern authentification seems to work and my user seems to be right configurated.
    But he problem goes on via ODBC. When I test connection in the ODBC Data Source Administrator of Windows XP, test fails and seems to forbid connection without userID and password. When I try to connect via ODBC in my program the same problem appears : "Unable to connect SQLSTATE=28000 [Oracle][ODBC][ORA]Ora-01017: Invalid username/password;logon denied" I could not connect in this way.. What's wrong ?

  • Error when setting GPO Display information about previous logon during user logon on Wins 7

    We recently try to deploy a GPO on our network (All Server 2008 and Windows 7) to show previous logons during
    user logon. The setting is located in Computer Configuration| Policies |
    Administrative Templates | Windows Components | Windows Logon Options | Display
    information about previous logons during user logon = Enabled. Our domain
    level is set to Windows Server 2008. I verified that it is Windows Server 2008
    on Domain and Trust.
    Here is the article about this setting
    Active Directory Domain Services: Last Interactive
    Logon
    But after we deploy the setting, we are no longer able to login
    to any of our windows 7 machines. All of them got an error message said :
    “Security policies on this computer are set to display information about the
    last interactive logon. Windows could not retrieve this information. Please
    contact your network administrator for assistance.”
    The setting
    worked on windows server 2008. I was able to login to DC and revise the setting,
    so we can log back in the windows 7 machines.
    Anyone has experience this
    issue before? I looked up all of the web and only thing they said is to make
    sure the domain functional level must be set to Windows Server 2008, which it
    is.

    Hi,
    Have we also applied this setting to domain controllers?  To make this policy work properly, we also need to apply this setting to domain controllers. If not, users will not be able to log on to the system.
    Regarding this point, the following article can also be referred to for more information.
    Group Policy Setting of the Week 35 – Display information about previous logons during user logon
    http://www.grouppolicy.biz/2010/07/group-policy-setting-of-the-week-35display-information-about-previous-logons-during-user-logon/
    Best regards,
    Frank Shen

  • Problem with Policy "Display information about previous logons during user logon"

    Hello,
    I've a problem with the Policy "Setting Display information about previous logons during user logon".
    It is applied correctly on computer, but I can't login anymore and message "Security policies on this computer are set to display information about the last interactive logon. Windows could not retrieve this information. Please contact your network administrator
    for assistance" is appearing.
    My home test domain has 2008 R2 functionality level since months, and I've raised my company infra level functionality to 2012 this morning. Both domain are making the same error.
    This is non-sense, so any idea how to troubleshoot it ? Thanks in advance ! ;-)
    PS : I was able to remove it in order to login again, no worries on this one...

    Did you follow the guidance in http://technet.microsoft.com/en-us/library/dd446680%28v=ws.10%29.aspx?
    Especially the following paragraph - the setting has to be applied to DCs and Members...:
    You configure last interactive logon through a GPO. You must configure the following setting for the GPO with domain controllers in its scope of management if you want to report last interactive logon information to the directory service:
    Computer Configuration| Policies | Administrative Templates | Windows Components | Windows Logon Options | Display information about previous logons during user logon = Enabled
    If you want to display last interactive logon information to the user, you must configure this setting for both the GPO with domain controllers in its scope of management as well as any GPO with Windows Server 2008 and Windows Vista client
    computers in its scope of management.
    Martin
    NO THEY ARE NOT EVIL, if you know what you are doing:
    And if IT bothers me - :))
    Restore the forum design -
    Martin-
    I'm struggling with the TechNet article you direct us to.  We see in the TechNet article that Last Login Notification works ONLY with Server 2008 R2 and Vista.  Do we interpret that correctly?
    We need it to work with Server 2003, Server 2008, Win7, Win8, Win8.1, Server 2012, et. al.
    What is the work around to enable *Last Login Notifications to Users* functionality for these OSs?
    Thanks in advance,
    Robin

  • Why have I lost the info of  timezone (Timestamps with Timezone )

    I have been trying to get timestamps with timezones working in my Java application, but I don't seem to get the data I expect back from the JDBC driver
    my field type is Timestamps with Timezone ,in the database,I saw the info of (12-DEC-06 01.12.12.123000 PM -06:00),but I don't know How to get it from Java
    I've use the Timestamp aa =rs.getTimestamp("FIELDVALUE");but the timezone is lost, what can I do?
    thanks

    Timestamps are always GMT based (or could be thought of as timezone neutral) so what you should get back is a timestamp representing a GMT equivalent of the time you see that has a 6 hour offset from GMT. In other words, if the time were 1 PM Central Standard you would get a GMT time of 7 PM.
    You should then be able to display that time in any time zone you wish using SimpleDateFormat and specifying the time zone you want to display it in. So if you then display it with Central Standard, the 7 PM GMT would then display as 1 PM again. In other words, 7 PM GMT and 1 PM Central Standard are the same timestamp
    If you just display the timestamp using a toString(), you will get the time in the default time zone of the JVM..
    Whether the driver actually does this correctly with the Oracle database I can't say. I've made several posts in a variety of places complaining that the driver does not work correctly with timestamps but my experience is limited to regular timestamp fields, not the new Oracle type of timestamp with timezone.
    Based on my experience, what you are more likely getting back in the 1 PM- 7 PM example is 7 PM in the default timezone of the JVM.
    You should look at the getTimestamp with Calendar options to see if they work better for you.
    The main thing to keep in mind is that timestamps are really timezone neutral.

  • Php input date/time as timestamp with timezone

    This is a nightmare!!!!
    I have numerous databases, all of which use timestamp format
    date/times, which are easy to echo according to user timezone
    preferences using putenv ("TZ=".$_SESSION['MM_UTZ']); and echo
    date($_SESSION['MM_UTF'], ($whatever));
    The only problem is, I have only used these for stamping
    "date created" or "date edited" values using Time()
    What I am trying to achieve is:
    User 1 in UK enters date and time, using a javascript
    datetime picker (which normally enters data into field in Y-m-d
    H:i:s) and the php inserts this in timestamp format according to
    timezone.
    User 2 in US looks at date and time and this is echo'd
    according to his timezone.
    Sounds simple...
    I have managed to get so far with the new DateTime object
    which incorporates the user timezone preference ($utz)
    $ndttime= new DateTime($timefield, new DateTimeZone($utz));
    I can then echo this effectively using
    echo $ndttime->format('$utf'); ($utf being user timeformat
    preference)
    My stupid problem is trying to get the $ndtime into the
    database!!!!
    I know this sounds ridiculous but I use the DW insert wizard
    which only uses values from a form and if I echo $ndtime into a
    hidden field, it doesn't process this value in time.
    I attach the current insert script.
    Is this simple?
    Heeeeelp.

    quote:
    Originally posted by:
    AXEmonster
    how does this format when you echo to the page
    echo $ndttime->format('$utf');
    This will echo as a date/time object - i.e. Y-m-d H:i:s, but
    the $utf variable is a session variable with user time format
    preferences, so it could be D, d/m/Y H:i:s or m-d-Y H:i:s
    etc.

  • UTC timestamps in milliseconds offset from January 1, 1970

    Hello,
    The problem is that I must generate miliseconds offset from jan-1-1970 for a java app from my PL/SQL application.
    how do I can, from a given datetime, get UTC timestamps in milliseconds offset from January 1, 1970?
    I'm in the Canada/Eastern time zone and I'm using the following function:
    CREATE OR REPLACE FUNCTION date_to_float (dt IN DATE)
    RETURN FLOAT
    IS
    BEGIN
    RETURN 24 * 3600 * 1000 * (NEW_TIME (dt, 'EDT', 'GMT') - TO_DATE ('1970-01-01', 'YYYY-MM-DD'));
    END;
    so when I use this function to generate events after the november 2nd, the hour isn't accurate on the application side because the static usage of new_time with EDT source timezone.
    How can I make this function reliable over time?
    Thanks

    It looks like you are looking for the unix style epoch time:
    This code will give it to you plus allow you to configure the resolution, by default it will return the number of seconds since 1-Jan-1970, but by varying either the scale or precision you can get more or less detail, and you can even change the date epoch date used in the calculation.
    create or replace
    function date_to_epoch(
          p_date timestamp with time zone default systimestamp,
          p_scale number default 1,
          p_precision number default 0,
          epoch timestamp with time zone
              default to_timestamp_tz('1970-01-01 utc',
                                      'yyyy-mm-dd tzr')
      ) return number is
        tmp interval day(9) to second;
        sec number;
      begin
        tmp := p_date-epoch;
        sec := extract(day from tmp)*24*60*60;
        sec := sec + extract(hour from tmp)*60*60;
        sec := sec + extract(minute from tmp)*60;
        sec := sec + extract(second from tmp);
        return trunc(sec*p_scale,p_precision);
      end;Edited by: Sentinel on Aug 28, 2008 3:14 PM

  • Cannot display login window as "List of users"

    I am running Leopard Server, and I cannot seem to get my OS to display login window as "List of users".
    The option is grayed out in System Preference, and if I use Workgroup Manager to set the Login preference for this computer to "List of users able to use these computers", my computer doesn't seem to respect that. Although it does respect the "Show Restart/Shut Down button" when I turn that on/off.
    I tried to edit the com.apple.loginwindow.plist in /Library/Preference, no option found for display login window.
    Help please, thanks.

    The way to switch between the two options is:
    defaults write /Library/Preferences/com.apple.loginwindow SHOWFULLNAME 1
    (turn on name list)
    and
    defaults write /Library/Preferences/com.apple.loginwindow SHOWFULLNAME 0
    (turn off name list)
    and use
    defaults read /Library/Preferences/com.apple.loginwindow SHOWFULLNAME
    to see what the current setting is. Note that when you use the defaults command, you omit the ",plist" on the preference file name.
    As always, beware of trying to bypass measures put in place to protect you, and be careful modifying preference files since you can lock yourself out or prevent your computer from booting properly.

  • How do I display an informative message to the user on Oracle Forms?

    I have been asked to create a database trigger to fire when a user tries to update a column with existing data in it. If the column however has no data in it then the user can update the column with a value.
    I tried using the RAISE_APPLICATION_ERROR technique but somehow no message shows up on the frond end of the form when a user tries to update a column with existing data in it. The rest of the trigger works fine. It does not allow a user to update a column with existing values in it, yet it allows user to update column with no values in it.
    My problem is displaying a message that reads like this :''Column value must must be 100 "
    Here is parts of my code.
    CREATE OR REPLACE TRIGGER trigger_name
    IF :NEW.ATTRIBUTE2 IS NOT NULL AND :NEW.ATTRIBUTE2 <> NVL(:OLD.ATTRIBUTE2, :NEW.ATTRIBUTE2) THEN
    RAISE_APPLICATION_ERROR(-20002, 'Column value must must be : ' || :OLD.ATTRIBUTE2);
    END IF;
    Now i have tried this the syntax below. It does bring up a message on the front end of the form but it is not the message i have in mind.
    IF :NEW.ATTRIBUTE2 IS NOT NULL AND :NEW.ATTRIBUTE2 <> NVL(:OLD.ATTRIBUTE2, :NEW.ATTRIBUTE2) THEN
    FND_MESSAGE.set_name('FND', 'Column value must
    be '|| :OLD.ATTRIBUTE2);
    FND_MESSAGE.set_token('MSG', 'r21_AP_INVOICES_TRIGGER()
    exception: ' || SQLERRM);
    FND_MESSAGE.RAISE_ERROR;
    END IF;
    Does anyone has any idea?
    thx

    Unfortunately I do not have access to the Form properties. I was only asked to write a trigger to prevent a user from updating a field with data in it, and displaying a message saying that the user cannot update such a column when the user tries to update such a column.
    I know that changing the form properties might be an easier option, but unfortunately i have to everything with the help of a trigger
    Message was edited by:
    user644929

  • The requested URL /pls/portal/display.jsp was not found on this server.

    Hi,
    I managed to get ultrasearch running now. The crawling process seems to run smooth. Executing a search gives me the correct result. However, i can not display the documents that are listed in the resultpage.
    The link to the document is like this:
    http://myportal/pls/portal/display.jsp?type=file&f_url=C:\ultra_docs\sultan\filetransfer\htc\site.doc
    The path in the url seems ok to me.
    Cliking on this link gives me the following error:
    The requested URL /pls/portal/display.jsp was not found on this server.
    Please, help me out here :/
    mvg
    Bram

    I just tested it by accessing the search page with the following url:
    http://myportal/ultrasearch/query/search.jsp
    This gives me the same result and the links to the actual documents work fine now too! But it is not working from within portal, the links generated by the ultrasearch portlet give me an error.
    The requested URL /pls/portal/display.jsp was not found on this server.
    Please Help me Out
    thx

Maybe you are looking for

  • Flat File to IDOC

    Hi, I have to post the data from Flat File to SAP using IDOC. Please help me out with all the posibilities. Regards, Kiran.L

  • Sync errors for iPad2 with iOS5

    Updated iPad2 to iOS5. Now keep getting sync errors, like: cannot finish sync process. Anyone with same problem and possible answer?

  • IPhoto Hangs When Opened

    When I try to open iPhoto, it says Loading Images and just hangs. I've tried the Command-Option Open thing but that doesn't work either. What should I do next?

  • Resampling "large" images in overlays

    Although this question really belongs in the New authoring tools available (Sept 1) thread as it is related to download problems I thought it should be a new topic as the answer (when it comes) might be of interest to all. I have a sequence of nearly

  • ICloud not syncing photos on Win 8.1 Pro

    Hi, iCloud is absolutely unreliable for syncing photos from my iCloud (Photo Stream) to my PC (Win 8.1 Pro). It used to be working, then it stopped, then I reinstalled my Windows (clean install), I reinstalled iCloud Control Panel and now it is not w