Discover changes to the object attribute - value old & new value

JDeveloper: 11.1.1.7.1

I'm trying to manage a Cancel button that changes rollsback to the previous state (not necessarily state DB). If an attribute in my VO passes from the

A (DB State)-> B-> C

This scenario is a UI master-child - where, in the transition is on the child entity in a popup with options save/Cancel. The real DB except happens however on the master file.

In this regard, if a user changes from a

A (DB State)-> B-> C

on the child by clicking on save on the popup of the child, how can we return to State B, which is the last valid state for this child.

Takes VO.refresh (REFRESH_UNDO_CHANGES) he State A - is therefore not a valid application.

After traveling a lot, wonder if it is a gap in the ADF - esp. around usecases Master-child where the actual validation happens at the master level.

User, this is a misunderstanding on the side. ADF has only the status of the db and no other intermediate States. A transaction is performed on all changes since the last commit of a module of application taking the transaction. Tuts had nothing to do with the relationship master detail.

We could call this behavior a flaw in the adf, but as long as no one calls for an enhancement request with support.oracle.com which could be implemented, ADF works as designed and documented.

Timo

Tags: Java

Similar Questions

  • update the object attribute table

    Hi all

    I'm trying to populate an attribute on a table of objects and need some ideas on how to do this after an update or insert on
    two relational tables?

    The object table is defined as follows:
    create or replace type ty_gli as object
    (SOB_ID           number
    ,GROUP_ID         number
    ,SOURCE_NAME      varchar2(25)
    ,INTERFACE_RUN_ID number
    ,AUTOPOST_ID      number)
    /
    
    create or replace type tb_gli as table of ty_gli
    /
    The object table is in bulk sampled in an update and The GROUP_ID is applied at the same time as follows:
    update GL_Interface gli
    set    gli.Group_ID  =  Gl_Interface_Control_S.nextval
    where  gli.Accounting_Date <= l_Max_Rate_Date
    and    gli.Set_of_Books_ID = p_SOB_ID
    returning ty_GLI (gli.Set_Of_Books_ID, gli.Group_ID, gli.User_JE_Source_Name, 0, 0)
    bulk collect into l_GLI_Tab;
    An insert then follows, in the course of which the INTERFACE_RUN_ID is obtained from a sequence
    insert into GL_Interface_Control ( JE_Source_Name
                                      ,Group_ID
                                      ,Set_Of_Books_ID
                                      ,Interface_Run_ID)
                               (select gli.Source_Name
                                      ,gli.Group_ID
                                      ,gli.SOB_ID
                                      ,GL_Journal_Import_S.nextval
                                from   table(l_GLI_Tab) gli);
    At this point in the code, preferably before or after insertion.
    I would like to each attribute of the object INTERFACE_RUN_ID table l_GLI_Tab to
    equal to the value inserted into GL_INTERFACE_CONTROL, which has been GL_JOURNAL_IMPORT_S.NEXTVAL

    I thought to do before inserting it in the update, but it doesn't work!
    returning ty_GLI (gli.Set_Of_Books_ID, gli.Group_ID, gli.User_JE_Source_Name, GL_Journal_Import_S.nextval, 0)
    /

    I then thought about that;
    update 
     (select gli.Group_ID
            ,gli.Accounting_Date
            ,gli.Set_of_Books_ID
            ,GL_Journal_Import_S.nextval as Interface_Control_ID
            GL_Interface gli
      set    gli.Group_ID  =  Gl_Interface_Control_S.nextval
      where  gli.Accounting_Date <= l_Max_Rate_Date
      and    gli.Set_of_Books_ID = p_SOB_ID) gli
    set gli.Set_of_Books_ID = p_SOB_ID
    returning ty_GLI (gli.Set_Of_Books_ID, gli.Group_ID, gli.User_JE_Source_Name, gli.Interface_Control_ID, 0)
    but who doesn't either!

    Any help would be appreciated!

    THX

    P;

    I thought to do before inserting it in the update, but it doesn't work!

    returning ty_GLI (gli.Set_Of_Books_ID, gli.Group_ID, gli.User_JE_Source_Name, GL_Journal_Import_S.nextval, 0)
    

    You just need a little change here. Create a function like this

    create or replace function Get_GL_Journal_Import_S return integer
    as
    begin
      return GL_Journal_Import_S.nextval;
    end;
    /
    

    use it in your code

     returning ty_GLI (gli.Set_Of_Books_ID, gli.Group_ID, gli.User_JE_Source_Name, Get_GL_Journal_Import_S, 0)
    

    It should work correctly.

  • How to display the different attribute value in the ToolTip of selectonechoice

    In the selectonechoice when hovering over the values in the drop-down list, it displays the same value in the ToolTip too. I want to see the value of another attribute in the ToolTip.

    For example if the list displays the name of the lov, ToolTip should show its description attribute value. I tried assigning a different value to shorDesc, but have no effect on the values of the ToolTip.

    selectonechoice_tooltip.jpg

    < af:selectOneChoice value = "#{row.bindings.TfesNdx.inputValue} '"

    label = "#{row." Bindings.TfesNdx.label}.

    required = "#{bindings." ATfes.hints.TfesNdx.mandatory}.

    shortDesc = "#{bindings." ATfes.hints.TfesNdx.tooltip}"/ / changed it to shortDesc =" #{row.bindings.Notes.inputValue} "does not yet "

    ID = "soc17" autoSubmit = "true" >

    < f: selectItems value = "#{row.bindings.TfesNdx.items} '"

    ID = "si17" / >

    < / af:selectOneChoice >

    PS: Using 11.1.1.7.0 version adf

    You probably need property shortDesc on af:selectItem http://jdevadf.oracle.com/adf-richclient-demo/docs/tagdoc/af_selectItem.html

    For example, you can use af:forEach to make your items to select like in this blog post: http://learnfrommike.blogspot.com/2013/11/adf-using-selectonechoice-in-afiterator.html

    Dario

  • Get separate paths and the depth attribute value using the XQuery function

    Hi otn.
    I want to write the function XQuery that accept the following input document nodes.

    < counter Root = "8" >
    < has counter = "3" >
    < meter B '2' = >
    < C meter = "1" >
    < meter D = "1" / >
    / < C >
    < /B >
    < C meter = "2" >
    < counter E = "1" / >
    / < C >
    < /A >
    < meter B = "4" >
    < C meter = "3" / >
    < /B >
    < C meter = "6" >
    < counter E = "3" / >
    < counter D '2' = >
    < counter E = "1" / >
    / < d: >
    / < C >
    < meter D = "2" / >
    < counter E = "4" >
    < counter F = "1" / >
    < /E >
    < counter F = "1" / >
    < / root >

    Then returns many things at the same time as follows:
    1 - list of all of the separate paths
    2 - meter of the depth of each path element attribute value
    3 - the value of the previous counter in 2, is divided by the value of the attribute root counter.

    Thanks in advance :)))

    I'm sorry that not all xml input data correctly.

    You must use the {code} tag to enclose the code snippets. Formatting will be preserved and content not interpreted by the forum software.

    
      
       
        
         
        
       
       
        
       
      
      
       
      
      
       
       
        
       
      
      
      
       
      
      
    
    

    Here's an XQuery query that should work:

    declare function local:list-paths($d as element())
    as element()*
    {
      let $root := name($d)
      let $rootcnt := xs:integer($d/@counter)
      for $i in $d/descendant::*
      return element path
      {
        attribute value {
          substring-after(
            string-join(
              for $j in $i/ancestor-or-self::*
              return name($j)
            , "/"
            )
          , $root
          )
        }
      , attribute counter {$i/@counter}
      , attribute percentage {xs:integer($i/@counter) div $rootcnt}
      }
    };
    
  • Problem with the image change when the object hit an object...

    Im making a small application lite flash... it will actually be a game...
    So theres 2 parts, a part that turns then his press down and the other part which checks if the spinning part touches the part. When I rotate the object and it touches the square, it prints out they collide, but after the thing printed, I gotoAndStop (45);  What does not work? the text appears, but it will not change framework?

    The question remains... What is supposed to change the settings? What is "sound"?  For the code as show you, the object with the planted on that code will be gotoAndStop (45).  If the main scenario is 'His' then you must target as you did the other objects.

  • Best way to import all of the objects located on a new master repository repository work

    Hello

    We have two separate master repositories, one for all repositories of development work (development, ST, UAT, IAT) and one for Production.

    What would be the best approach to export and import all the objects from the Dev repository in the repository of Prod work located on the master repository Prod.

    Internal ID of all repositories of work are different.

    We have tried to put everything in a solution and that export, but it does not work when we tried to import it.

    Successfully, we have exported and imported a simple scenario, but it is not very practical because we have more than 500 scenarios.

    Any suggestions welcome,

    Thank you

    NIC

    I have the same setup. I found it useful to group my scripts into folders and you can then export the records themselves, rather than the individual scenarios.  Import records in the same way that you would incorporate a scenario.  This means that I have only export/import of the 4 elements rather than 300.

  • How to query the object attribute changed his mind in another display object

    JDeveloper 10.1.3.4

    My requirement is I want to be able to query an object (entity based) view on a nonkey attribute where the value I'm looking on can either be in the database on an existing record or only been experienced by updating a different point of view object based on the same entity (and still commit).

    When you query the second display of a value object just updated via a different point of view object, the second view object always returns no rows. I thought that the process is:

    EntityA
    ViewObjectA based on EntityA
    ViewObjectB based on EntityA

    ViewObjectA - line query with the key = 123. update the attribute Y with value 456 (attribute Y in the null database). Feature for EntityA cache, touch 123, attribute is updated with the value 456
    ViewObjectB - line application with attribute = y. wait record in EntityA just updated cache to be returned. Instead, nothing is returned

    Here is the code I was using (where RandScheduleEdit and RandScheduleSearch are the same view the entity RandSchedule object-based objects)
      public static void main(String[] args) {
        String        amDef = "test.cache.model.AppModule";
        String        config = "AppModuleLocal";
        ApplicationModule am = Configuration.createRootApplicationModule(amDef,config);
        
        ViewObject rsEdit = am.findViewObject("RandScheduleEdit");
        Key rsKey = new Key(new Object[]{40});
        Row[] rsEditRows = rsEdit.findByKey(rsKey,1);
        Row rsEditRow = rsEditRows[0];    
        rsEditRow.setAttribute("SId", new Number(7827));
        
        ViewObject rsSearch = am.findViewObject("RandScheduleSearch");
        rsSearch.setWhereClause("S_ID = :SId");
        rsSearch.defineNamedWhereClauseParam("SId", null, null);
        rsSearch.setNamedWhereClauseParam("SId",new Number(7827));
        rsSearch.executeQuery();
        Row rsSearchRow = rsSearch.first();
        
        Configuration.releaseRootApplicationModule(am, true);
      }
    Why not rsSearch finds the S_ID = 7827 record? It seems to only be interviewing new records in the database and ignoring the record updated in cache just updated?

    Any help much appreciated.

    See you soon,.
    Brent

    rsSearch.setNamedWhereClauseParam ("SId", new Number (7827));

    This might help:
    rsSearch.setQueryMode (ViewObject.QUERY_MODE_SCAN_ENTITY_ROWS);

    rsSearch.executeQuery ();

  • Certificate of IOM in the child attribute value form

    In SAP, we have role 'SAP_ALL. And we want to control, that no one in the system doesn't have this role.
    We decided to make it through the certificate in Oracle Identity Manager, but found that it doesn't have this capability, because roles are listed in the form of child resource and Attestation cannot compare something with the value of the attribute on the child form.
    Maybe, I don't know something about certification in Oracle Identity Manager? Can someone help me?

    According to my understanding on the affidavit, it deals with access to the resource, not on the type of access to the resource.

    And your condition is some sort of access to the resource.

    Can you elaborate more on your condition, there will be another solution for the same.

    Like putting the validation at the time of the filing of the application.

    Concerning
    Alabhya Grondin

  • POOR RECOVERY OF THE XML ATTRIBUTE VALUES

    Hi all

    I searched this forum and the web a way to get the value of an xml attribute. The solutions I found always had a problem, the values returned when concatenated without any separators, so I can't know every value.

    Here's how:

    BEGIN

    l_bfile: = BFILENAME ('CTEMP1', nome_fich);
    DBMS_LOB. FileOpen (l_bfile);
    DBMS_LOB. LoadFromFile (l_clob, l_bfile, DBMS_LOB.lobmaxsize);
    DBMS_LOB. FileClose (l_bfile);
    xmlx: = XMLTYPE (l_clob);
    Str: = xmlx. Extract('rowset/Row/@id'). GETSTRINGVAL();

    dbms_output.put_line (' :'|| id values) (STR);
    END;

    Returns the string str: 123456654321 for this example

    <? XML version = "1.0" encoding = "UTF-8"? >
    rowset <>
    < row id = "123456" >
    < name > Peter < / name >
    < / row >
    < row id '654321' = >
    < name > Louis < / name >
    < / row >
    < / lines >


    I want to get each id concatenated for example values (123456:654321) instead, I get the concatenated values (123456654321).


    Does anyone know a work around for this problem?


    Cordially Pedro.

    11.2 you can use listagg()

    SQL> with t as (select xmltype('
      2    
      3      Peter
      4     
      5     
      6      Louis
      7     
      8    ') xcol from dual)
      9  select listagg(v.val,':') within group (order by null) val
     10  from t,xmltable('/rowset/row/@id'
     11  passing t.xcol
     12  columns val varchar2(1000) path '.') v;
    
    VAL
    ------------------------------------------------------------------------------------------------------------------------
    123456:654321  
    

    If not 11.2

    SQL> with t as (select xmltype('
      2  
      3  Peter
      4  
      5  
      6  Louis
      7  
      8  ') xcol from dual)
      9  select xmlquery('fn:string-join(/rowset/row/@id,'':'')'
     10  passing by value t.xcol  returning content) val
     11  from t;
    
    VAL
    ------------------------------------------------------------------------------------------------------------------------
    123456:654321
    
  • the variant attribute value - how fast it is?

    Hello

    There were days OR presentation on attributes of type variant. There are example saying that variant can be used to remove duplicates from table 1 d and this supposed to be a very quick solution. I did some tests and it seems that is not:

    On the other hand the variant is very fast research once all atrubutes are implemented.

    My question is how fast is being variant attributes and how this structure variant is allocated and stored in memory.

    Excerpts from VI attached.

    LabVIEW manages memory for you.

    However, if you make too much reallocation of arrays of surfaces, you might run out of contiguous memory and thus running out of memory, memory fragmentation can cause problems.

  • The code in the script jsx to editing the objects of value

    The software company where I work runs a .jsx script to set all preferences in InDesign.

    InDesign CS 5.5 has an option under general for the modification of named objects prevent the selection of locked objects.

    We need to have this turned off whenever a user creates a new document.

    Some allow the code on what we can add to our existing script? Thank you.

    Phew! You are serious about your preferences. You need to insert a new one in the with block that starts at line 154:

    //General preference panel
    with(app.generalPreferences){
        pageNumbering = PageNumberingOptions.section;    // Page Numbering, View
        toolTips = ToolTipOptions.normal;                    // Tool Tips
    //    toolsPalette = ToolsPaletteOptions.doubleColumn;    // Floating Tool Palette
        completeFontDownloadGlyphLimit = 2000;                // Always Subset Fonts...
        preventSelectingLockedItems = false;
    }
    
  • Change modes, the objects are arranged on a quiz slide

    Right now the incorrect feedback appears behind one of the possible answers and is not readable. Somehow the correct feedback appears on top. How can I make incorrect comments forward. The possibility of organizing objects is greyed out... Thank you!

    E.

    Screen shot 2012-01-17 at 10.57.55 AM.png

    Hello

    You can preview the file (preferably in browser)? He is always behind the answer then? It seems strange, that the captions are normally on the top.

    Lilybiri

  • Changes of the object in appearance after incorporation

    I use illustrator cs5.  I have a link to a photoshop document that I "placed" in my file HAVE current and converted to vector when I placed it.  I now want to integrate the link so that I can send it to a printer thermal transfer for eventual printing on clothing.  When I choose "embed", the linked picture changes appearance.  The image is a logo, which is essentially letters bubble, but when I stir him, letters seem to "inflate" and they are now crushed each other.  Anyone know why this is happening?  Thank you.

    Why you placing and embedding an Illustrator file?. Just open it, select what you need, copy and paste into the new document. Double-click the scale tool to open its options and check that the features of the scale and effects is verified, then the scale.

  • Please someone told me how to Center justify text boxes in a window created in Javascript for Illustrator.  Think it must be done when creating the objects, but I'm new to scripting and do not know the syntax.

    function getCutterID() {}

    var CWindow is new window ('dialog', "ID layout");.

    var CInputGroup is CWindow.add ('group');.

    var CText = CInputGroup.add ('edittext', undefined, ' ');

    CText.characters = 7;

    CText.active = true;

    var CButtonGroup is CWindow.add ('group');.

    CButtonGroup.alignment = 'right '; CButtonGroup.add ('button', undefined, 'OK'); CButtonGroup.add ('button', undefined, 'Cancel');

    CButtonGroup.active = true

    CWindow.show ();

    return CText.text

    CWindow.close ();

    };

    ScriptUI for Dummies | Peter Kahrel

    See page 60.

    It may be useful

  • Get the attribute value of a def page table by using el expression.

    Hello

    Use Jdeveloper 11.1.2.0.0 and have a requirement like this for which a sample is created. Requirement is as follows...

    1. do you have a Taskflow with a readonly employee table.
    2. by clicking on a button called "itinerary" checks if the selected line, the attribute Manager id value = 200 then go to the first page on the other if the value attribute id manager is 200 then go to the second page.


    Through the def page, if it has the form, then we can access the attributes like #{data.view_FirstPageDef.ManagerId}. In the case of acquisition of the same attribute value from the table using the def page? is what I am unable to get...

    Come to the notion of routing using the router on Taskflow activity. But I am unable to get the selected row in a table of employee page def attribute value. Can anyone suggest on the same...


    Thank you and best regards,
    Olivier G

    On the router, right-click on its icon in the workflow and create a page definition. Then in the file def, add an iterator based on the same view of the table object in the first page, then add a value attribute that is mapped to the managerId in the iterator of the View object. Finally in the router, you can write EL expressions along the lines of #{bindings. ManagerId.inputValue = 200} or #{bindings. ManagerId.inputValue! = 200}.

    CM.

Maybe you are looking for