Last_Updated_by column filled with schema, I want the username

Hello

Currently my last_updated_by column is updated the schema name of the application.  I want to use the user name of the current users.

I tried substitution methods in OS, but the methods are ignored.

  public void setLastUpdatedBy(String value)
  {
    OADBTransaction transaction = getOADBTransaction();
    value = transaction.getUserName();
    setAttributeInternal(LASTUPDATEDBY, value);
  }

It turns out that there is a trigger on the table that was setting the columns WHO.  Disable it fixed the problem.

Tags: Oracle Applications

Similar Questions

  • Pre filled with user name in the window of windows authentication.

    Hello

    I hope someone can help me!

    I'll put up the Single Sign-On, but do you have a problem, which is a right pain! because of duty capture the screens that need to be the same each time as the users to enter password.

    I am trying to use SSO to treat the identification information to users through a window of Windows authentication, I want windows authentication for prompt as the way it's Setup is using a generic account to log on locally to the machine but then access intranet and applications users will be run as the credentials of domain users that they authenticate with Single Sign On by connecting to the application.

    I got all applications work, but the problem is when the local generic account accessed sharepoint authentication in sharepoint (as its supposed to do), but in this case I don't want to do, so I put the home page for this local account for the access denied page of sharepoint to force authentication of users. so everything what I need to do now is to remove the part where he waits just a password and just having use another area account instead.

    Bit of a strange setup I know but if I can get around this problem the journal, password management and user switch will be a great improvement for our users.

    My question is where the username is pre-filled how to remove it or default so that using another account field becomes active?

    Thank you.

    Thank you for your response.

    This problem is better suited in the TechNet forum we have a dedicated team to help you with this question, I suggest you post your query on TechNet forum.

    https://social.technet.Microsoft.com/forums/Windows/en/home?category=w7itpro

  • Recipient 'HOME' has blank description but SendCopyTo is being filled with 'HOME', I want it to be empty

    Documaker 122.2 using...
    In my BDF, I have:

    "INS" recipient with a description of "copy of the insured".

    Recipient 'HOUSE' with no description

    The tag on my article has ' copy to ' selected.

    When the form printed in the "INS" group the tag is filled with "copy provided.

    When the form printed in the "HOME" group the tag is filled with "HOME".

    I want the tag to be empty when the form is printed in the 'HOME' group  I thought that not given no description to do this, but apparently is not.  Any idea on how to get it to be a Virgin?

    Try to use a hard space (Alt + 0160 via keyboard) for the description of the recipient in the BDF. I suspect that will work (it will look like empty) if it is printed with a font that supports the Windows (code page 1252) character set.

  • Date column updated with trigger update of the geometry

    Hello

    I have a column named "GEO_MOD_DATE" which is supposed to be updated every time that my geometry column is updated. My trigger code is below. Currently the trigger is fired when other than my column of geometry columns are updated. I searched the forum and many other sites. As far as I know, my trigger is written correctly. But I can't understand why it is taken when the columns except my geometry column are updated. You have any ideas? Thanks in advance! Note that the trigger fires when I update the geometry column. However, it is also SHOOTING when the other columns are updated. I have also tried adding 'OF GDO_GEOMETRY' from "BEFORE UPDATE" paragraph and which did not help.

    Jeff

    Triggering factor:

    CREATE OR REPLACE TRIGGER OPER_ZONE_VALVE_GEO_BU_T
    BEFORE THE UPDATE
    ON OPER_ZONE_VALVE
    REFERRING AGAIN AS NINE OLD AND OLD
    FOR EACH LINE
    DECLARE
    v_foo NUMBER (9);
    BEGIN
    -Comment from below if you do not want to assign GEO_MOD_DATE
    BEGIN
    IF the UPDATE ("GDO_GEOMETRY") and: NEW.gdo_geometry IS NOT NULL
    THEN
    : NEW.geo_mod_date: = SYSDATE;
    ON THE OTHER
    : NEW.geo_mod_date: = NULL;
    END IF;
    EXCEPTION
    WHILE OTHERS
    THEN
    raise_application_error
    (- 20013,
    "Cannot be autoassign field OPER ZONE VALVE".
    );
    END;

    /*****/
    NULL;
    EXCEPTION
    WHILE OTHERS
    THEN
    raise_application_error
    (- 20013,
    'error in executing BEFORE INSERT TRIGGER OPER_ZONE_VALVE_GEO_BU_T;'
    );
    END;
    /

    --------------------------------------------
    And here is my table structure:

    CREATE TABLE OPER_ZONE_VALVE
    (
    MSLINK NUMBER (38),
    VALVE_NUMBER VARCHAR2 (8 BYTE),
    ECM_NUMBER VARCHAR2 (8 BYTE),
    VALVE_SIZE VARCHAR2 (4 BYTE),
    CONNECTION_TYPE VARCHAR2 (100 BYTE),
    HEADER_STREET VARCHAR2 (100 BYTE),
    HEADER_FEET VARCHAR2 (8 BYTE),
    HEADER_DIR VARCHAR2 (4 BYTE),
    HEADER_PROP VARCHAR2 (4 BYTE),
    SUB_STREET VARCHAR2 (100 BYTE),
    SUB_FEET VARCHAR2 (8 BYTE),
    SUB_DIR VARCHAR2 (4 BYTE),
    SUB_PROP VARCHAR2 (4 BYTE),
    PLAT_MAP_NUMBER VARCHAR2 (4 BYTE),
    USER DEFAULT CREATED_BY VARCHAR2 (50 BYTES)
    CREATED_DATE DATE DEFAULT SYSDATE,
    MODIFIED_BY VARCHAR2 (50 BYTE),
    MODIFIED_DATE DATE,
    DATE OF GEO_MOD_DATE,
    NOTE VARCHAR2 (40 BYTE),
    MDSYS GDO_GEOMETRY. SDO_GEOMETRY
    )

    I read that FORWARD updated TO does not work with data as CLOB types

    Yes. But what does this mean for the SDO_GEOMETRY objects is that you cannot directly use a WHEN clause in the definition of the trigger and you cannot compare two geometries directly via If (: old.geom =: new.geom) then.

    So, in your trigger update of your business rules conditions require the trigger to implement are not enough.

    Try to check if the geometry column has actually changed.

    DROP TABLE oper_zone_valve;
    
    CREATE TABLE oper_zone_valve
    (
      mslink            NUMBER (38),
      valve_number      VARCHAR2 (8 BYTE),
      ecm_number        VARCHAR2 (8 BYTE),
      valve_size        VARCHAR2 (4 BYTE),
      connection_type   VARCHAR2 (100 BYTE),
      header_street     VARCHAR2 (100 BYTE),
      header_feet       VARCHAR2 (8 BYTE),
      header_dir        VARCHAR2 (4 BYTE),
      header_prop       VARCHAR2 (4 BYTE),
      sub_street        VARCHAR2 (100 BYTE),
      sub_feet          VARCHAR2 (8 BYTE),
      sub_dir           VARCHAR2 (4 BYTE),
      sub_prop          VARCHAR2 (4 BYTE),
      plat_map_number   VARCHAR2 (4 BYTE),
      created_by        VARCHAR2 (50 BYTE) DEFAULT USER,
      created_date      DATE DEFAULT SYSDATE,
      modified_by       VARCHAR2 (50 BYTE),
      modified_date     DATE,
      geo_mod_date      DATE,
      remark            VARCHAR2 (40 BYTE),
      gdo_geometry      MDSYS.sdo_geometry
    );
    
    CREATE OR REPLACE TRIGGER air_valve_geo_bu_t
      BEFORE UPDATE OF gdo_geometry
      ON oper_zone_valve
      REFERENCING NEW AS new OLD AS old
      FOR EACH ROW
    BEGIN
       IF ( NOT UPDATING('GDO_GEOMETRY') ) THEN
        RETURN;
      END IF;
      IF ( :old.gdo_geometry is not null and :new.gdo_geometry IS not NULL ) THEN
        -- Check if geometry has changed internally
         IF ( sdo_geom.relate(:old.gdo_geometry,'DETERMINE',:new.gdo_geometry,0.005) != 'EQUAL' ) Then
           :new.geo_mod_date := SYSDATE;
         End If;
      ELSIF ( ( :old.gdo_geometry is null and :new.gdo_geometry IS NOT NULL ) OR
           ( :old.gdo_geometry is not null and :new.gdo_geometry IS NULL ) ) THEN
         :new.geo_mod_date := SYSDATE;
      ELSE
        :new.geo_mod_date := NULL;
      END IF;
    END;
    /
    SHOW ERRORS
    

    Some tests

    SET NULL NULL
    INSERT INTO oper_zone_valve ( remark, gdo_geometry) VALUES ('remark', MDSYS.sdo_geometry(2001,NULL,SDO_POINT_TYPE(0,0,0), NULL,NULL)); COMMIT;
    1 rows inserted.
    commited.
    SELECT remark,  to_char(geo_mod_date,'YYYY-MM-DD HH24:MI:SS') as geo_mod_date, gdo_geometry FROM oper_zone_valve;
    REMARK GEO_MOD_DATE        GDO_GEOMETRY
    ------ ------------------- -------------------------------------------------------
    remark NULL                SDO_GEOMETRY(2001,NULL,SDO_POINT_TYPE(0,0,0),NULL,NULL)
    
    update oper_zone_valve set gdo_geometry = sdo_geometry(2001, NULL,SDO_POINT_TYPE( 0,0,0),NULL,NULL) where remark = 'remark'; COMMIT;
    1 rows updated.
    commited.
    SELECT remark,  to_char(geo_mod_date,'YYYY-MM-DD HH24:MI:SS') as geo_mod_date, gdo_geometry FROM oper_zone_valve;
    REMARK GEO_MOD_DATE        GDO_GEOMETRY
    ------ ------------------- -------------------------------------------------------
    remark NULL                SDO_GEOMETRY(2001,NULL,SDO_POINT_TYPE(0,0,0),NULL,NULL)
    
    update oper_zone_valve set gdo_geometry = sdo_geometry(2001, NULL,SDO_POINT_TYPE(10,0,0),NULL,NULL) where remark = 'remark'; COMMIT;
    1 rows updated.
    commited.
    SELECT remark,  to_char(geo_mod_date,'YYYY-MM-DD HH24:MI:SS') as geo_mod_date, gdo_geometry FROM oper_zone_valve;
    REMARK GEO_MOD_DATE        GDO_GEOMETRY
    ------ ------------------- --------------------------------------------------------
    remark 2012-10-16 09:24:53 SDO_GEOMETRY(2001,NULL,SDO_POINT_TYPE(10,0,0),NULL,NULL)
    
    execute dbms_lock.sleep(5);
    anonymous block completed
    update oper_zone_valve set gdo_geometry = NULL  where remark = 'remark'; COMMIT;
    1 rows updated.
    commited.
    SELECT remark,  to_char(geo_mod_date,'YYYY-MM-DD HH24:MI:SS') as geo_mod_date, gdo_geometry FROM oper_zone_valve;
    REMARK GEO_MOD_DATE        GDO_GEOMETRY
    ------ ------------------- --------------------------------------------------------
    remark 2012-10-16 09:24:58 NULL
    

    This seems to be the answer you are looking for or puts you on a path to achieve the correct execution of your business rules in the trigger.

    Shows please!

    concerning
    Simon

    Published by: Simon Greener on 17 October 2012 15:39, fixed a display issue does not

  • Quiz, with failure I want the answer to appear.

    When the user does not have the question, I want the answer to show. I'm looking for: Questions edit > Options > bad answer. It says 'Action for failure' and I choose 'show' in the dropdown menu, but can't fill the 'Show' box. He wants me to take 'value' to the box, but there is no value in there. I want a text box with the correct answer show so they can learn from their mistakes of the quiz. How can I implement my idea?

    TX

    Rich Gilman

    The simple, not fancy, to the solution of point, I used when I had this problem was to enter the answer in the "legend of failure." Simply click on the legend of failure

    Properties and after 'Wrong' enter text that gives the correct answer.  You can then resize the legend of failure so the correct full text can show.

  • (table of filling with data series) want table con datos serial

    Hola todos

    Tengo el siguiente problema put los datos back sensores fijado por el deseo series in a table, cada envio una palabra clave recibo 10 siguiente manera, ahora 0224,1023 datos are separo el chain y los convierto en numericos. El problema radica in than recibo los datos y los coloco en el table pero cuando cuando recibo otros 10 mas put in el table continuando siguiente linea desde los datos, lo what I need are my mantenga el table con los datos anteriores y cuando otros 10 reciba to borre el table y nuevo in the linea comienze 0

    in the first image is ve como's van while el pero Necesito UN Québec table me quédé como in the segunda vez as reciba los nuevos datos cada imagen

    the thank su ayuda is not to do

    Hello everyone

    I have the following problem will place two data received by sensors series in a table, each sending a key word to receive 10 facts, 0224.1023 is now following, I separate the string and turn them into digital. the problem is that I recover data and place it in the table but when when I receive another 10 data but their place in pursuit of the next line, what I need is to keep my table with previous data and when you get the other 10, the table and repeat is disabled on line 0

    in the first picture looks like they fill the table, but I need to keep me and the second image whenever you receive new data

    Hola aleramir

    You cuento that no me sirvio por ese lado pero prevalence hacerlo the siguiente forma y works exelente

    despues voy activar el boton don't con el programa no manual, igual manera you thank you answer

  • Archive file error - but filled with files are in the file together?

    I get the error message "adobe cs5.5 design standard archive file is missing. The .7x and the .exe file appear in a folder on the desktop of my 3 Surface Pro (64-bit). The .7z is completely downloaded. I tried as an administrator but get the same question.

    Any ideas why it doesn't let me go forward?

    Hi Joannaf82491450,

    Thank you for the screenshot.

    This type of error occurs generally when the files have been damaged due to a break in connectivity network during the download. I recommend the re - download files from Download Adobe Creative Suite 5.5 products, ensuring that you have a very stable internet connection. If you use wifi, you may need a wired connection or a different wifi signal. If you can not get a stable connection on your Surface Pro 3, you can download the files using a different device, store them on a portable hard drive and then transfer them.

    Kind regards

    Del

  • How to fill the new column with values based on the subquery

    How can I fill a new column (teamid) with the following query below, at my table dept? I'm empty/null entries in teamid collar when I run the code ff:

    ALTER table dept add (teamid varchar2 (15));

    Update dept

    define the teamid = select upper (substr (deptname, 1, 3)) | Upper (substr (Color, 1, 2)) | rownum

    of the Department;

    Want to output:

    DEPTNAME COLOR TEAMID
    SALESORANGESALOR1
    ACCOUNTINGBLUEACCBL2
    BILLINGYELLOWBILL3
    SQL> create table dept as
      2  select 'SALES' deptname, 'ORANGE' color from dual union all
      3  select 'ACCOUNTING' deptname, 'BLUE' color from dual union all
      4  select 'BILLING' deptname, 'YELLOW' color from dual
      5  /
    Table created
    
    SQL>
    SQL> select * from dept;
    DEPTNAME   COLOR
    ---------- ------
    SALES      ORANGE
    ACCOUNTING BLUE
    BILLING    YELLOW
    
    SQL>
    SQL> alter table dept add(teamid varchar2(15));
    Table altered
    
    SQL> update dept set teamid = upper(substr(deptname,1,3)) || upper(substr(color,1,2)) || rownum;
    3 rows updated
    
    SQL> select * from dept;
    DEPTNAME   COLOR  TEAMID
    ---------- ------ ---------------
    SALES      ORANGE SALOR1
    ACCOUNTING BLUE   ACCBL2
    BILLING    YELLOW BILYE3
    
    SQL> rollback;
    Rollback complete
    
    SQL> drop table dept purge;
    Table dropped
    
    SQL>
    

    ----

    Ramin Hashimzade

  • I want to get only year sysdate with my name of the defined column. but not able to get it.

    I want to get only year sysdate with my name of the defined column. but not able to get it.

    SQL > select to_char (sysdate, 'yyyy') as 'mahesh tyagi' from dual;

    Mahé

    ----

    2015

    SQL > select to_char (sysdate, 'yy') as 'Manu' from dual;

    my

    --

    15

    So I couldn't do 'Manu' or "mahesh tyagi" as the column name.

    The column name is "mahesh tyagi" is simply displayed it shortened to sqlplus due to the known values in the column length.

    create table year_test select to_char (sysdate, 'yyyy') "mahesh tyagi" double;

    year_test / / DESC

    You can change the way sqlplus displays the header of column with something like

    column "mahesh tyagi" format a15

  • How to make a paper with some boxes to fill required for me to sign, and then some other boxes needed for the next person to sign. I want the boxes I've filled to be locked the next person.

    How to make a paper with some boxes to fill required for me to sign, and then some other boxes needed for the next person to sign. I want the boxes I've filled to be locked the next person.

    Hi johanb64152807,

    You can use eSign service, where you can send the document for signatures of several signatories, but the document will be sent to the following signatory after the earlier signed & it is not possible for him to make the changes.

    Documents KB for help: -.

    Kind regards
    Nicos

  • I have problems with the form widget. When I created my forms, I need to leave out the line, one email because my client does not want the message line and two because those who have tried to fill the online form cannot submit because that box "email".

    I have problems with the form widget. When I created my forms, I need to leave out the line, one email because my client does not want the message line and two because those who have tried to fill the online form cannot submit because the 'email' box keep rejecting their email address valid. And I just tried to remove the line in my form and it does not allow me to delete or to mark it as not necessary either.

    Currently, there is no way around the field email forms of the Muse. Another option is to have a look at Jotforms or another third-party provider of shape that Muse has widgets for.

  • Cursor to fill a column with an increase in the value

    Hello
    I had the example table EMP (empno, full name, etc). I've added the username column and I need to fill it with values: emp1, emp2, emp3,..., emp1000..., etc. (until it corresponds to all employees)
    Can you please provide an example of code to fill the column?
    Thank you in advance.
    update emp
    set username='emp'||rownum;
    

    Max
    http://oracleitalia.WordPress.com

  • Can fill us transitional attribute in the table with no serial like 1,2,3, etc.? And how?

    Mr President.

    Can fill us transitional attribute in the table with no serial like 1,2,3, etc.? And how?

    Concerning

    You want to show serial No. on the page for all the lines?

    Check once-

    Blog of Ashish Awasthi (Jdev/ADF): Add the serial number to the table of the ADF, column to auto-increment in the table to the ADF

    Actually transitional attribute loses its value when page refreshes or viewObject is not appropriate in this case if your use case is different, so please tell us

    Ashish

  • Table with list of value to load on another value of the column that is never changed by the user

    Nice day!

    I work with JDeveloper 11.1.2.4.

    I have a Table of the ADF that has 4 lines.  Each row has a column with a unique value.  The plan should include a LOV column in the row show a different list of values based on a single column value.  I have install the list of values, use a display with a variable binding criterion.  When you create the data LOV source, I Specifies the name of a single column for the value of the bind variable.  However, it seems that the LOV changes none selecting different lines.

    Is there a good way to handle this?  I did LOVs of person in charge in the past, but this isn't quite the same as the user can view only the value that depends on the LOV on.

    Any suggestions are greatly appreciated!


    BradW

    Hey, it's always a case of use of the dependent list of values. If the attribute that you bind the bind variable view criteria at part of the view object then the value LOV to be examined accordingly. I did a quick test case and I see my lists filtered by an attribute in line (I used the HR schema and posted employees as candidates managerId. The employee list is filtered so that it only shows the employees in the same Department that the employee I want to put a new managerId on) Frank

  • I use the capture tool. How dp I get rid of the white background in the photo already chiseled the part I. I just want the part chiseled with no experience at all? Any help, thanks

    I use the capture tool.   How dp I get rid of the white background in the photo already chiseled the part I. I just want the part chiseled with no experience at all?   Any help, thanks

    Although it seems to be a white border when you first fill the snip, after saving it shouldn't be present more.

    If the border remains you can remove by using the crop tool on a photo editing programs such as integrated Windows Paint program.

Maybe you are looking for