Store user information in the specific table

I created the new table where I want to store the application user data,
ex: if I connect in the apex with user 'john' and make changes in the specific application report, I want to insert into the created table information, user who are chaneges in the folder - directed by: john for example...

Sorry for my English, I hope understand you what I want to do...

any ideas?

Published by: Regent1904 on November 3, 2009 02:52
CREATE or REPLACE TRIGGER dave

BEFORE UPDATE
ON VIZIT_FULL
FOR EACH ROW
BEGIN
  :NEW.users := V('APP_USER');
END; 

Try it like this.

: NEW.users specifies the new value of the users who is updated column.

Van
Trent

Published by: tr3nton on November 3, 2009 21:06

Tags: Database

Similar Questions

  • How to pre-fill the user information during the operation to assign tasks

    Hello

    I have a requrirement to pre-fill fields of the form (name, Email, phone etc) when a task is assigned to a user. Users are dynamically specified, so I use the user to find and services to assign tasks to locate and assign them to the user. Since I was a user variable that is the result of the operation of the user to find, I was hoping to get the user information with the attributes of the type of user.

    I tried to use the service to set the value to set the form field (Email) with the email of the user that is object type attribute

    / process_data/MyForm/Object/Data/XDP/datasets/Data/Form/User/email-> /process_data/facilityAuthority/object/@email

    However I get the following error when I try to do - com.adobe.idp.dsc.util.InvalidCoercionException: can not compel object: [B@335d of the type: [B type: interface org.w3c.dom.Document.]]

    Is it possible to retrieve information from the user to the user object? If yes how values for the attributes of the user (name, Email and phone etc...) so that I can fill in the form?

    Thank you
    Nicolas

    Hello

    Please cast chain e-mail before you assign it.

    Example of

    / process_data/MyForm/Object/Data/XDP/datasets/Data/Form/User / email-> string (process_data/facilityAuthority/object/@email)

    For more details, please refer to the forum http://forums.adobe.com/thread/492826

    Thank you

  • Get user information in the shared queue

    Hi all

    The case is:

    -My queue shared by some users (say a, B C abd)

    -After a task assigned to me, I want to send email to all the user shared my queue (i.e. A, B and C)

    Would like to know if there is a way to find the user information (login id, UID, etc...), so I can find it address e-mail?

    Thanks in advance.

    Concerning

    Bill

    What about using the ( getUsersWithAccessToTask) API of the Task Manager? See http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/javadoc/com/adobe/idp/taskman ager/dsc/client/task/TaskManager.html.

    As for you question event, you could take advantage of the TaskComplete event to receive a notification when the task is completed. This way you will get the email only when the task is completed.

    Jasmine

  • donot find 50001 user id in the HSP_USERS table

    Hi all

    I use EMP 11.1.1.1.0 and that you want to import a planning application. In one of the threads I read that you should keep a backup of the SID of the HSP_USERS table in the schema where the USER) iD = 50001.

    But I donot have a record in the HSP_USERS table with this userid (50001).

    Please can someone explain why I didn't...

    Thanks in advance...

    Alicia

    Hello

    Sometimes you don't have to update all the records in the HSP_USERS table, if migration is between applications that use the same shared services then you too need planning.
    Also, if you have created the application of planning with the admin account by default as it does not change between environments.

    If you do not need to change, to change the record where the role = 3, make sure that it is the same username between environments as well.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Definition of user access to the specific context.

    Hi experts,

    I have a requitement

    We have some limitations for the user to access specific scenarios. But what is happening is that these users can able to run scenarios in any CONTEXT.

    If we want to restirict the user to access a specific context, how can we do?

    Please advice...

    concerned,
    K

    Hi K,

    Adding a few more points to the previous answer,

    user10439173 correct me if I'm wrong... :)

    1 duplicate the CONNECTION profile provided with ODI (Sunopsis) and rename the copy as MY NG CONNECT.
    2. in the new MY NG CONNECT profile, for the purpose of 'Context', on the ' * view * ""Definition"of the method tab, uncheck"class Privilege ".
    3. assign the new profile MY NG CONNECT to targeted users ODI (Sunopsis).
    4 create/update the user with this profile. Finally, drag & drop on each user name, the contexts to which access must be allowed (since the topology Manager).

    Thank you
    G

  • Query information from the parent table and a row of child table information

    I have trouble writing a query that should not really be this hard. Just my brain isn't working today. I went in circles asking myself,... "Why doesn't this work! ... Shouldn't this work"... in any case

    I have a table of PEOPLE and a table of ADDRESSES. A person can have multiple addresses (one to many). We are not address the scenario of "what-if" of a single address belonging to several different people, that is close.

    PEOPLE

    -----------------------

    Person_Id PK

    First name

    Last_name

    ADDRESSES

    ------------------------

    Address_Id

    Subscription_type

    Address_Info

    Person_id FK

    Address_types include: WPA, HPA, WMP, HMP, and HMA

    I want to be able to pull a name of people and a specific address for the user. A person can only have one type of address that are associated with them, or they may have four different address types associated with them. The query should look to see if they have an address type of WPA, first. If they do, then enter the Address_Info for this address type. If they are not, then watch to see if they have a subscription_type of HMA. If so, enter their details. If they have not, then fair value must be set to zero.

    I tried to use the case statements and decodes and I get several lines for people who have an address type of WPA and HMA. I just need a line, but I have a problem. Any help on this would be greatly appreciated. Thanks in advance. This should be simple enough for you gurus out there. Not so much for me if

    Something like:

    WITH AN ACE)

    SELECT DISTINCT PERSON_ID,

    NVL)

    MAX)

    SUBSCRIPTION_TYPE CASE

    WHEN 'WPA' THEN ADDRESS_INFO

    END

    ) OVER (PARTITION BY PERSON_ID).

    MAX)

    SUBSCRIPTION_TYPE CASE

    WHEN "HMA" THEN ADDRESS_INFO

    END

    ) OVER (PARTITION BY PERSON_ID)

    ) ADDRESS_INFO

    ADDRESSES

    WHERE SUBSCRIPTION_TYPE IN)

    "WPA."

    "HMA.

    )

    )

    SELECT PERSON_NAME,

    ADDRESS_INFO

    PEOPLE P,.

    A

    WHERE P.PERSON_ID = A.PERSON_ID (+)

    /

    SY.

  • jQuery selector to go through all the rows of the table in the specific table column

    Hello

    I am in the situation when I need to disable some of the cells in a table, when the value in another cell in a table is equal to a value.

    for example, I need to disable the value of Column2, what value in the same row in Column1 = 1.

    I created the dynamic action (DA), which is triggered after the update of the region on the page.

    And now I wonder how to build the code for the dynamic action. I think jQuery is the right approach, but I've yet to find useful example. I think I need to loop through the array, check the value in the required column and disable the value reconnect with in another column if necessary.

    I created an example on apex.oracle.com.

    [www.apex.oracle.com | http://www.apex.oracle.com]
    name of user/passwd
    [email protected]/kurintest

    workspace
    kurintest

    application:
    Application 54076 - jQUery selector


    In this app. I would like to disable the second column of the table in a table (rated) what value in the first column (REGION_ID_DISPLAY) = 1 or 3.

    I want to user as identifiers table headers to avoid problems when the column will be moved to another position.

    Could someone help me in this task (perhaps very easy)?

    Thanks in advance!

    -Jiri

    Published by: Jiri n. 23 August 2012 01:31

    Hey Jiri,

    $('td[headers="REGION_NAME"] input:text')
    
    
    returns a HTMLInputElement, wheras the function addClass is a jQuery specific function.
    
    If you wrap the HTMLInputElement in a jQuery object like this:
    
    $($('td[headers="REGION_NAME"] input:text')[i]).addClass('apex_disabled');
    
    you get the desired result.
    
    regards,
    Erik-jan                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    
  • Show only user information after the connection

    Hello world

    I hope someone can help me please, I'm new to databases and programming.

    OK, I just created my first page of the login of the user (using the dreamweaver builtin functions).  Nowi have successfully built a MySQL database, insert a table with username, userPass and e-mail.  The login page works correctly and redirects to the authorized page

    Now, this is where I get lost.  On the authorized page, I want that it lists the information related to that user only, IE display their username and your email address.  What I can't work.  I'm sure you must filter to show only the logged-in user, but I can't see anything at all.

    Help, please

    My login page

    <?php require_once('Connections/connection.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") 
    {
      $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;    
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      }
      return $theValue;
    }
    }
    mysql_select_db($database_connection, $connection);
    $query_users = "SELECT * FROM tbl_users";
    $users = mysql_query($query_users, $connection) or die(mysql_error());
    $row_users = mysql_fetch_assoc($users);
    $totalRows_users = mysql_num_rows($users);
    ?><?php
    // *** Validate request to login to this site.
    if (!isset($_SESSION)) {
      session_start();
      if (isset($_POST['userName'])) {$_SESSION['userName'] = $_POST['userName'];}
    }
    $loginFormAction = $_SERVER['PHP_SELF'];
    if (isset($_GET['accesscheck'])) {
      $_SESSION['PrevUrl'] = $_GET['accesscheck'];
    }
    if (isset($_POST['username'])) {
      $loginUsername=$_POST['username'];
      $password=$_POST['password'];
      $MM_fldUserAuthorization = "";
      $MM_redirectLoginSuccess = "index.php";
      $MM_redirectLoginFailed = "login.php";
      $MM_redirecttoReferrer = false;
      mysql_select_db($database_connection, $connection);
      
      $LoginRS__query=sprintf("SELECT userName, userPass FROM tbl_users WHERE userName=%s AND userPass=%s",
        GetSQLValueString($loginUsername, "text"), GetSQLValueString($password, "text")); 
       
      $LoginRS = mysql_query($LoginRS__query, $connection) or die(mysql_error());
      $loginFoundUser = mysql_num_rows($LoginRS);
      if ($loginFoundUser) {
         $loginStrGroup = "";
        
        //declare two session variables and assign them
        $_SESSION['MM_Username'] = $loginUsername;
        $_SESSION['MM_UserGroup'] = $loginStrGroup;       
        if (isset($_SESSION['PrevUrl']) && false) {
          $MM_redirectLoginSuccess = $_SESSION['PrevUrl']; 
        }
        header("Location: " . $MM_redirectLoginSuccess );
      }
      else {
        header("Location: ". $MM_redirectLoginFailed );
      }
    }
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    </head>
    <body>
    <form id="form1" name="form1" method="POST" action="<?php echo $loginFormAction; ?>">
      <label>User Name:
      <input type="text" name="username" id="username" />
      </label>
      <p>
        <label>Password:
        <input type="password" name="password" id="password" />
        </label>
      </p>
      <p>
        <label>
        <input type="submit" name="submit" id="submit" value="Submit" />
        </label>
      </p>
    </form>
    </body>
    </html>
    <?php
    mysql_free_result($users);
    ?>
    
    

    My page authorized

    <?php require_once('Connections/connection.php'); ?>
    <?php
    //initialize the session
    if (!isset($_SESSION)) {
      session_start();
    }
    // ** Logout the current user. **
    $logoutAction = $_SERVER['PHP_SELF']."?doLogout=true";
    if ((isset($_SERVER['QUERY_STRING'])) && ($_SERVER['QUERY_STRING'] != "")){
      $logoutAction .="&". htmlentities($_SERVER['QUERY_STRING']);
    }
    if ((isset($_GET['doLogout'])) &&($_GET['doLogout']=="true")){
      //to fully log out a visitor we need to clear the session varialbles
      $_SESSION['MM_Username'] = NULL;
      $_SESSION['MM_UserGroup'] = NULL;
      $_SESSION['PrevUrl'] = NULL;
      unset($_SESSION['MM_Username']);
      unset($_SESSION['MM_UserGroup']);
      unset($_SESSION['PrevUrl']);
     
      $logoutGoTo = "login.php";
      if ($logoutGoTo) {
        header("Location: $logoutGoTo");
        exit;
      }
    }
    ?>
    <?php
    if (!isset($_SESSION)) {
      session_start();
    }
    $MM_authorizedUsers = "";
    $MM_donotCheckaccess = "true";
    // *** Restrict Access To Page: Grant or deny access to this page
    function isAuthorized($strUsers, $strGroups, $UserName, $UserGroup) { 
      // For security, start by assuming the visitor is NOT authorized. 
      $isValid = False; 
      // When a visitor has logged into this site, the Session variable MM_Username set equal to their username. 
      // Therefore, we know that a user is NOT logged in if that Session variable is blank. 
      if (!empty($UserName)) { 
        // Besides being logged in, you may restrict access to only certain users based on an ID established when they login. 
        // Parse the strings into arrays. 
        $arrUsers = Explode(",", $strUsers); 
        $arrGroups = Explode(",", $strGroups); 
        if (in_array($UserName, $arrUsers)) { 
          $isValid = true; 
        } 
        // Or, you may restrict access to only certain users based on their username. 
        if (in_array($UserGroup, $arrGroups)) { 
          $isValid = true; 
        } 
        if (($strUsers == "") && true) { 
          $isValid = true; 
        } 
      } 
      return $isValid; 
    }
    $MM_restrictGoTo = "login.php";
    if (!((isset($_SESSION['MM_Username'])) && (isAuthorized("",$MM_authorizedUsers, $_SESSION['MM_Username'], $_SESSION['MM_UserGroup'])))) {   
      $MM_qsChar = "?";
      $MM_referrer = $_SERVER['PHP_SELF'];
      if (strpos($MM_restrictGoTo, "?")) $MM_qsChar = "&";
      if (isset($QUERY_STRING) && strlen($QUERY_STRING) > 0) 
      $MM_referrer .= "?" . $QUERY_STRING;
      $MM_restrictGoTo = $MM_restrictGoTo. $MM_qsChar . "accesscheck=" . urlencode($MM_referrer);
      header("Location: ". $MM_restrictGoTo); 
      exit;
    }
    ?><?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") 
    {
      $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;    
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      }
      return $theValue;
    }
    }
    $colname_Recordset1 = "-1";
    if (isset($_SERVER['MM_Username'])) {
      $colname_Recordset1 = $_SERVER['MM_Username'];
    }
    mysql_select_db($database_connection, $connection);
    $query_Recordset1 = sprintf("SELECT * FROM tbl_users WHERE userName = %s", GetSQLValueString($colname_Recordset1, "text"));
    $Recordset1 = mysql_query($query_Recordset1, $connection) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    $totalRows_Recordset1 = mysql_num_rows($Recordset1);
    ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    </head>
    <body>
    <p align="center">WELCOME <strong><?php echo $row_Recordset1['userName']; ?></strong>,</p>
    <p align="center">IF YOU ARE VIEWING THIS PAGE THEN YOU HAVE SUCCESSFULLY LOGGED IN</p>
    <p align="left"> <a href="<?php echo $logoutAction ?>">Log out</a></p>
    </body>
    </html>
    <?php
    mysql_free_result($Recordset1);
    ?>
    

    You have selected the wrong option in the fields of the Recordset dialog box filter. You have chosen Server Variable. It is expected the Session Variable.

  • How to find all the views or other objects in the database that contains the specific table (table Employee of exodus) in the oracle database?

    I want to find all objects in the DB which contain a perticular table in a specific schema.

    If there is a question about SQL Developer functionality is simple - click on the table in the connection browser and find the "Dependencies" tab on the right

    Philippe

  • How to store an index in a specific table space?

    Hi all...
    I use Oracle 10.2.0.

    Is it possible to store an index in a table space, with the same create index syntax?

    I tried the following syntax:
    create index index_name on table_name (column_name) tablespace index_tablespace;
    and I get the following error:

    ERROR on line 1:
    ORA-02216: tablespace name EXPECTED


    Any help would be appreciated.

    Latvian83 wrote:

    create index index_name on table_name (column_name) tablespace index_tablespace;
    

    Is index_tablespace of the EXACT name of the tablespace in which you try to create indexes? I bet - it isn't. If so, then probably tablespace name you use is a key word / booked. For example:

    SQL> create table table_name(column_name number);
    
    Table created.
    
    SQL> create index index_name on table_name (column_name) tablespace as;
    create index index_name on table_name (column_name) tablespace as
                                                                   *
    ERROR at line 1:
    ORA-02216: tablespace name expected
    
    SQL> create index index_name on table_name (column_name) tablespace date;
    create index index_name on table_name (column_name) tablespace date
                                                                   *
    ERROR at line 1:
    ORA-02216: tablespace name expected
    
    SQL> 
    

    SY.
    P.S. Next time post exact code.

  • information about the specification

    Is the hp pavilion g6-1d28dx 2 core?

    HP product information page indicates that there CPU Intel Pentium B940, but don't watch not carrots.

    Intel shows this CPU to have 2 hearts.

    Thank you

    Hello:

    The processor is a dual core. HP does not always define the CPU cores.

    http://ark.intel.com/products/55626/Intel-Pentium-Processor-B940-(2M-Cache-2_00-GHz)

    Sometimes, you will need to consult the service manual under the description of the product for more details.

    You will see the B series processors, also listed as a dual core processors in Chapter 1, page 1.

    (Intel Pentium B950 (2.1 GHz, 2 MB L3 cache), double 35 W)

    http://h10032.www1.HP.com/CTG/manual/c03094202.PDF

    Why the manual does not have listed same 940 processor, I don't know.

    Paul

  • How to display the information in the employee table based on the salary in different ranges.

    I have a table that is used with the details of the employee. I want that employees on the basis of the order of the salary range for the list. For eg., list of employees that are there, I first list salary range 1000-3000 and 3000-5000, then 5000-10000. How to write sql queries to solve this problem? your answers are appreciated.

    something like that

    select t.*,
          case
            when sal between 1000 and  3000 then 1
            when sal between 3000 and  5000 then 2
            when sal between 5000 and 10000 then 3
            else 99
          end range
      from scott.emp t
      order by range, 1, 2;
    
  • With regard to the supply of a user database of the Access Tables

    Hello

    I just finished with the installation of IOM 9101 and upgradation of 9101 to 9102. I am facing a little weird. When I try to create a TAG for Tables of database Access, I am not able to see the Tables of database Access option in the drop down menu to the Transport provider.

    I am a bit confused whether I'm wrong updated the system or if at all, I missed a step. Although IOM seems to be ok and works fine.

    Any suggestions on how to fix this?

    Concerning
    Nikhil

    Reinstall the connector using the connector installer of the IOM again. That should solve the problem.

  • View the information from the related table instead of the ID in several line datablock

    Hello

    I searched on the web, the forum and the documentation, but I have not found a solution to this problem:

    I have two tabs with a relationship of the master / detail of one-to-many. Block detail data shows several lines such that it can be several associations table of mater in the details and I want to display the description of the master data block instead of the field with the ID for each line in the block of retail.

    I tried to place an item with the option 'copy value', but then I lose the relationship of master / detail, because that is what forms wih the field id for linking blocks.

    Also, I've seen in other posts that I can use a view, but I can't understand how would I update or remove data then.

    The only thing that I realized is to the description field in its own datablock in the same tab, a relationship master / detail-detail (or master-detail-master). BTW, I don't think it's beautiful "formulas"programming"and it does too much for my needs."

    I guess it must be a trivial thing, but I don't know what to try next. Thanks in advance!

    Published by: user10278211 on Sep 17, 2008 20:13

    AAH, I think now I got your management!

    You have 1 Deptno and dname "XYZ" in the master and you want to display:

    EmpNo Ename DName
    1     User1 XYZ
    2     User2 XYZ
    

    -What?

    If so:

    1 create a new element in the retail block, let's call it DSP_DNAME, set database property to point to 'no '.
    2. create a POST-QUERY-Trigger on detail-block with the code: DETAILBLOCKNAME. DSP_DNAME: =: MASTERBLOCKNAME. DNAME;
    3. create WHEN-CREATE-RECORD-Trigger with the same code.

    That's all

  • Custom Store - access to user information

    Hello.

    I m working with store custom applications of dps. It really is a great time to learn more about the DPS solution. It is a beautiful experience.

    Today I m looking for an example that explains how to access the user information in the window. I m trying to customize the storefront with a message to the connected user... "Hello, < username >.".

    Looks like a simple thing to do but... Well... I appreciate all help.

    Bravo to everyone.

    Leo

    If you just want to show their username, then you can get it from the class AuthenticationService.

    Neil

