Avoid changing the coloumn in a table

Hello.

I m using jdeveloper 11.1.1.5
I had created a FinYearsEO with corresponding VO
I dragged and dropped as a Table of the ADF
Now, the fyStatus attribute must be 'U' for a single line

for example
examine the table has values
Year     fyStatus
201011   O
201112   U
If the user tries to change 201011 fyStatus 'U' he cannot since already has the record with fyStatus 'U '.
How can I achieve it

"William."

You have actually now obtained 4 different solutions in the thread.

As I've discussed with you before, is not the forum 'write my code for me', nor the forum "read the documentation for me."

John

Tags: Java

Similar Questions

  • How can I change the OWNER of a table?

    How can I change the OWNER of a table entr2009mm?

    Or the OWNER of all TABLES including tablename match the pattern * 2009 *?

    Peter

    Hello

    There are different posiibilities, Import/Export can do.

    But, if it is not a too large Table, you can use ETG (from a user with DBA privileges for example).

    Create Table . as select * from .;.

    Then, you must re-create the dependent objects (Index,...) and remove the Table Source.

    If you have a set of Tables, it is preferable to use Export/Import.

    Hope this helps.
    Best regards
    Jean Valentine

    Published by: Lubiez John Valentine, February 9, 2010 20:20

  • JavaScript allows you to change the background of a table cell


    After a few hours searching for the answer to this frustrating problem, I have to ask the experts:

    How can I change the background of a table HTML via Javascript? The background is one of the two colors possible, based on a variable which is calculated. The table is a 2 x 3 and each cell will change the background color based on the variable.

    Thank you very much for your help!

    http://www.WebmasterWorld.com/forum91/485.htm

  • Change the "owner" of a table?

    I tried searching the forums... and I'm almost embarrassed by my apparently stupid question, compared to very complicated questions others ask!

    I'm new to APEX/Oracle/SQL etc.! I'm working throughout the book 101 PL/SQL by Christopher Allen (I really learn a lot... but...)

    I need to get a table owned by SYS to belong to the TEST!

    I can't find a forum entry to do this... but my best invited would be something like:

    SQL > UPDATE DBA_TABLES
    OWNER = 'TEST '.
    WHERE TABLE_NAME = 'PLSQL101_PRODUCT ';

    But to be honest with you, I'm not sure this is the right place for it... I found elsewhere on the forum, I can also perform:

    SELECT OWNER, TABLE_NAME from ALL_TABLES
    WHERE OWNER = 'TEST ';

    OR

    SELECT OWNER, TABLE_NAME from DBA_TABLES
    WHERE OWNER = 'TEST ';

    I'm not totally screw up my instance... by updating the wrong table.

    Any help would be greatly appreciated!

    KSL.

    Furthermore, before I 'Post Message', my real problem is, I'm about to do an IMP of four .dmp files... I knew the idea of the tablenames/users, etc. files four dump...

    I want to assign these imported tables/indexes...etc. my user "TEST", so that they appear in the object view my APEX, so I can easily see the tables! I'm assuming that I use the "touser = TEST" in my order IMP; but I wanted to know how to change the owner, just in case that did not do what I expected!

    Change the "owner" of a table?

    Not a chance.

    I need to get a table owned by SYS to belong to the TEST!

    create table test. PLSQL101_PRODUCT in select * from sys. PLSQL101_PRODUCT;

    (and don't even think to change the data dictionary directly).

  • change the order of a table with another table

    I want to change the order of a 1 d table based on another table 1 d that specifies the order.  For example, I have a table including the following items: 12, 13, 14, 15, 16.  And I have another 1 d array that specifies the order of 3, 4, 0, 1, 2.  I want the table resulting in 15, 16, 12, 13, 14.  How can I do this?  It must be really easy.  Another example, I give myself a table in the order following 1,2,3,4,5,6,7 and I an order specifying the array containing the 0,6,1,5,2,3,4.  Therefore, the resulting table must be 1,7,2,6,3,4,5.  ???

    It is, in fact, quite easy.  Put an "Array Index" inside a loop and thread the two tables in it.  Disabled automatic indexing on the input array.  Wire of the array element located on the border of the for loop, and you'll have the desired table.

  • How to change the row of a table at the click of a button in the adf 12.1.3

    Hello

    I can't change a line in a table by clicking on the button Edit using adf 12.1.3.Could you help me please on this issue.

    -

    Select your table and look in the property inspector window there you will see an editingMode, here property to set its value to clickToEdit

    Ashish

  • Dynamically change the prefix of working table

    Hi gurus of ODI.

    I have two projects ODI to convert flat file to XML (km used is SQL file and append IKM XML control). These two projects eventually creates a similar XML structure.

    When these two scenarios executed at the same time tables of temporary work, which stores the data in the file of the project (for ex. C$ _0Dimesion C$ _0Data etc.) would be even for these two projects, and as a result it creates all sorts of questions as the temp table gets deleted by a single process and other processes trying to insert some values into which proves defective then.

    I saw the solution given in http://odiexperts.com/interface-parallel-execution-a-new-solution/

    But in my case, I don't want to go with this solution, because it requires changes in the physical topology (prefix tables work) of staging of the database that is used by several other projects.

    So, I want to add a string as integration_id project number before the name of a temporary table that is ' I111_C$ _0Dimension ' and that too without touching the physical topology.

    I'm fine with KM change but I don't know how to do it.

    Please suggest.

    Kind regards

    Sameer

    Modify steps access C$ I $ tables in your KM.

    For LKM where ever you see< %="snpRef.getTable" ("l",="" "a",="" "coll_name")="" %="" >="" remplacez-le="" par="" le="" code="">

    <%=snpRef.getTable("L", "COLL_NAME", "A")%><%=odiRef.getSession("SESS_NO")%>

    In revenge, everywhere where you see< %="odiRef.getTable" ("l",="" "a",="" "int_name")="" %="" >="" remplacez-le="" par="" le="" code="">

    <%=odiRef.getTable("L", "INT_NAME", "A")%><%=odiRef.getSession("SESS_NO")%>

    It should work.

  • Change the length of a Table column (CHAR data type)

    Hi gurus,

    SQL > select * from version $ v

    BANNER

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

    Oracle Database 10g Release 10.2.0.3.0 - 64 bit Production

    PL/SQL version 10.2.0.3.0 - Production

    CORE Production 10.2.0.3.0

    AMT for Linux: release 10.2.0.3.0 - Production

    NLSRTL Version 10.2.0.3.0 - Production

    I need to increase the length of a CHAR of a table data type column (currently it's tank (3) and you want to change to char (4)). Here are more details on the table:-

    • Contains more than 20 million lines.
    • Table contains several indexes.
    • Table is referenced by several tables (about 60 tables) and it refers to several tables (about 3)
    • Table has 4 complex triggers. Triggers call procedures and packages.

    What I've tried so far


    1 disabled all triggers and ran ALTER statement to increase the length. It took hours and did not finish in a reasonable amount of time, even if no error, but it took more than 12 hours.

    2 tried DBMS_REDEFINITION package but it does not work with the standard version of Oracle 10 g.

    I think to try next

    I think same Optics:

    Say my name of the existing table is OLD_T1 where the length of column need to increase

    -Create a copy (with increased column length) table of OLD_T1, Say NEW_T1

    -Move data from in OLD_T1 to the new table NEW_T1

    -Lower OLD_T1 (or rename it to OLD_T1_TMP)

    -Rename NEW_T1 to OLD_T1

    -Create all indexes, triggers, constraints etc..

    I wish to confirm, if my approach is correct? Or someone has a better idea to do this?

    Please note: I know that the CHAR data type gives the problem but it is an old system and I don't have authority to change the design of database.

    Appreciate any comment/suggestion

    Thanks in advance

    > I mean, can any application break if it depends on fixed-length?

    Yes, because the code can be expected completed on the right areas.

  • Change the names of temporary tables created BY CKm and LKM

    Hello

    I am new to ODI.
    I want to know if we can change the default name structure that is used by ODi to create temporary tables.
    I have$, C$, and E$ table.
    For example:-if I want to keep I have $1 for a single schema and I have $2 to another schema.

    Is there a way by which we can do that?

    Thank you
    Mahesh

    Just follow this guide to make unique session temporary tables:

    http://odiexperts.com/interface-parallel-execution-a-new-solution
    There will be no interference then.
    Kind regards
    Alastair

  • Problems with mappings when changing the type of source table field?

    Hello world

    one question.
    Is it a problem when I change my types of fields in my table of source of char for example varchar2 with mapping that uses this table?
    In the mapping of the source table field Types are defined as Char fields. Do I have to change all the fields of char to varchar2 (via Import again from the source table and synchronize in the map)?

    Thanks in advance.

    Greetings

    Hello

    If your new data type (in the database is compatible and big enough) then you probably don't have to change the class in your other mapping wise you need.

    It a good practice to import the last definition of table (metadata) in the repository of OWB and then synchronize incoming.

    Thank you
    Fati

  • Tips for the custom transformation script change the Associations of FK table

    Hello

    I try to write a transformation script that will scroll through tables in a large model and change some
    FK associations to change the remote table at CF. By the way, the reason is that our logic model
    the logical entities that represent many areas of codes of small research. However, our relational and physical model has a
    utility single physical filing table of codes that contains all areas of these codes. Therefore, a part of the transformation
    our logic model for the relational model is to swing all FK associations for these areas of research codes
    in the table of common code. Then the paintings representing the research areas can be removed from hard.

    In any case, I'm looking at the

    oracle.dbtools.crest.model.design.relational.FKIndexAssociation

    or the

    oracle.dbtools.crest.model.design.relational.Index

    to see if one of them can be manipulated to perform the transformation I want to accomplish.

    When I perform the equivalent process manually via the property sheets there are several ways to address this problem.

    (a) the method more jolise seems to change the FK in place by clicking on the FK in the relational schema and changing
    the property called ' PK / UK Index'. Change that to the pharmacokinetics of utility code repository table that replaces the original
    table (which represents the research field). A side effect of this translates into CF mapping
    columns being nulled out. They must be remapped to original columns (which are kept).
    So in two stages, the existing FK is detached from the original, attached table to the new table, and then
    FK columns are reused in place for new CF mapping.

    (b) the brute force method is to remove the original FK and then create a completely new FK to the new table. There are
    several dialog boxes that allow you to keep the original FK columns and use them in the new FK.

    I realize, this is a somewhat complex transformation, but I would like a few algorithmic advice on which path to take
    to try to achieve. In particular, there is a script that is equivalent to that of the first process above?

    I don't even know if the CF which is represented on the relational schema is represented by the FKIndexAssociation or Index
    class in the script object model. In other words, I have to loop through the tables in the relational model what would be my
    starting point:

    FKS = table.getFKAssociationsList ();

    or

    fkIndexes = table.getAllInds_FKeyInds ();

    or something else. The names of the properties in the user interface are always with the properties of scripts not so
    It's a little difficult to understand such things.

    Once I have access to the object that is equivalent to the FK in the property/diagram worksheet, which
    is the best way to handle via script. How can I change the end of parent and away from CF to point to the new table.
    Or if I have to delete the original CF and then re-create - is there a way to save the original FK columns and reuse them
    While creating the new FK?

    ********************

    Another question. What is the best way to remove tables from a relational model. I note that there is a remove() undocumented (?)
    a method that is available on the Table. It's probably a superclass to remove other things as well.

    When I try to use this method in a loop the script throws up to dialog boxes that are similar to dialog boxes that are displayed during the execution of a removal
    manually through the user interface. Is it possible to intercept and answer dialogs programmatically?
    So for example if I get a window of dialogue as

    You want to remove generated columns of FK 'FOO' in the table 'BAR '?

    is it possible to intercept this dialog in the script and then answer Yes or no it via the script?

    ***************

    If it is too difficult to perform this type of transformation with the help of script
    is to do the transformation on the generated DDL file. But it would be cleaner to
    to do the transformation in the relational model DM if possible.

    All advice appreciated.

    Rgds, BP

    When I try to use this method in a loop the script throws up to dialog boxes that are similar to dialog boxes that are displayed during the execution of a removal
    manually through the user interface. Is it possible to intercept and answer dialogs programmatically?
    So for example if I get a window of dialogue as

    You want to remove generated columns of FK 'FOO' in the table 'BAR '?

    is it possible to intercept this dialog in the script and then answer Yes or no it via the script?

    It's in the preferences - "Data Modeler > model > relational > remove FK column strategy."

    I don't even know if the CF which is represented on the relational schema is represented by the FKIndexAssociation or Index

    Is a pair of two - FKIndexAssociation, that's what you see the pattern, but it is hidden in the table index - isFK() returns true for this type of index and you can take FK with getFKAssociation()

    Once access to the object that is equivalent to the CF in the property/diagram worksheet

    table.getFKAssociations () - returns an array of the foreign keys;
    You can get to them from the relational model:
    model.getFKIndexAssociationSet () .toArray () - FK all model

    How can I change the end of parent and away from CF to point to the new table.
    Or if I have to delete the original CF and then re-create - is there a way to save the original FK columns and reuse them
    While creating the new FK?

    There should be no problem if you use the same number of columns with the same data type and order:

    get the current FK columns
    columns = fk.getColumns ();
    newRefKey is the new key question; referred and child columns must match the data type and the order in the keys - you do not ask how to get
    fk.changeKeyObject (newRefKey, columns);

    function setting in preferences, you will get the question on the columns of FK.

    Therefore, a part of the transformation
    our logic model for the relational model is to swing all FK associations for these areas of research codes
    in the table of common code. Then the paintings representing the research areas can be removed from hard.

    You can create the hierarchy of entities with the root attribute (and PK identifier) KP holding entity and entity - your look-up - empty child relationships will be these entities of the child. With the help of the transformation of the "unique Table" you will get what you are trying to achieve now with script.

    Philippe

  • Table styles - change the color of filling table

    I have created a table style that works well in all of my document.

    However, in a future revision, I need to change the color of the header of fillings. How do I do this once, so it updates all tables in my document.

    Thank you

    You should have a Style of single cell applied to header cells. Just edit that.

  • change the colors of level table of contents

    RH8 HTML

    Hi all

    Ive had a request come out while changing the level colors in the table of contents for a webhelp project.

    AFAIK, you can define only a single color in the skin with HR settings, however I'm trying to track down the output file, where it is defined and perhaps add additional code to set the different colors of level.

    Does anyone know which file or piece of code is the control?

    Thank you

    Nick

    Hello

    You can use css to achieve this effect. You can modify the TocWriteClassStyle function in whthost.js or you can create a block of style/stylesheet.

    The normal color of the text is controlled by 'A' (the links are). It is the top level of the table of contents. All deeper levels are div with the class ".one". So ".we" do the second black TOC level. ".we .we" made the second red level. I tried this on a table of contents level 4 and I could give a different color to each level.

    There are two notes:

    -You can't repeat .we .we indefinitely. I thougt you could use four elements or so Max CSS is no longer valid and the styling breaks. Do not know why but...

    -When you use A .we, this color not only all the links of second level and third level links, etc. These links also meets the condition: a link in an item with classname 'child '. If you need to go to several levels (more than four), this method may not work for you.

    Take a bow

    Willam

    This email is personal. In our view, full disclaimer, please visit www.centric.eu/disclaimer.

  • How to change the default color for tables/pivot tables

    Can someone share how to change the default font color or background for tables and PivotTables? In my view, there is a CSS or XML setting I need to change.

    It is difficult to read the text when negative numbers are RED and the overall totals have a default NAVY background fill. I'm trying to find out how to change the color of these without doing it manually to each report.

    Thank you.

    Jin

    For pivot Table

    Go to OracleBI\oc4j_bi\j2ee\home\applications\analytics\analytics\res\s_oracle10\b_mozilla_4\views.css

    Change the PivotTable section code

    For table veiw

    Go to OracleBI\oc4j_bi\j2ee\home\applications\analytics\analytics\res\s_oracle10\b_mozilla_4\views.css

    Change the section of the Table

    PS:take backup your original file before you edit any css file. Don't forget to give the points/close the thread

    Thank you
    saichand.v

  • Avoid changing the name on the migration of VM

    Hello

    due to a limitation in a third-party software, I need to follow no standard naming conventions for vmdk files. So I change it name of file and edit the .vmx file. It works great so far.

    But as soon as the virtual computer is moved the names are changed to what is usually used by VMware. For example, I have a virtual machine with the files

    MyVM.vmx

    MyVM.vmdk

    MyVM - flat hard

    flat_1.VMDK (second disk image)

    myvm_1 - flat hard (flat file to the second disk image)

    After reinstallation, it looks like this:

    MyVM.vmx

    MyVM.vmdk

    MyVM - flat hard

    myvm_1.VMDK

    myvm_1 - flat hard

    The problem is that, the third party software has this special name for the second disc. And after the name change, it is not able to handle more. Is there a way to avoid this name change?

    The renaming of files cannot be avoided. Basically, you have three options to work around this problem.

    1. Ask the 3rd third party to obey standards (preferably) software provider
    2. Rename the file manually and edit the vmx file after reinstalling.
    3. Rename your virtual machine for 'flat' in the inventory before migrating. This will however rename all files to "... flat...» »

    BTW. How often you replace the virtual machine?

    André

    PS: As vmroyale I would be really interested in this software is!

Maybe you are looking for

  • Overheating?

    It was about 23:00 and I plugged in my ipod, and during the night I woke up attempted got on this subject, but it was much too hot to the touch, so I unplugged before laying down. now in the morning, it won't even turn. What did? It was about 23:00 a

  • process com.aka.player

    New, something began to happen on my DX... wonder if anyone saw: Especially when spend or receive phone calls (but sometimes random so) I started to see a little box pop up (with the trialgle and the "!" in the notification bar). It happens more and

  • laptop guard turn off through a play

    My laptop keeps switching off and is really hot really frustrating. [Moved from comments]

  • Type of memory for Touchsmart 420-1100t - DIMM or SODIMM?

    Hi, I keep getting conflicting information on the type of upgrade memory I need for my Touchsmart 420-1100 t. I know it's PC - 3 - 1066 DDR3, but for the life of me, I receive information contradictory re 204 PIN SODIMM or DIMM standard.  The system

  • How to configure two windows separated from direct mail on the PC user accounts, each with their own password

    The purpose of running two separate is Windows Live Mail accounts to have total privacy on each, avoiding different users can see other accounts or e-mail folders. I don't want to mix the different user accounts when the opening of windows live mail,