Problem when Rollback an operation of creating scenario master / detail

Hello.

I use 11.1.1.7.0, and I'll try to explain my problem as clear as I could.

I have in my DataControls

  • StateView1
    • SubstateView2

I did drag SubstateView2 to my .jspx and create a master table - table in detail. This method works.

My data are: State1 and State2, state3, air conditioned and have related subreports.

Then I drag and drop a button to make the new State functionality. Create operation is called, a popup with the form is open, and it works too.

Then I drag and drop a button to make the new subreport feature. Create1 operation is called, a popup with the form is open. This is somethig wrong.

Suppose I chose State2.

I click on subreport again, but I cancel the operation. Rollback is executed, and it works too.

My question is now: I click on new New subreport button with State2 selected in the main Table. In this case:

  • I don't know how, but State1 is selected (and I did this).
  • Then, reload table detail with State1 associated subreports.
  • Popup is open to create a subreport State1 (but not State2 substate than I expected).

What I am doing wrong? Any help would be much appreciated.

Concerning

Well, finally, when you close or cancelling the popup, this code works fine:

DCIteratorBinding parentIter = ADFUtils.findIterator("StateView1Iterator");
Key parentKey = parentIter.getCurrentRow().getKey();
//You can add your operation code here, i have used simple Cancel operation with Rollback andExecute
OperationBinding rollback = ADFUtils.getBindingContainer().getOperationBinding("Rollback");
rollback.execute();
// Execute for StateView1
OperationBinding execute = ADFUtils.getBindingContainer().getOperationBinding("Execute");
execute.execute();
// Execute for SubstateView2
OperationBinding execute1 = ADFUtils.getBindingContainer().getOperationBinding("Execute1");
execute1.execute();
parentIter.setCurrentRowWithKey(parentKey.toStringFormat(true));

Tags: Java

