Thoughts on updating  data

I have an APEX application that allows me to update data in a table. The table has a USER field and a LAST_UPDATE field. When the record is updated by a particular user I would like to USER and LAST_UPDATE file to be updated with the CURRENT USER ID and the CURRENT DATE regardless of what is put there.. I would like to do this without a Trigger.
I am trying to figure out how to do this with what APEX provides.

>
Thanks!
Are there any good samples around showing examples of this?How are you accomplishing the updates to the SQL Server table now? Is your ODBC connector/gateway taking care of that for you? I guess my question is are you able to use the ARP within Apex and just point to a table (which might be dblinked to SQL Server) or are you using a procedure in your Oracle database to pass the updates to SQL Server?
Etiher way, it would seem that these columns are no different from any other columns in the table, with the exception that you might not want to display these in the Apex UI, which is not a problem, you would just make them hidden items.
To get the values into them you would then use either the v('app_user') or :APP_USER syntax to pass the username value and sysdate should cover the current update date/time.
Where is the difficulty? If I'm off the mark please correct me. Thanks.
Earl
Edited by: Earl Lewis on Jan 19, 2010 12:08 PM

Similar Messages

  • Updating date while enabling/Disabling user in AD

    Hi All,
    We are using FIM 2010 R2 SP1 and integrated with AD.
    All integration is done through synch rule and no coding.
    Now we have a new requirement to update date in AD while enabling and disabling user.
    Kindly suggest, how it can be achieved through synch rule.
    Thanks,
    Mann

    Hi Mann.Cool,
    You can't set a date dynamically thought sync rule. Instead, I suggest you parse useraccountcontrol and set an custom attribute with value enabled/disabled.
    See
    http://idmgnt.wordpress.com/xpath-custom-expression/ (Check if an account is enable or not)
    Once is done:
    Create two new sets "Enabled users" and "Disabled users"
    Create a WF with T4F Function Evaluator, to set your date attribute (http://oxfordcomputergroup.com/technology/software-tools-components )
    Create the mpr
    Let me know if you want more details
    Regards,
    Sylvain

  • Updated Date  in R3 Tables

    Hi
    My requirement is to Extract R3 Data to CVS file without using BI.
    For this reason, I thought to make extractor using SE38 which will fetch data directly from Application tables using their 'Updated Date' as the main field for Delta purpose.
    Could you pls. let me know that Do all R3 Tables have 'Updated Date' or 'changed Date' field?
    Thanks...

    Hi Harpal,
    Not only the field presence will solve your problem but you will have to check whether this field is getting used or not, so you have to do two way checking,
    1) Goto SE11 and check if there is any field which holds change date or change time stamp etc.
    2) And then check the content of the table through SE16 or from SE11 contents button and make sure that the field is in use.
    Otherwise you will not be able to extract the delta.
    Regards,
    Durgesh.

  • Updating data without using update statement

    Hi,
    A quick question...
    Can any table data could be updated without using update statement from backend.
    Just wanted to make sure.
    Thanks in advance.

    Hi,
    What is your definition of Update?
    Since your question is vague and you dont explain what exactly you mean.
    here are my thoughts
    1) A record can be deleted and isnerted with new values.Where the nes values have only few columns changed from previous ones.
    2) I use pl/sql developer.If i need to update i can write select.. for update.Change the values (as in notepad)Commit.
         This is infact a update but with nice UI
    3) even your application can update data in your tables, if you code it and give correct privileges to the userRegards,
    Bhushan

  • VZ Navigator / Updating Data Files,

    I have an LGenv2, running VZNavigator 4.5.1.    Have been using this phone and VZNavigator for over 2 years.
    About 2 weeks ago, every time I start Navigator, it displays "Updating Data Files" which takes a few seconds to complete.  Then when I go into something, IE: Weather, it then displays "Downloading Announcements",  then displays "No new Announcements".  
    While Navigator works fine otherwise, the delay in doing the same useless tasks on startup just slows it down.  After the 3 screens of notices, then it functions normally, until the next startup and it does it again.
    Am I doing something wrong?   Is there a setting I missed?
    I prefer not to update Navigator based on all the complaints, and have intentionally kept this older phone so I won't be forced into the latest version of Navigator.
    Any thoughts?
    Thanks.

    I've had the same proble.  I am asked to accept or decline their rules way too often and also asked to upgrade.  The screen for upgrading does not load properly.  Navigator is SLOW and has become a pain in the ***!

  • Can not insert/update data from table which is created from view

    Hi all
    I'm using Oracle database 11g
    I've created table from view as the following command:
    Create table table_new as select * from View_Old
    I can insert/update data into table_new by command line.
    But I can not Insert/update data of table_new by SI Oject Browser tool or Oracle SQL Developer tool .(read only)
    Anybody tell me, what's happend? cause?
    Thankyou
    thiensu
    Edited by: user8248216 on May 5, 2011 8:54 PM
    Edited by: user8248216 on May 5, 2011 8:55 PM

    I can insert/update data into table_new by command line.
    But I can not Insert/update data of table_new by SI Oject Browser tool or Oracle SQL Developer tool .(read only)so what is wrong with the GUI tools & why posting to DATABASE forum when that works OK?

  • Error while updating data from PSA to ODS

    Hi Sap Gurus,
    I am facing the error while updating data from PSA to ODS in BI 7.0
    The exact error message is:
    The argument 'TBD' cannot be interpreted as a number
    The error was triggered at the following point in the program:
    GP44QSI5RV9ZA5X0NX0YMTP1FRJ 5212
    Please suggest how to proceed on this issue.
    Points will be awarded.

    Hi ,
    Try to simulate the process.That can give you exact error location.
    It seems like while updating few records may be no in the format of the field in which it is updated.
    Regards
    Rahul Bindroo

  • How can we update data in LDAP server using PL/SQL.

    Hi,
    How can we update data in LDAP server using PL/SQL program.
    Is there any sample code for refrence.
    Thanks,
    Tarun

    Hi Justin,
    Thanks for your help. You got my correct requirements.
    Tim's example returning all the attributes of current user which is admin user. Please correct me if I am wrong.
    I have the following information:
    the admin user and password,server info , port and ldap_base for admin.
    I have uid and password for regular user, I am trying find the ldap_base for regular user, which may be different from adminuser.
    Please help me.
    Thanks,
    Edited by: james. on Jan 12, 2009 5:39 PM

  • How to update data in a xml file.

    I am able to retrieve data from a xml file but not able to update data. Also how can i add or delete node from a xml file.

    Hi,
    For some time I have also been trying to do the same thing with no success. So far I have tried a few approaches like $.post functions $.ajax post functions and HTML5 fileWriter functions. I am not well aware of the web development techniques but as fas as I understand the post or update of the json file should be done on the serverside mainly because of security issues. I am not sure how appbuilder works entirely and if there is any way to do this.
    Have you managed to find a solution ?
    (P.S. my goal is to update my chart data which is of course json file. So the idea here is to get some values from the user input and update the json file values then refresh the chart and display it with the new values).
    Best Regards,
    A.Dyankov.

  • Cannot update data in a demantra worksheet..

    Hello all,
    I am not able to update data in a demantra worksheet - referred to Oracle Metalink
    https://metalink.oracle.com/CSP/ui/flash.html#tab=KBHome(page=KBHome&id=()),(page=KBNavigator&id=(bmDocID=459527.1&bmDocType=PROBLEM&viewingMode=1143&bmDocDsrc=KB&bmDocTitle=Worksheet%20Data%20is%20Not%20Being%20Saved%20to%20the%20Database%20-%20Error%20:%20Update%20Data%20Failed,%20Can't%20Create%20%3Cb%3EW...&from=BOOKMARK))
    DocId= 459527.1
    I have the same error message and I followed the steps exactly but I cannot seem to get rid of the error
    Cannot create Wf process. Update Data id: ....
    I have the components correctly defined, display units seems ok. Not sure why the Update Data is failing somewhere??
    Cheers

    Hey there!
    Make sure you restart web server (tomcat) after any changes you make in the business modeler, and before checking the worksheets. Make sure component has units associated, and series associated too.
    Hope this helps,
    Aaron

  • FRM-40602: Cannot insert into or update data in a view

    Hi all!
    I have a form based on a view and I want to get rid off this message.
    I set the properties blocks query only but it still doesn't work.
    Does someone met with this situation?
    Many thanks!

    Hello
    I've just been messing about with a similar problem. Basically, I have a view that involves a join across two tables, I have a data block in my form that's based on the view, and I've written an INSTEAD OF trigger to insert/update/delete from the two tables.
    I was getting the error message 'Cannot insert or update data in a view', and it turned out that the error was happening because the join column between the two tables was the primary key on one of the tables, but the corresponding column on the join table had no unique key on it. This meant that Oracle couldn't establish a one-to-one relationship between rows in the view and rows in the underlying tables. The column on the join table was in fact unique on that table, and adding a unique constraint on that column in the database cured the problem.
    Hope that's of use.
    regards
    Andrew
    UK

  • Want to update data in a view based on multiple tables

    Hi
    I am facing a problem i want to update data in tables using a view. As that view is based on multiple tables so i am unable to update data. i came to know we can update table from view only if view is based on single table. so if anyone knows any alternative please let me know.
    Thanx
    Devinder

    Devinder,
    The table can be updated through a view based on multiple tables, if and only if the table is a "key preserved" table. Rather than explaining myself, i avoided the burden of typing by finding the material in Oracle Docs and pasting it for you :-)
    If you want a join view to be updatable, all of the following conditions must be
    true:
    1. The DML statement must affect only one table underlying the join.
    2. For an INSERT statement, the view must not be created WITH CHECK
    OPTION, and all columns into which values are inserted must come from a
    key-preserved table. A key-preserved table in one for which every primary
    key or unique key value in the base table is also unique in the join view.
    3. For an UPDATE statement, all columns updated must be extracted from a
    key-preserved table. If the view was created WITH CHECK OPTION, join
    columns and columns taken from tables that are referenced more than once
    in the view must be shielded from UPDATE.
    4. For a DELETE statement, the join can have one and only one key-preserved
    table. That table can appear more than once in the join, unless the view was
    created WITH CHECK OPTION.
    HTH
    Naveen

  • Update data from a view

    Hi,
    trying to update data from a view with:
    - Company (table)
    - Products (table)
    In a form, the user wants to update
    e.g: both products.product_name and Company.company_name.
    Is there a way to update a view records built on 2 tables ?
    Any idea will be really appreciated
    Thks

    An other question on INSTEAD OF Trigger:
    Base Tables:
    1.
    SQL> desc pcs_companies;
    Name Null? Type
    COMPANY_ID NOT NULL NUMBER(12)
    COUNTRY VARCHAR2(350)
    COMPANY_NAME VARCHAR2(320)
    COMPANY_PHONE VARCHAR2 (320)
    COMPANY_FAX VARCHAR2(320)
    COMPANY_URL VARCHAR2(150)
    UPDATED_DATE DATE
    2.
    SQL> desc pcs_individuals;
    Name Null? Type
    INDIVIDUAL_ID NOT NULL NUMBER(12)
    COMPANY_ID NUMBER(12)
    FIRST_NAME VARCHAR2(320)
    LAST_NAME VARCHAR2(320)
    LOB VARCHAR2(300)
    JOB_ROLE VARCHAR2(300)
    TITLE VARCHAR2(300)
    GENDER VARCHAR2(3)
    EMAIL VARCHAR2(720)
    FAX VARCHAR2(720)
    PHONE_NO VARCHAR2(720)
    UPDATED_DATE DATE
    COUNTRY VARCHAR2(150)
    ADDRESS_1 VARCHAR2(720)
    ADDRESS_2 VARCHAR2(720)
    ADDRESS_3 VARCHAR2(720)
    CITY VARCHAR2(720)
    3. pcs_individuals.COMPANY_ID = FK, ref pcs_companies.
    4.
    SQL> CREATE VIEW V_PCS_COMPANY_IND
    AS
    SELECT
       i.INDIVIDUAL_ID,
       c.company_id,
       c.country,
       c.Company_name,
       c.company_phone,
       i.Company_id indiv_company_id,
       i.gender,
       i.first_name,
       i.last_name,
       i.lob,
       i.job_role,
       i.title,
       i.email_address,
       i.fax,
       i.phone_no ,
       i.address_1,
       i.address_2,
       i.address_3,
       i.city
    FROM
      pcs_individuals i,
      pcs_companies c
    WHERE
      i.company_id = c.company_id
    5.
    CREATE OR REPLACE TRIGGER PCS_ADMIN.PCS_COMP_IND_UPDATE_TR
    INSTEAD OF UPDATE ON PCMS_ADMIN.V_PCS_COMPANY_IND
    FOR EACH ROW
    begin
    update PCS_COMPANIES
    set
         Company_name = nvl(:new.company_name,company_name),
         company_phone = nvl(:new.company_phone,company_phone)
    where company_id = :new.company_id;
    update PCS_INDIVIDUALS
    set
         gender = nvl(:new.gender,gender),
    first_name = nvl(:new.first_name,first_name),
         last_name = nvl(:new.last_name,last_name),
         lob = nvl(:new.lob,lob),
         title = nvl(:new.title,title),
         email_address = nvl(:new.email_address,email_address),
    phone_no = nvl(:new.phone_no,phone_no),
         fax = nvl(:new.fax,fax),
         country = nvl(:new.country,country),
         address_1 = nvl(:new.address_1,address_1),
         address_2 = nvl(:new.address_2,address_2),
         address_3 = nvl(:new.address_3,address_3),
         city = nvl(:new.city,city)
    where company_id = :new.company_id;
    end PCMS_COMP_IND_UPDATE_TR;
    6.
    CREATE OR REPLACE TRIGGER PCS_ADMIN.NEW_COMPANY_ID_INSERT
    INSTEAD OF INSERT ON PCS_ADMIN.V_PCS_COMPANY_IND
    DECLARE
    ID number;
    BEGIN
    INSERT INTO pcs_companies (org_id)
    select v_pcs_comp_id_seq.nextval
    into ID
    from dual;
    :new.company_id = ID;
    INSERT INTO pcs_individuals (company_id)
    select v_pcs_comp_id_seq.nextval
    into ID
    from dual;
    :new.company_id = ID;
    end;
    My question
    On point 6:
    Assumption:
    - Company_id is PK of pcs.Company and FK in pcs.individuals
    - It should be feed by sequence (v_pcs_comp_id_seq)
    Now how can i insert the same value for company_id (current.v_pcs_comp_id_seq) in both pcs_companies and pcs_individuals ? I've tested it in the above INSTEAD OF Trigger.It failed.
    Thks for any advice,
    lamine

  • Update Data From DBGrid

    Hi All,
    I'm trying to write a program to update the DB informations.
    For example, an Invoice Maintenance program that involve 2 tables,
    Invoice Header and Invoice Details. I load the Invoice Details
    records from db table to a DBGrid for user update and call a PHP
    program using mx:HTTPService to write the updated data to db.
    I would like to know how can I check the dbGrid that only
    modified rows will pass to the HTTPService to updating? Or I need
    to pass all rows one by one to HTTPService and update the records
    one by one? Also is it only possible to pass one row every time
    when I call the httpService or I can pass the whole dbGrid and
    extract row by row in the php program?
    If this problem can be solved I think I can complete the
    system without any big problem (except printing ;-) )
    Thanks a lot!
    Wilson

    Using the edit events, I would store a list of the item
    indexes that have been changed. Then use that list to return and
    build an xml string, and post it to the server via HttpService.
    Tracy

  • Update data from cube to cube in BW 3.5

    Dear Experts,
            Can we update data from one cube to another cube in BW 3.5. i tried it, I created the connection between two cubes as i did in ods to cube through update rules but there is no option like in ods to send the data(update dso data to data targets).Please help me on this.

    hi arvind,
           Thanks, but i have some doubt again, i did it and also data transfered to the second cube, but after creating the connection i went to bi7 in infosource and there i found that cube name starting with 8(cube name), but my question is can i do it in bw3.5 without going to rsa1.