Maybe you are looking for

  • ERROR: No supported CPU installed, HP P6310F

    HP p6310F Windows 7 Home Edition ERROR: No supported CPU installed CPU replacement Hello!  I replace the CPU in my HP P6310F.  According to this literature, http://support.hp.com/us-en/document/c01949155 , I have an AMD Phenom II X 4 Quad-Core 9xx/9x

  • Brother MFC-885CW Inkjet Multi: Reinstall Control Center 3 after upgrading Windows 10

    Hello I have recently upgraded my HP with Windows 10 desktop computer, hated, then returned to Windows 8. After returning to Windows 8, my 3 command center does not open, just a blank white screen appears I can't close unless I go into task-master &

  • 'do not load the tabs until you have chosen.

    Is there a solution to 'do not load the tabs until you have chosen? No tab should never load in the background (until this tab is selected). BarTab worked for previous versions, but not in 38 or 45 or 49. What is the solution?

  • Google maps on android for bb10

    Hello I have a simple android app: https://developers.google.com/maps/documentation/android/hello-mapview I need to run this code on blackberry device/Simulator, but it seems that blackberry is not compatible Google Maps and keeps giving the error "f

  • MERGE records do not update the existing line

    Hi allI need your help guys, I am facing a problem with the discovery of the program example here merge statement.I have table TEST1 with C1 and C2 are the columns C1, we have a primary key.create table test1 (number (5) c1, c2 number (5));ALTER tabl