Similar Questions

  • Validation problem unique scenario master detail.

    Hello

    I have three tables involved in a scenario master / detail.  Tables A, master, detail B and C join him table for the * to * relationship between A and B.  The Association links were already in place to illustrate the relationships.  The doDml() of the main entity was substituted to support business logic. Has also been overridden preprareForDml() method.  When running the tester Application Module to test the scenario for a single validation, the following error appears:

    I use Jdev 12.1.3

    in the same way as in doML():

    http://docs.Oracle.com/CD/E12839_01/apirefs.1111/e10653/Oracle/JBO/Server/EntityImpl.html#prepareForDML%28int, %20oracle.jbo.server.TransactionEvent%29

    https://docs.Oracle.com/CD/E25178_01/Web.1111/b31974/bcrules.htm#sm0240

    but I would like to do these operations in the click on the button create/edit (before calling Commit), OR DB trigger level and then refresh the data of VO

  • Cannot create relationship master detail for datablock

    Hi guys, my form currently has a relationship master detail for 1 datablock and everything works well. I now have a need to do a datablock different, based on the same table as the previous datablock but for some reason any that it won't let me create the same master-detail relationships, as I did on the 1st slice (and I need the same relationships to sort the block shows the same data as the previous datablock).

    Anyone know why it won't let me create the relationship?

    I encountered a similar problem before. When you say that you cannot create relationships is - it simply because you cannot select the master/detail through the wizard? If this is the case, you should be able to make the relationship manually, or at least I could when I had the same problem. Although I can't help, but wonder why it wouldn't let you select them in the wizard. There may be an underlying reason for this. But anyway, try and make the relationship manually and let me know if it works.

  • How to create a master/detail with a PK of 4 columns form

    I want to create a report/form (or a master-detail form) based on a table with a primary key of 4 columns. But only up to 2 columns can be présicer at APEX. How can I handle this?

    Sincerely,

    James

    Hi James,

    I think Mike suggests that you create a SQL view on the table and bring together the different values of the primary key in a primary key, unique, unique, nickname. You can always include the individual columns in the SQL, but you can then use this new column as the primary key on a form. However, you also need to create instead of triggers to manage the changes/insertions/deletions that SQL does not update the tables in a view. (See: [http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28370/create_trigger.htm#i2064426] for more details on this Oracle or Re: how to upgrade the table or view for an example within the Apex).

    Ideally, however, you should only really need a column of key - is it necessary for four?

    Andy

  • Problem when printing the PDF file created by InDesign

    OK, here's the scenario.

    I have a flyer, created in InDesign. I drew a grey curve (in InDesign) that goes at the top of each page.

    I import a transparent logo in PSD format and place it on top of the grey curve.

    In InDesign, and when I PDF looks good (at any zoom level).

    However, when I print, there is a slight outline around the logo transparent and it has a slightly different shade of gray in the background (it is different from the curve).

    Does anyone know why this might be?  I also tried to import the logo with the same gray background as in InDesign, but the same problem occurs.

    Any help is appreciated!

    "" See InDesignSecrets "Blog Archive" eliminating YDB (yucky of discolored box) Syndrome

  • Problem with vertical scroll bar of the block master detail

    Have a TC of canvas by tabs with 3 tabs - tab A, B and C

    Tab C contains a block of master child multi. Each block can display 5 records.

    C tab

    -> Master Block can display 5 records

    -> Child block can show 5 records. Child block has nearly 20 columns to display. It is therefore a big canvas

    question

    It comes with vertical toolbars on Master Block and child block.

    The horizontal toolbar works very well.

    But if there are more than 5 records, we are not able to scroll the vertical toolbar.

    Remember reading somewhere that for a block of single bar scrolling can be active. Please specify if this is correct and indicate what are the appropriate actions that we can take.

    Thank you

    951614 wrote:

    But if there are more than 5 records, we are not able to scroll the vertical toolbar.

    You have a separate master and detail block, right scroll bar?

    If so, then which bar scroll creating problem for you, master? detail? or both?

    Make sure you have the block with the appropriate scroll bar card, it can possible you have set the bar of scrolling detail with master block and main scroll bar with detail block.

    951614 wrote:

    Remember reading somewhere that for a block of single bar scrolling can be active. Please specify if this is correct and indicate what are the appropriate actions that we can take.

    It is not correct.

    You used the scroll bar with individual block. There is no restriction.

  • How can I create a master detail pages

    I use dreamweaver cc. If I click on help, I get the info how it works in older versions. Also in the manual, only older versions are described. I don't know why adobe does this. Can someone show me step by step how to do this in dreamweaver cc?

    Does that help?

    List of Master Dynamic Dreamweaver with retail - YouTube link

  • Problems on master detail CRUD

    Dear all,

    I'm trying to understand how ADFBC manages the relationship master detail like this
    is the first time where I need to manage the table relation.
    Practice, I only used a table but this time I need to manage the relationship, too.

    I have two tables that follow. They have a to-many.
    PART_ID in the PARTS_CODE table is filled by a sequence of DB.
    PARTS_CODE                                   PART_DESC
         - PART_ID (PK)                              - PART_ID (PK)
         - RANGE                                   - REGION  (PK)
         - CATEGORY                              - DESC
    Use case is like this:
    Table PARTS_CODE contains data on the parties while PARTS_DESC contains information on the description of the specific region of the parts.

    Now, I created a View object that links the two tables. Then I drag this display object from
    my data as a control table update-able.

    I just have a few questions on the implementations:
    1 when I drag and drop the CreateInsert button and click on it, I noticed that it adds a new line to the
    table, but I noticed that it creates the Text Input component only on the associated columns
    the PARTS_CODE Table, the other columns for the PART_DESC does not have the user interface components.
    How to solve this problem?

    2. how to manage the relationship such that when it inserts the data on the PARTS_CODE, I need
    to get the DB generated sequence number and put it in the PART_DESC table

    3. any demonstration/links which shows the CRUD operations involving arrays of master detail?

    I searched the forum for Crud master / detail, but I can only see the display of the relationship and not
    CRUD operations.

    Found this blog too http://andrejusb.blogspot.com/2009/03/create-operation-for-master-detail.html, but
    I can't even fully understand.

    JDEV 11G PS3

    Thank you

    You will need to create a black and white view link in your main table and details. The blog provides the code example if you step through the code, you will get to know exactly how it's done.

  • I can't register names and create playlist appear windows media player acountered a problem when creating or saving the playlist

    appear windows media player acountered a problem when creating or saving the playlist

    To the WMP library, please click on organize and select manage libraries - music . What places are? If there is no available location, remove them and also make sure that a default save location is set. Do the same for the other libraries (videos, pictures, and Recorded TV).

    If this does not help, close WMP, open Windows Explorer, right-click the music library, select Properties and click on restore by default . After that, make sure that a backup location is defined (as indicated by a check mark).

    Tim Baets
    http://www.BM-productions.TK

  • Problem when creating objects to the point user clicks on the screen

    I'll sometimes have a problem when clicking on the screen and have an object at this time created. 95% of the time it works properly, but sometimes, the object is created in a different area of the screen.

    Everyone comes across something similar? Or is it likely to be just a problem with the Simulator?

    Thank you very much for any help offered.

    If you want a "newLabel" to appear in the contact details of your mouseEvent, but only if details of mouseEvent are lower on the screen (having a higher value) at the height of your textButton.

    If your TextButton object does not touch the top of the stage (y = 0), you'll want to write this instead:

    if (event.localY > textButton.y + textButton.height)
    

    It may be a good idea to write it anyway, just in case you want to change the position of the TextButton.

    In addition, localX and localY properties of your mouseEvent are compared to the event containing sprite.  for example, if you have a canvas Sprite that is a parent of your textButton and is tuned for the mouseEvent.  otherwise, if there is no sprite contains (second phase) for your event, you'll want to use stageX and stageY instead.

    I guess since I can't be sure of your intentions here, but try this instead:

    private function createItem(event:MouseEvent):void
         {
         if (event.stageY > textButton.y + textButton.height)
            {
            var newLabel:TextField = new TextField();
            newLabel.x = event.stageX;
            newLabel.y = event.stageY;
            newLabel.text = "test";
            newLabel.setTextFormat(userTextFormat);
    
            addChild(newLabel);
            }
         }
    
  • Have a problem when you create or open project

    Only, I could get V1 to work with administrator privileges, otherwise he threw the message "Adobe Premiere Elements has encountered a problem and needs to close"

    So I've upgraded to V10, but now click on the same block with users with administrator privileges.

    Occurs when I try to create a new project (when you click OK after entering the new details) or when you try to open an existing project.

    When you create a new project files and home folders are created before the error message and crash.

    I use Windows XP SP3 with all latest updates.

    So I can't anything with PE10.

    Error code is 0xc0000005

    Flag 0 x 00000000

    Folder 0 x 000000000000000

    Address 0x00000000196cd0a3

    Any ideas?

    Davyxyz

    Are you using Premiere Elements on a base of home computer a user to a network at work or school? I ask because you wrote "..." his block with the users with administrator privileges. ?

    Let us look first at your computer resources.

    Windows XP Professional SP3 32 bit

    The amount of RAM is installed and the amount of RAM available? How much free space on the hard disk on the Local C drive? What is the capacity of the Local C drive? Work with additional hard disks internal or external? If so, how they are formatted?

    You have the latest version of QuickTime installed on your computer?

    Have you checked that your video and audio card drivers are updated according to the web site of the manufacturer of these cards, not only the Device Manager?

    Please confirm the earlier version of Premiere Elements you used... has this elements 1 first?

    Let us start here and then decide what then.

    Thank you.

    RTA

  • Problem when using bb-ant-tools to create a multi-module application

    I am trying to redesign an application prototype into something more adapted to our needs. The prototype was built with the first version of the Eclipse plugin, but I've converted successfully to the current version.

    I have same configuration Ant with bb-ant-tools for it and have successfully build the application and the executable running on the real device.

    But this prototype had code to put them all in a single module, even the source to a third party library with support for managing messages JSON ('J2ME JSON").

    We need to build several slightly different applications from the same code base (differing mainly in aspects of the customer specific look and wording etc.).

    So I want to divide the code into several distinct modules, each providing it is build own artifacts and have a top-level project for each variant you want to produce.

    So at the beginning I want to have these three modules:

    • J2ME-json - the third party lib
    • Code base - the largest part of the source code and default localization resources
    • my-app - the main class, icon resources (and in the future some property files and resources specific to the customer location)

    I have Ant generate files for each module, which compiles and signs packages resulting - seems ok so far, no problem when executing the task of sigtool. The build for 'j2me-json' file and 'code base' defines the product as a type = "library".

    The build for "my-app" file collects the artifacts to build (* .jar, * .cod, etc.) and copy them to a local directory "dependencies", where they will be extracted for the compilation of the actual application. After compiling and signing all are copied to a deployment directory.

    Deploy the application on the device via the 'Desktop Manager' but when I run it on the device I get the error message:

    Error at startup MyAppId: Module ' code$ 2dbase ' attempts to access a secure API.

    The strange thing is, that the "Tool of Signature" window shows demand of signature of all modules during the phase of signature of the request, not only for the request form itself as the error message suggests. And I even sign the modules separately because of this message - but it does not help...

    So, what's wrong here?

    Here is the definition of the actual target of the relevant elements:

                                                                                          
    
                        
    
                                                                                                                                
    

    The *.alx file that looks like this:

             My App Name      1.2.1.35               MyAppId.codj2me-json.codcode-base.cod         
    

    I'd appreciate any help with this problem! Thanks in advance...

    Horst Weber.

    Found!

    My mistake was that I thought that I can mix attribute and property file inclusion statements in the task of jdp bb-ant-tools. My actual task for libraries looked like this:

    
    

    Obviously, the author didn't want to handle the ambiguity when someone sets the same property as an attribute, and in the file. So you should use either one or the other: If you use properties files, then declare all your properties here.

    So this message "Module attempts to access an API secured." seems to be very misleading: it disappered after correction of the generation of files and I now have a common application.

  • I'm having a problem when I open My Documents, the window opens and looks great, I can go to any folder and open it and all is well again

    I'm having a problem when I open My Documents, the window opens and looks great, I can go to any folder and open it and everything is well again, however if I then opened my pictures, and then open a file... some files, less than a second after they are open [and the pictures show] will make the window My Documents to disappear also all the desktop icons disappear the computer will then will reset it self , add all the icons and waiting for me to do something.

    I have no idea where to start looking for this problem.
    I do not have a disk operating system is
    When I try to save an attachment, as in email, Explorer opens, I choose a location to save it, then immediately Expolrer closed! I can't save an attachment

    Hello Philipwk,

    Thank you for your message.  Please provide comments to a few questions so that we can better help you get your problem solved.
    1. are there recent changes made to your system, namely the hardware or the software?
    2 How long present this problem?
    Here are two methods to try, please try in order.  If a system restore fix the problem, do not perform step 2.
    Step 1:
    Run a system restore to before that was the problem.  Please click the link below to get instructions from system restore.
    Step 2:
    Create and test the new user profile.
    Click 'Start' > right click on 'My computer' > select 'manage '.
    Double-click 'Users and groups' > below, select "users".
    In the pane, right click on the space empty and select 'new user '.
    Enter the identification information you will retain and select OK
    Right-click the user account that you just created, and then select "Properties".
    Select the tab "member of" > click on "add".
    Type Administrators in the field and select "check name".
    Once administrators is added, click OK
    Disconnect and connect again your new account, opening pictures with your new trial account.  You can even browse your other photo folder by going to the following location:
    c:\Documents and Settings\ (user account) \My Documents\My images
    If it works, your profile has been altered somehow.  You can then start to copy your data from your old profile to it.
    Please let us know if it did or did not work for you.
    See you soon

    Engineer Jason Microsoft Support answers visit our Microsoft answers feedback Forum and let us know what you think.

  • Why do' are your security scan show no problem when my advanced system of care shows viruses that microsoft says is a scanning problem

    downloaded your safty scan that shows no problem. Yet, when I do a manual scan with advanced system of care 2013 antivirus it shows at the bottom of the page which files are analyzed, among these files are the ones microsoft safty scanner shows as a problem. I sent telecom Bt with whom I have an account to complain about the lack of connection. An Aideen Meeham phoned to check my complaint. She suggested virus in my computer and ask someone to look in my PC get rid. During the advance made the scan and corrected the problems, the results are placed in a newspaper.

    Maybe if you email me I can attach logs to my response.

    Hare JH.

    SSB you can email me on * address email is removed from the privacy *

    All this is based on trust.

    http://www.brighthub.com/computing/SMB-security/reviews/30034.aspx

    I do not trust any suite of applications or utilities include a registry cleaner or promises t optimize Windows...

    Under any circumstances, registry cleaners will not improve performance, double the speed of a computer or any other false clams are doing.

    At the time of Windows 9 x, it is important to control the size of the registry, and to that end, Microsoft has released their own registry cleaner that removed only the entries that have been quite safe to remove.

    BUT, it was at the time of Windows 9 x Windows NT and all operating systems created by TN do not manage the registry in the same way that Windows 9 x has done. No users alive will never install enough things to push Windows NT registry on its maximum size, and a registry cleaner has LITTLE to NO VALUE when run on Windows NT or more because the orphan entries are ignored by Windows NT and higher.

  • Help! How to retain the OutputText component status in the browser when the restore operation is called?

    I managed to apply the texts of edtiable as output check the CAPTCHA function by using clientListener and serverListener. a group of texts are displayed using the tags < ad: iterator > in the output page, when you click on a text of output, it is alternated with the status of selected or deselected.

    then click on the button restore to call the application module restore operation, chose these texts out status will be clean in brower he but correspong values on the server side are still in selected state.

    My problem is that how can I retain the OutputText component status in the browser when the restore operation is called?

    I have also some ADF DURATION issues:

    a. when operation rollback is called, will be updated on all the components in the page?

    b. when I set "binding" compenent properties < ad: iterator > related to the backing bean property, why is there only one child to < ad: iterator > compenent: activeOutputText, not a collection of activeOutputText?

    c. when I try to set the property 'id' of activeOutputText with #{terminalItem.AbbrTerminalM} and run and it prompted this invalid id value. real value of this EL is alphabetical.

    JSF page:

    
            <af:resource type="javascript">
                function processTerminalCodeClicked(event){
                   var source = event.getSource();
                   var terminalCode = source.getProperty("terminalCode");
                   var isChecked;
                   if(source.getInlineStyleProperty("background-color")!=""){// selected
                      source.setInlineStyleProperty("background-color","");
                      isChecked = false;
                   }else{// not selected
                      source.setInlineStyleProperty("background-color","#94ff94");
                      isChecked = true;
                   }
                    AdfCustomEvent.queue(source, "terminalCodeClicked",  {'terminalCode' : terminalCode, 'terminalCodeChecked' : isChecked},  false);
                }
               
               
            </af:resource>
    
    ...
    
    
    <af:iterator id="i1" value="#{bindings.TerminalView11.collectionModel}" var="terminalItem" rows="100">
                                                <af:panelGroupLayout id="pgl6">
                                                    <af:activeOutputText  value="#{terminalItem.AbbrTerminalM}"
                                                                         id="aot1" clientComponent="true"
                                                                         inlineStyle="cursor:pointer; ">
                                                         <af:clientListener type="click"
                                                                           method="processTerminalCodeClicked"/>
                                                         <af:clientAttribute name="terminalCode"
                                                                        value="#{terminalItem.TerminalC}"/>
                                                         <af:serverListener type="terminalCodeClicked"
                                                                       method="#{pageFlowScope.yardPlanControllerManagedBean.processTerminalCodeClicked}"/>
                                                     </af:activeOutputText>
                                            </af:panelGroupLayout>
    </af:iterator>
    
    

    Managed bean:

    private List terminalCodeList = new ArrayList();
    ....
    public void processTerminalCodeClicked(ClientEvent clientEvent) {
          String terminalCode = (String)clientEvent.getParameters().get("terminalCode");
          Boolean terminalCodeChecked = (Boolean)clientEvent.getParameters().get("terminalCodeChecked");
    
          if(!terminalCodeChecked.booleanValue()&& terminalCodeList.contains(terminalCode)){
              terminalCodeList.remove(terminalCode);
          } else if(terminalCodeChecked.booleanValue() && !terminalCodeList.contains(terminalCode)){
              terminalCodeList.add(terminalCode);
          }
          if(terminalCodeList!=null && !terminalCodeList.isEmpty()){
             setValueToSession("currentTerminalCodeList", terminalCodeList);
          }else{
               FacesContext ctx2 = FacesContext.getCurrentInstance();
               FacesMessage msg2 = new FacesMessage(FacesMessage.SEVERITY_ERROR,"no terminal is selected!", "Please at least select one terminal!");
               ctx2.addMessage(null, msg2);
          }
    }
    
    

    I managed to reslove parts of the problem and the selected state of the output text can be kept now.

    Remember the State selected in the list in bean managed, trigger refreshing of the page layout group containing all the output text and selected status of the output is determined by inlineStyle = "#{pageFlowScope.yardPlanControllerManagedBean.terminalInlineStyle"} "

    JSF page:

    
                function processTerminalCodeClicked(event){
                   var source = event.getSource();
                   var terminalCode = source.getProperty("terminalCode");
                   var abbrTerminalM = source.getProperty("abbrTerminalM");
                   var isChecked;
                   if(source.getInlineStyleProperty("background-color")!=""){// selected
                      //source.setInlineStyleProperty("background-color","");
                      isChecked = false;
                   }else{// not selected
                      //source.setInlineStyleProperty("background-color","#94ff94");
                      isChecked = true;
                   }
                    AdfCustomEvent.queue(source, "terminalCodeClicked",  {'terminalCode' : terminalCode, 'abbrTerminalM': abbrTerminalM, 'terminalCodeChecked' : isChecked},  false);
                }
    
    
    
     
      
        
        
        
        
       
     
    
    

    Managed bean:

      private List abbrTerminalMList = new ArrayList();
    
        public void processTerminalCodeClicked(ClientEvent clientEvent) {
          String terminalCode = (String)clientEvent.getParameters().get("terminalCode");
          String abbrTerminalM = (String)clientEvent.getParameters().get("abbrTerminalM");
          Boolean terminalCodeChecked = (Boolean)clientEvent.getParameters().get("terminalCodeChecked");
          if(!terminalCodeChecked.booleanValue()&& terminalCodeList.contains(terminalCode)){
              if(terminalCodeList.size()>1){
                  terminalCodeList.remove(terminalCode);
                  abbrTerminalMList.remove(abbrTerminalM);
              }
          } else if(terminalCodeChecked.booleanValue() && !terminalCodeList.contains(terminalCode)){
              terminalCodeList.add(terminalCode);
              abbrTerminalMList.add(abbrTerminalM);
          }
         AdfFacesContext.getCurrentInstance().addPartialTarget(terminalsPanelGroupLayout);
        }
    
        public String getTerminalInlineStyle() {
            String inlineStyle = "cursor:pointer;";
            if(terminalActiveOutputText != null){
                String abbrTerminalM = terminalActiveOutputText.getValue();
                if(abbrTerminalM != null && abbrTerminalMList.contains(abbrTerminalM)){
                   inlineStyle = "cursor:pointer;background-color:#94ff94";
                }
            }
            return inlineStyle;
        }
    

Maybe you are looking for

  • M300: Don't forget the extended desktop settings

    I use my M300 with a monitor and an extended desktop (i.e. different images on both monitors). I also have the external monitor put in place for a higher resolution than the lcd (and on the left of the LCD not allowed). However, I have to redo the se

  • HP Pavilion 15 p073tx: System stops unexpectedly

    I recently bought computer hp laptop Pavilion 15 P073tx. From the day 2, he began to create problems. My laptop switches randomly at any time without giving any notification when there is enough available battery. After that when I press the power bu

  • Windows dream scene

    I use Vista Ultimate SP1. I cancelled the load downwards / installing processes Windows dream scene while the automatic update was underway. Now, I want to download and install this update, but it is not available in the list to downloan. How to inst

  • Problems connecting to the Wi - Fi network

    * Original title: Internet connectivity I have a laptop with Windows 7.  I can connect to the internet with the laptop very well everywhere, but home.   I have several other devices on my home network that connect and work correctly.   There is no pr

  • Impossible to install printer Brother MFC 7420/7820 = in Windows 7

    I tray to install a brother MFC 7420/7820 for windows vista = printer on my new computer with windows 7 installed sistem, but nothing happens. Are the system close to compatibility and I need the driver for windows 7? * title - why my count (windows