know the columns updated in a table

Hi all

I use jdevelopper 11.1.2.4. is there a way to know if a column is changed by the user or not? something like the entityState object but at the level of the attribute?

Thank you

KHALIL

I'll give the example in employees and when the user changes the bottom of the column salary changes

Try to do the following:

1. open the EmployeesView and create the new transitional attribute 'IsSalaryChanged' of type boolean.

2. generate class EmployeesViewRowImpl and in the accessor Get in IsSalaryChanged write this code

  public Boolean getIsSalaryChanged()
  {
    return isAttributeChanged("Salary");// Salary is the attribute name which we want to know if it is changed or not
    //return (Boolean) getAttributeInternal(ISSALARYCHANGED);
  }

3. in the .jspx drag and drop the IsSalaryChanged into the table

4. in the condition of column writing salary in it is inlineStyle like: inlineStyle = "#{row.bindings.IsSalaryChanged.inputValue?" "{background-color: Fuchsia;':"} ".


5-set salary InputText autoSubmit = 'true' and take his Id and put it in the partialTriggers table



Tags: Java

Similar Questions

  • Display of the data without knowing the columns.

    Hello

    I want to display data AS that OF EMP TABLE USING plsql.

    7499 "ALLEN SALESMAN" 7698 ' 20 / 02/1981 ' 1600, 300, 30

    Without knowing the column emp TABLE I want to display data.i have tried, but does NOT...

    DECLARE

    CURSOR c1 IS SELECT * from all_tab_columns WHERE table_naMe = 'EMP ';

    CURSOR c2 IS SELECT * FROM emp;

    v_column_name varchar (200);

    BEGIN

    I'm IN c1 LOOP

    FOR j IN LOOP c2

    v_column_name: = 'j' | i.column_name;

    dbms_output.put_line (v_column_name);

    END LOOP;

    END LOOP;

    END;

    Kind regards

    John

    Hi John,.

    Maybe this can help you:

    create or replace procedure prc_show_rows ( table_in varchar2 )
    is
      CURSOR c1 IS SELECT * FROM all_tab_columns WHERE table_name = upper (table_in);
      type table_output is table of varchar2(32000);  -- this can be a problem with large rows
      work table_output;
      v_statement varchar2(2000);
    BEGIN
      --
      v_statement := 'select ';
      --
      FOR j IN c1 LOOP
        v_statement := v_statement || j.column_name || ' || '' '' || ';  -- may be you need some more formatting with appropriate to_char clauses
      END LOOP;
      --
      v_statement := rtrim ( v_statement, ' |''') || ' from ' || table_in;
      --
      dbms_output.put_line ( v_statement ); -- not necessary, only for testing
      --
      execute immediate v_statement
         bulk collect INTO work;
      --
      for i in 1..work.COUNT loop
        dbms_output.put_line(work(i));
      end loop;
    END;
    /
    
    exec prc_show_rows ( 'emp');
    exec prc_show_rows ( 'dept');
    

    concerning
    Kay

  • How to check the column updated whereby the package or procedure?

    Hi all

    Can someone help me how to check the column updated by which the package or procedure

    A.Mahesh

    Hello.

    You can check what object is a reference to the table of the column:

    Select *.

    of all_dependencies d

    where d.REFERENCED_NAME = '. '

    And you can find all the links to the object source data column:

    Select *.

    of s all_source

    where s.name = "."

    and s.OWNER = '. '

    and s.TYPE = "."

    and as s.TEXT '%%'

  • SmartView VBA - can't set "Width of the column updated"

    Hi people,

    I am updating a series of workbooks based on the API VBA Essbase v9 on SmartView 11.1.2.1 and touched a problem - I am new to VBA SV commands, and I hope that it is something obvious that I'm missing.

    One of the functions which is essential to ensure recovery of data does not affect the layout of spreadsheets is the parameter 'Adjust the column widths', which, in the VBA Essbase API, could be managed by using the EssVSetSheetOption function, but neither HypSetGlobalOption nor HypSetSheetOption appear to have such a capability. The only option I have is to run get followed by some reformatting of the column widths, which seems rather ineligant for me.

    Any ideas?

    Thank you very much

    Dave

    research in the .bas file (and what needs to be included in your project that I find HSV_ADJUSTCOLUMNWIDTH in the definitions of the index count options to use for HypGetOption/HypSetOption

    Note, I'm looking at the 11.1.2.2 version, your mileage may vary depending on your version

  • Add the column to an existing table-based user-defined type

    Hello guys,.
    I am compiling my function that returns a type defined by the user based on an existing table. Throughout the process of initialization so my query returns an additional column - SCORE (1). Here is my package:

    create or replace
    PACKAGE STAFF_AGENCY_PKG AS

    TYPE TYPE_SEEKER_TABLE IS TABLE OF THE DRAW. SEEKER % ROWTYPE;
    FUNCTION GET_SEEKERS (IN_KEYWORD IN VARCHAR2)
    TYPE_SEEKER_TABLE RETURN PIPELINE;

    END STAFF_AGENCY_PKG;
    -------

    create or replace
    STAFF_AGENCY_PKG PACKAGE BODY
    AS

    FUNCTION GET_SEEKERS (IN_KEYWORD IN VARCHAR2)
    TYPE_SEEKER_TABLE RETURN PIPELINE
    IS
    R_TBL TYPE_SEEKER_TABLE; -to return
    BEGIN
    FOR R IN)
    SELECT Seeker.SEEKER_ID,
    Seeker.FIRSTNAME,
    Seeker.LASTNAME,
    Seeker.NATIONALITY,
    Seeker.ISELIGIBLE,
    Seeker.BIRTHDATE,
    Seeker.ISRECIEVEEMAILS,
    Seeker.HIGHESTDEGREE,
    Seeker.ETHNICITY,
    Seeker.GENDER,
    Seeker.ISDISABILITY,
    Seeker.DISABILITY,
    Seeker.CV,
    Seeker.PASSWORD,
    Seeker.PREFFERED_CITY,
    SEEKER. E-mail
    SEEKER. JOB_PREFERENCES_ID,
    SCORE (1)
    THE APPLICANT Seeker
    WHERE CONTAINS (CV, ' < query >)
    < textquery lang 'grammar' = 'context' = > ' |
    GET_RELATED_CATEGORIES (IN_KEYWORD) |
    ' < / textquery >
    < score datatype = "INTEGER" / >
    (< / query > ', 1) > 0
    )
    LOOP
    PIPE ROW (R); -Error (38,10): PLS-00382: expression is of the wrong type
    END LOOP;
    RETURN;

    END GET_SEEKERS;
    END STAFF_AGENCY_PKG;

    How do I change my user type to be sufficient?

    Oracle version 11.2.0.1.0
    Thanks in advance!

    >
    How do I change my user type to be sufficient?
    >
    You will need to create two new TYPEs. The one who has all the columns of the draw. The REQUESTOR table and the new column SCORE, then a TYPE which is an array of the first type.

    See example 12-22 using a Pipelined Table function for a Transformation in the PL/SQl language reference

    http://docs.Oracle.com/CD/B28359_01/AppDev.111/b28370/tuning.htm#i53120

    Here's the first part

    -- Define the ref cursor types and function
    CREATE OR REPLACE PACKAGE refcur_pkg IS
      TYPE refcur_t IS REF CURSOR RETURN employees%ROWTYPE;
      TYPE outrec_typ IS RECORD (
        var_num    NUMBER(6),
        var_char1  VARCHAR2(30),
        var_char2  VARCHAR2(30));
      TYPE outrecset IS TABLE OF outrec_typ;
     FUNCTION f_trans(p refcur_t)
          RETURN outrecset PIPELINED;
    END refcur_pkg;
    /
    
    CREATE OR REPLACE PACKAGE BODY refcur_pkg IS
      FUNCTION f_trans(p refcur_t)
       RETURN outrecset PIPELINED IS
        out_rec outrec_typ;
        in_rec  p%ROWTYPE;
      BEGIN
    

    Change

      TYPE outrec_typ IS RECORD (
        var_num    NUMBER(6),
        var_char1  VARCHAR2(30),
        var_char2  VARCHAR2(30));
      TYPE outrecset IS TABLE OF outrec_typ;
    

    to include all the columns you need. Unfortunately, you have to manually list all the columns in the draw. The REQUESTOR table. If you think you need this same structure in other places you must create them as SQL types instead of PL/SQL types.

    This example should be enough to show you how to modify your code to do something similar.

  • Need logic to update the column in a Varchar table

    Hello

    Could you tell me logic below.

    I have a xx_dbc of the table where one of the Attribute1 column is varchar2 (240).

    Attribute1 has values such as

    ==================

    (AIN, PUP, GRI, NINE)

    (AIN, PUP)

    (AIN)

    (GRI, NINE)

    I have to update this column for each record with values AIN = 10, PUP = 20, GRI = 30, NINE = 40

    Columns must be updated as below

    (10,20,30,40)

    (10.20)

    (10)

    (30, 40)

    Thank you.

    Hello

    Here's one way:

    WITH the replacements AS a

    (

    SELECT "AIN" AS old_str, '10' AS new_str FROM dual UNION ALL

    SELECT 'PUP', '20' FROM dual UNION ALL

    SELECT 'GRI', '30' FROM dual UNION ALL

    SELECT 'NEW', '40' DOUBLE

    )

    normalized_data AS

    (

    SELECT p_key

    LEVEL AS sort_key

    REGEXP_SUBSTR (attribut1,

    , '[^(,)]+'

    1

    LEVEL

    ) AS str

    OF xx_dbc

    -WHERE... - If you need any filtering, put it here

    CONNECT BY LEVEL<= 1="" +="" regexp_count="" (attribute1,="">

    AND PRIOR p_key = p_key

    AND PRIOR SYS_GUID () IS NOT NULL

    )

    SELECT '(' ||) LISTAGG (NVL (r.new_str, n.str)

    , ','

    ) (ORDER BY sort_key) group

    || ')' AS new_attribute1

    n.p_key - if wanted

    OF normalized_data n

    LEFT OUTER JOIN replacements r ON r.old_str = n.str

    GROUP BY n.p_key

    ORDER BY n.p_key

    ;

    Like everything else, it depends on your version of Oracle.

    In the above query, p_key can be any unique key of xx_dbc, including attribute1 or ROWID.

    Relational databases, such as Oracle, work best when each column of each row contains 1 single piece of information, not a list delimited a number of parts.  It is so fundamental to the design of the table what he called the first normal form.  Most of the work to this problem is to convert your data denormalized in first normal form, and then convert back again.  This problem, like many others, would be much simpler and more effective if your table is in first normal form.

    The above query assumes that the replacement of the chains (for example 'AIN' and '10') are not already in a table.  If they are, or they can be derived from a table, then you need not replacements subquery; Use your actual table.

  • How to check the columns updated condition in after triggers

    Hello

    I create after the update trigger,
    -------------------------------------------------------------
    create or replace
    TRIGGER 'TR_U_PAYING_MEMBER '.
    AFTER UPDATE
    ON PAYING_MEMBER
    FOR EACH LINE
    DECLARE
    PRAGMA AUTONOMOUS_TRANSACTION;

    BEGIN
    IF ***(:new.active_member_status) and (: old.active_member_status) is not null THEN
    Begin
    Insert in the table of the newspaper...
    commit;
    End
    End
    ---------------------------------------------------------------

    How can I check the condition only this update of column. (********)
    I used "update (: new.active_member_status) ' but it does not work.

    NVL IF (: New.ColName, ' the NVL value)! = NVL (: old.) Column name, 'any value NVL') THEN...

    is what you are looking for.

  • Display the column names in a table

    Stupid question time...

    How to display the names of columns in a table on the front panel? I thought by right clicking on the table would give me a selection to view.

    Hi Eric,.

    Right-click the table and select "Show column headers" visible elements "->":

  • XMLTable: definition of the columns data type of table

    Hello world

    I am using ORACLE 11 g and you want to shred XML into a table called test used. I was hoping I'd be able to get the types of data to the employees table existing instead of specify them in the clause of columns. Is this possible?

    Here is an example of what I'm trying to do. But I get an error: PL/SQL: ORA-00907: lack the right parenthesis on the line starting with columns.
        insert into EMPLOYEES
         select *
           from xmltable(
           '/employees/employee'
            passing EMP_XML
    
            columns FIRST_NAME EMPLOYEES.FIRST_NAME%TYPE path 'first_name',
                    LAST_NAME  EMPLOYEES.LAST_NAME%TYPE  path 'last_name',
                    GENDER     EMPLOYEES.GENDER%TYPE     path 'gender',
                    AGE        EMPLOYEES.AGE%TYPE        path 'age'
            );
    Error details
            columns FIRST_NAME EMPLOYEES.FIRST_NAME%TYPE path 'first_name',
                                *          
    
    ERROR at line 16:
    ORA-06550: line 16, column 42:
    PL/SQL: ORA-00907: missing right parenthesis
    ORA-06550: line 11, column 5:
    PL/SQL: SQL Statement ignored
    Thank you.

    Specification of column names is required, but you can omit the declaration of data types.

    See: the function XMLTABLE SQL/XML in Oracle XML DB

    XMLTable is used with storage XML based on a schema of XMLType data type is optional. If absent, the data type is inferred from the XML schema. If Oracle > XML DB is unable to determine the right type of a node, a default type VARCHAR2 (4000) is used.

    It is an Oracle extension; in the SQL/XML standard, the data type is always required.

    Note:
    The alleged data type might change as a result of the application of a patch or upgrade of Oracle XML DB. In particular, a new set of release or patch might be able to > determine the data type when the previous version was unable to do so (and therefore not reimbursed to VARCHAR2 (4000)). To protect against such an eventuality, specify an explicit data type with the data type.

  • need to know the Palm update to transfer my Palm Z22 info in Windows 8.1 or MacBook Pro

    My Palm Z22 is really old and even when I installed the CD on my new computer Dell Windows 8.1 news moves on.  Any ideas on how to do it?  I also have a MacBook Pro that I could use if the CD would move on the MacBook Pro.  Thank you

    Hi Ruby,

    Thanks for posting your query in Microsoft Community Forum.

    The program for the PDA device you mentioned is not compatible with Windows 8. Please check the following link for compatibility.

    Palm Z22: Compatibility with Windows 8

    In addition, please refer to this post by Carlos Atashian responded on November 28, 2012 in the following thread link:

    Pilot to synchronize Palm Z22 with windows 8

    For the compatibility and troubleshooting on MacBook Pro, please visit the Apple support as shown in the following link.

    MacBook Pro Support

    Hope this information is useful. Let us know if you need more help, we will be happy to help you.

  • Hi dear comrades... I want to know the Windows updates. Is this OK to activate updates online for windows?

    Some of my friends told me turning on these updates can affect your windows genuine. I'm so nervous about it. Please anyone suggest me some opinions on this issue.

    Some of my friends told me turning on these updates can affect your windows genuine. I'm so nervous about it. Please anyone suggest me some opinions on this issue.

    Might want to change your topic: activate _ updates (on or off)?  I guess that 'off' because they would be 'on' by default and given your body of the message.
     
    Everything and nothing (electricity, heat, installed applications, antivirus, your Internet applications and method, etc.) can change your Windows installation in a way that could have an effect on your system.
     
    While it is true that the last two months of updates caused some problems on some installations (some even which surrounds whether the reported OS is it authentic or not)-these errors were not impossible to fix, etc.  However, in some cases, the updates are released to avoid a problem that can be more of a disaster than to have to prove you own Windows and get it activated (as someone to install malicious software on your computer because you visited your new favorite web page and looked at a picture it and all your user name and password you enter on web pages are currently sent to someone ' one/something left for one) later use.)
     
    -If you wish - set update system so that you control when and which updates are installed - but remember to check after the second Tuesday of each month and towards the end of each month to make sure that you're not going a long period of time without having to install them.  Install one or two, reboot, test, repeat.

  • I am trying to download a document, and I as far as I know the most updated to Adobe Reader version

    and I get this message...

    Please wait...  If this message is not subsequently replaced by the good content of the document, your PDF reader isn't able to display this type of document.  You can upgrade to the latest version of Adobe Reader for Windows®, Linux® or Mac by visiting http://www.adobe.com/products/acrobat/readstep2.html.  For more assistance with Adobe Reader, please visit http://www.adobe.com/support/products/ acrreader.html...

    Don't know what I should do to get my document. Thank you

    Who did is not supported on Mac. Chrome uses its own pdf reader. Try another browser or right click and save the PDF on your computer and open it since in Adobe Reader.

  • Cannot get the value of the column amount in Pivot Table Preview

    Hi all
    I have the XML data and creating PivotTable to cross tab report RTF.
    I have the coulumn of the year which is dynamic. Under the present the amount displayed as zero 0 in preview. But the data are available in the XML file.

    Please let me know if something is missing.

    Thank you.

    Hi Adam,.

    The latter, a lot of scenario here, see
    http://winrichman.blogspot.com/search/label/cross%20tab

  • need to know the structure of the table relationship

    Hello people,

    I m starting to oracle r12,.

    I'm having trouble finding the relationship of the tables

    is there a place where I can see the relationship of table for a particular module (HR, SCM, PROJECTS)

    for example, I have a view that combine these tables

    OKE_K_HEADERS,

    OKC_K_HEADERS_ALL_B,

    OKC_K_HEADERS_TL,

    OKE_K_VERS_NUMBERS_V,

    OKC_K_HEADERS_ALL_B,

    I want to know the relationship that is main table & that kid and what id column, they are a link.

    Thank you

    This information can be found at https://etrm.oracle.com

    MOS Doc 150268.1

  • How to create the column of the table for long-form Master detail relationship

    Apex 4.1

    Oracle 11g

    I created a form master detail and see the main table hotel_list and table hotel_mapping as detailed below.

    Hotel_list

    ID HOTEL_NAME

    1 Holiday Inn

    Hotel Hilton 2

    Hotel_mapping

    ID HOTEL_NAME MAPPING_NAME

    1 Inn Holiday Inn Select hotel

    2 holiday hotel Holiday Inn Select

    3 hotel Holiday Inn Holiday Inn Hotel

    4 Hilton Hotel Hilton Hotel chain

    Hotel Hilton 5 HiltonHotel

    Table Hotel_name Hotel_list is a linked table Hotel_mapping

    When I add a line to the Hotel_mapping table for the selected row in the hotel_list table, mapping_name of column is null, therefore impossible to create the relationship between the main table and the secondary table.

    I would like to know, how to create the relationship?

    Thank you very much

    Best regards

    Yong Huang,

    simple step see creating a form detailed master with APEX - Assistant Master retail

    and check how to maintain the relationship between two tables,

    simple return the packaged application «Sample of Masters details»

    and try to understand this concept...

    In your example, use Hotel_list.ID as a foreign key in the table Hotel_mapping

    and maintain the relationship with the column ID...

    and choose the display type of the column Hotel_list.ID in table Hotel_mapping as List(Query Based LOV) select.

    otherwise the best way is to create sample on oracle.apex.com

    I hope this helps...

    Leave.

Maybe you are looking for