Maybe you are looking for

  • Sub query in where clause

    I have the following code which keeps throwing an error: select distinct game_code, count(player_id) from customer_data.cd_nhl_gm_tender_stats t where  (select distinct player_id from customer_data.cd_nhl_gm_tender_stats where season_id = 200818) gro

  • Mail to a large number of

    HI I was wondering if there exists a software that handles group mails for a large number of recipients (like 400 adresses) at one time. I think mail doesn't accept more than 50 adresses /mail at a time. I used to use a PC based software called sarba

  • FF4580 unable to connect Wireless - Windows 8

    I have historically used the HP F4580 on XP and Windows 7 but not wirelessly.  I have a new PC running Windows 8 64 Bit and am trying to re install the F4580 but would prefer it to run wirelessly. I have downloaded the software and drivers from the H

  • Accessing pdfs through jsp content tags from content server!!!!!

    hi, i have uploaded few images in content server which i can access by dis syntax <ad:adTarget query="adAltText='intraday'" height="200" width="200"/> or <ad:adTarget query="image_name=='first'"/> but for accessing pdfs.. <ad:adTarget query="title=='

  • After Effects 6.5 funzt nicht?

    Also ich habe folgendes Problem: Wenn ich AE installiere, was einwandfrei funktioniert, und es danach starten will, geht nichts mehr.. Das heißt: Sobald ich das Programm starte und alles fertig geladen hat, friert das Programm ein und ich muss es übe