You will need to insert update column with the username?

Hi all

I'm new to this forum of the apex. New to apex as well.

My question is do we have a form and a single column is editable by the user. whenever an update to this column, I need to write their name in the update column.

I heard that we can do with trigger using the variable app_user. But in our project, they made authentication ldap for this form and when an employee login with their company login id they can see only this form of apex. no other option.

In the same form, they were able to show the user name. I checked how they did it. they used * & user * variable for this. , It makes sense for you gentlemen?

all I have to do is insert this & user in the column value.

How to do this. I'm started working in the apex for the past four days alone. willing to bare with me if im a very stupid question.

Thank you
knani

PS: I know that what im asking is the user name for the Web page the user name of the apex.

Published by: kart on May 26, 2010 11:45

Hello

You can use: APP_USER substitution string.
If you like to use that in the syntax of database trigger is v('APP_USER') for example

:NEW.CHANGED_BY := NVL(v('APP_USER'), user);

BR, Jari

Tags: Database

Similar Questions

  • You will need to insert linebreak after 64 letters in a long chain.

    Hi friends,

    I'm known CF - 11. I'm trying to insert the line break after 64 letters and do not know how to change under the line. Kindly help. and also if possible please explain below the line.

    < cfset outstr & = Mid(instr,p,64) & #Chr (13) # >

    Thank you

    My code as follows.

    < cfset instr = rereplace (arguments.value, "#chr (10) #","", "all") >

    < cfset instr = rereplace (instr, "#chr (13) #","", "all") >

    < cfset instr = trim (instr) >

    < = cfloop '1' to = "#len (instr)" # "index = stage"p"="64">"

    < cfset outstr & = Mid(instr,p,64) & #Chr (13) # >

    < / cfloop >

    Currently I get a long string with a space after 64 letters as output.

    You could probably eliminate the cfloop altogether, as you use the regex to replace.

    So guide me through your code.

    You replace all Chr (10) and Chr (13) with nothing else, then you cut the string.  Then you loop and insert just a Chr (13) every 64th position.

    As far as I know, if you use the Windows CF server, the two Chr (13) AND Chr (10) are the lines break/carriage return codes.

    In addition, do not use hashmarks (#) for variables, unless the variable is to be transmitted to the screen, or is in the string delimiters.  (Do is not recommended.)  Remove the # s around the chr (13).)

    Hmm... I have not tested this, but try the following:

    
    
    
    
    
    

    Let me know if it works.

    HTH,

    ^_^

    UPDATE: I had the chance to test, and with two minor corrections, it works.

    {64})',' \1#chr(13) & Chr (10) #.
    (', 'all') / > the
    will display line breaks in the browser, but without it, you can see the line breaks if "View you Source" page.

  • You will need to use my scanner with PS CC 2015!

    I have a MacBook Pro OS 10.10.5 Yosemite and I cannot understand how to use TWAIN or any other method to use my scanner. Help?

    [Ask in the correct forum allows... Left generic Cloud/Setup forum for forum specific program... MOD]

    Hi mrsfuss,

    Refer to this article: Scanner TWAIN plugin

    Kind regards

    Claes

  • How to update columns with the value of other lines in the same table

    Hello

    I use Oracle 11.2, I'd use SQL statements to update a column based on values in other rows in the same table. Here are the details:

    create table TB_test (number 4 myId, crtTs date, date of MDPU);

    insert into tb_test (1, to_date ('20110101', 'YYYYMMDD'), null);
    insert into tb_test (1, to_date ('20110201', 'YYYYMMDD'), null);
    insert into tb_test (1, to_date ('20110301', 'YYYYMMDD'), null);
    insert into tb_test (2, to_date ('20110901', 'YYYYMMDD'), null);
    insert into tb_test (2, to_date ('20110902', 'YYYYMMDD'), null);

    After you run the SQL code, I would like to have the following result:

    1, 20110101, 20110201
    1, 20110201, 20110301
    1, 20110301, null
    2, 20110901, 20110902
    2, 20110902, null

    Thanks for your suggestion.

    I guess you need this, otherwise please explain logic correctly:

    SQL> merge into tb_test t
      2  using (
      3    select rowid as rid
      4         , lead(crtts) over(partition by myid order by crtts) as updts
      5    from tb_test
      6  ) v
      7  on (t.rowid = v.rid)
      8  when matched then update
      9   set t.updts = v.updts
     10  ;
    
    5 rows merged.
    
    SQL> select * from tb_test order by 1,2;
    
          MYID CRTTS     UPDTS
    ---------- --------- ---------
             1 01-JAN-11 01-FEB-11
             1 01-FEB-11 01-MAR-11
             1 01-MAR-11
             2 01-SEP-11 02-SEP-11
             2 02-SEP-11
    
  • You will need to download older version, because the computer crashed.

    I recently had my computer crash.  I need to reinstall my applications, but they are old versions and not listed.  Now what?

    You can probably (depends on what age) download trial versions of the software through the site linked below and then use your current serial number to activate.

    Don't forget to follow the steps described in the Note: very important Instructions in the section on the pages of this site download and have cookies turned on in your browser, otherwise the download will not work correctly.

    http://prodesigntools.com/tag/DDL

  • Querying the oracle table that has a column with the name of "FILE".

    Hi all

    I need to have an oracle table that has the column with the name "FILE".

    I can query all columns with the query "select * from table".

    But I'm not able to use the query "select the table file.

    This table is converted from ms access to oracle and I need to have this column with the name "FILE".

    Any suggestions?

    Thank you

    Abdellaoui

    Hello

    FILE is a keyword from Oracle, so it's not a good name,

    Use FILEDATE, or DATE_FILED, or something else that is not in V$ RESERVED_WORDS. KEYWORD as the name column.

    If you need to use the FILE, then you must use quotation marks.

  • I can't update my CS5 because I loaded Yosemite on my iMac. you will need to update the files camera raw.

    I can't update my CS5 because I loaded Yosemite on my iMac.  You will need to update the raw files.

    Please try and reinstall CS5: stalling-yosemite-version-10-10-on-imac http://feedback.photoshop.com/photoshop_family/topics/problems-with-photoshop-cs5-after-in it seems that the update of the OS is corrupt PS CS5 if it was installed before the upgrade to Yosemite. Let me know if that will fix it for you.

    With the permission of Jeffrey Tranberry

  • You will need to check on a PC with WinXP OpSys PUP. Could DO with Win98 and earlier versions. HOW can I make WinXP let me control BACK Pup?

    You will need to check on a PC with WinXP OpSys PUP.  Could DO with Win98 and earlier versions.  HOW can I make WinXP let me control BACK PUP?   Acquired CNC machines controlled by PRE - Win.XP PC works fine.  But Win.XP prevents the PUPPY control via simple BACK and GWBASIC.   You want to be able to start/stop all 8 bits of data PUP with BASE and BACK.

    Thank you.   Jan Rowland

    Hey Jan Rowland,

    Your question is more complex than what is generally answered in the Microsoft Answers forums. It is better suited in the Windows XP Pro on the Technet Forums.

    Post your query in Technet Windows XP IT Pro Forums for assistance on this issue.
  • you will need to update my version no CC in lightroom (the last update, 6.2 I think). where can I find this CC download no

    you will need to update my version no CC in lightroom (the last update, 6.2 I think).

    The latest version is 6.3, go to the Help Menu and there are updates... choose.

  • you will need to merge with (same drive) c: drive d: drive.

    c: drive is full

    Unless you want to do a clean install of Windows (do your partitioning during installation), you will need partitioning software third party to do so. I usually use Acronis Disk Director, but there are others. MS - MVP - Elephant Boy computers - don't panic!

  • How do you get the invisible/visible or hidden columns with the box?

    Hi, I'm doing a column in a table visible or invisible when I click on a check box or a button.

    I have a table row with mutiple columns of text objects in, I put the "repeat for each line item data" 4 minutes, so I have four displayed on the page.

    I put the box with the following script, but it's only the first line of "Received" visible when I click on the check box. and not the other

    3 «received» textobjects.

    example:

    Form1.PurchaseOrder.ProductHeader.Receivedchkbox::click - (JavaScript, client)

    If (this.rawValue == '1') {}
    Form1.PurchaseOrder.ProductDetails.detail.received.presence = "visible";
    Form1.PurchaseOrder.ProductDetails.detailHeader.StaticReceived.presence = "visible";
    }
    on the other
    {
    Form1.PurchaseOrder.ProductDetails.detail.received.presence = "invisible";
    Form1.PurchaseOrder.ProductDetails.detailHeader.StaticReceived.presence = 'invisible '.


    }

    So what I try to achieve is to shape make the textobject "Receipts", "invisible or hidden" by default.

    Then when filling out form click on the checkbox it become visible, and vice versa.

    So how I apply a script like this to hide all instances of "Received" 4 and also new I add by addinstance script?

    I have attached the form, if someone could give me a help to develop it?

    Thank you!!!

    Hello

    It does help to see the form!

    Basically, you will need to loop through all instances of the detail row and change the presence of the object received individually.

    First the script calculates the number of lines:

    var vRows = Productdetails._detail.count;
    

    The use of _ before repeating detail is a shortcut for instanceManager.

    Then the if statement would change a little, with the insertion of a statement that works across all four lines.

    if (Receivedchkbox.rawValue == true) {
         form1.purchaseOrder.Productdetails.detailHeader.StaticReceived.presence = "visible";
         for(var i=0; i
    
    Attached form.
    Good luck
    Niall
  • This device cannot find enough free resources that it can use. If you want to use this device, you will need to disable one of the other devices on this system (Code 12)

    Guys, I have a problem. So, my laptop has 2 graphics cards, an integrated course of the Intel HD graphics (which works perfectly) and the other being the dedicated Nvidia graphics (Nvidia GeForce 940 m). Until 2 days ago, everything was going well and running.

    I have the application experience GeForce and it prompted me that there is a new driver update should I download. He started to install then after rebooting to complete the installation, it failed. I checked my device manager and saw a yellow exclamation under under my Nvidia graphics card (remember, my laptop has two graphics cards: Nvidia graphics card and Intel HD graphics that works correctly). I immediately checked the details, and he said:

    "This device cannot find enough free resources that it can use. (Code 12) »

    "If you want to use this device, you will need to disable one of the other devices on this system."

    This seemed very strange, because it was LITERALLY working properly before I was invited about update driver I got, so I don't know what to do - as a matter of fact, literally, I finished this game, Deadpool, with my Nvidia card that I put as the default graphics card, a few hours before , so I don't know why this happened. Any help? I'm looking for a logical answer to this, guys!

    Additional information:

    A few days before this happened, I went to my store local pc and installed an extra 4 gigs of ram on my 4 existing to make 8. Don't know if it's useful, but anyway

    If I pick up my laptop and shake it side by side, I hear a slight rattling noise, and it seems a little loose (I found this out after seeing the error message). The noise seems to come from just below the middle of my keyboard (I'm using a laptop). If for some reason, my Nvidia card is loose? Is this possible?

    I am quite technologically inclined, but not to the extent of removing components and reconstruction cell phones / pc and access the bios and what not. I can only remove/add ram.

    I want to know if its something I am able to fix it because I do not necessarily want to go running and sending my laptop places - only my pc up shop.

    Here is the location of my Nvidia card: PCI Slot 4 (PCI bus 4, device 0, function 0)

    My specs:

    Acer TravelMate p257-MG

    Windows 7 business

    Intel core i5-5200u 2.20 GHz 2.20 Ghz processor

    8.00 GB of ram

    64-bit operating system

    1 t hard drive

    940 m Intel HD graphics 5500 & Nvidia Geforce card

    Just to recap, I get the error on my Nvidia graphics card code, "this device cannot find enough free resources that it can use. (Code 12) ""If you want to use this device, you will need to disable one of the other devices on this system. »

    Thanks in advance!

    Hello

    Thank you for your response.

    I appreciate your time.

    I suggest you run ' Intel Chipset Software Installation Utility ' and check.
    Reference:
    http://www.Intel.com/content/www/us/en/support/software/Chipset-Software/Intel-chipset-software-installation-utility.html

    Please keep us updated.

    Thank you

  • Siri keeps saying "I don't see an app for that.  You will need to download one. »

    I just installed Sierra and tried to use Siri.  I can't open any app on my Mac.  No matter when I say something like, "FaceTime open" or "Open Pages," Siri comes back with something like "I don't see an app for that.  "You will need to download a ' or 'you don't seem to have an app called 'Pages'.  We could see if the App Store has it. »

    Hmmm... This is not sensible.

    You need to speak clearly. I had the same thing happen. It took a few tries but Siri has finally opened apps for me.

    Practice support

  • You will need administrator permission.

    This error has become a nightmare for me. I've been struggling with almost a week now.

    I am trying to copy file from my hard drive on my new laptop (windows 7, dell 14z). Some files are throwing error, you will need administrator permission to copy this file, in spite, I logged in as an administrator.
    I gave all the tests with the evolution of the property, all permissions, removing UAC all... no help at all.... PLEASE suggest something.
    SARA

    This occurs because the files on your desk belong to a user that is different from the user of the laptop (or different passwords). In asserting the admin rights every time, you tell Windows that you don't care about file property. There are two ways to solve the problem:

    • Use the same account & password on the laptop that you use on the desktop.
    • Take ownership of files and folders: http://social.answers.microsoft.com/Forums/en-US/w7network/thread/24bdf172-2dbc-43b8-995d-a99b6a81413c/
    If it does not, then it is likely that your files are encrypted. You must decrypt before copying them.
  • You will need to get an older date?

    HI: SQL and PL/SQL

    I have a table like this. You will need to get more old datetime for each metricno. Need help

    METRICNOTDATESUWIMON
    1109:13:14 10/01/20141200.00
    1109:13:23 10/01/2014100.00
    1118:47:01 10/02/201410000.00
    1210/01/2014-18:47:171100.00
    1221:59:58 10/01/20142000.00
    1210/03/2014 22:00:1310000.00
    1310/07/2014 22:01:28500.00
    1310/08/2014-22:03:081100.00

    Output

    METRICNOTDATETRANSFER_AMOUNT
    1109:13:14 10/01/20141200.00
    1210/01/2014-18:47:171100.00
    1310/07/2014 22:01:28500.00

    Thank you/Tequila

    with

    a_table as

    (select 11 metricno, adate to_date('1/10/2014 9:13:14 AM','dd/mm/yyyy hh:mi:ss AM'), 1200.00 suwimon Union double all the)

    Select 11, to_date('1/10/2014 9:13:23 AM','dd/mm/yyyy hh:mi:ss AM'), 100.00 Union double all the

    Select 11, to_date('2/10/2014 6:47:01 PM','dd/mm/yyyy hh:mi:ss AM'), 10000.00 Union double all the

    Order 12, to_date('1/10/2014 6:47:17 PM','dd/mm/yyyy hh:mi:ss AM'), 1100.00 Union double all the

    Order 12, to_date('1/10/2014 9:59:58 PM','dd/mm/yyyy hh:mi:ss AM'), 2000.00 Union double all the

    Order 12, to_date('3/10/2014 10:00:13 PM','dd/mm/yyyy hh:mi:ss AM'), 10000.00 Union double all the

    Select 13, to_date('7/10/2014 10:01:28 PM','dd/mm/yyyy hh:mi:ss AM'), 500.00 per union double all the

    Select 13, to_date('8/10/2014 10:03:08 PM','dd/mm/yyyy hh:mi:ss AM'), double 1100.00

    )

    Select metricno, adate, suwimon

    of (metricno, adate, suwimon, rank (select) over (partition by order metricno by tdate) rnk

    of a_table

    )

    where rnk = 1

    METRICNO TDATE TAMOUNT
    11 01/10/2014 1200
    12 01/10/2014 1100
    13 07/10/2014 500

    Just to provide your data in the case of other ideas arise

    Concerning

    Etbin

Maybe you are looking for