Problem when Rollback a Create operation in Master-Detail scenario

Hi.
I'm using 11.1.1.7.0 and I'll try to explain my issue as clear as I could.
In my DataControls, I have
StateView1SubstateView2
I drag and drop SubstateView2 to my .jspx and create a Master table - Detail table. This works.
My data are: State1, State2, and State3, all with related substates.
Then I drag and drop a button to make New State functionality. Create operation is invoked, a popup with the form is opened, and it works too.
Then I drag and drop a button to make New Substate functionality. Create1 operation is invoked, a popup with the form is opened. Here it's somethig wrong.
Suppose I choose State2.
I click New Substate, but I cancel the operation. Rollback is executed, and it works too.
My issue comes now: I click again New Substate button with State2 selected in Master Table. This happens:
I don't know how, but State1 is selected (and I didn't do this).
Then, Detail table reloads with State1 related substates.
Popup is opened to create a State1 substate (but not State2 substate as I expected).
What am I doing wrong? Any help would be very appreciated.
Regards

Well, finally, when closing 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));

Similar Messages

  • Create Operation for Master-Detail Relationship Using Composite Association

    My requirement is to insert record for both the master and the detail at the same time using a single create insert action.I was successful in doing so using the composite association but when I am trying to commit the new record, I am getting the error that for the primary key Null value cannot be inserted.Then, I made the PK for both the master and detail EO's as DBSequence type which resolved the issue.
    My query is , Is there any alternative way to fulfill my requirement by "NOT" using the type for primary key to be DBSequence type?
    Thank you for your help.

    I also want to insert into master detail table in single form but when I insert in master form and then go to detail form for inserting value the master data automatically loss when I press detail create insert button. I am Using Two create insert button one for master and one for detail.
    I have also tried this function for solving my problem in other way but the problem is same
    public String cb8_action() {
    // Add event code here...
    BindingContainer bindings =BindingContext.getCurrent().getCurrentBindingsEntry();
    //OperationBinding operationBinding = bindings.getOperationBinding("CreateInsert");
    //Object result = operationBinding.execute();
    OperationBinding operationBinding1 = bindings.getOperationBinding("CreateInsert1");
    Object result1 = operationBinding1.execute();
    if (!operationBinding1.getErrors().isEmpty()) {
    return null;
    return null;
    Please Help me.

  • "Failed to validate all rows" when inserting in master detail scenario

    Hi,
    I have problem writing data in a master detail scenario..
    i use the following bean method to write data.
    Data is inserted in the master table successfully but when i try to commit in the details table i get the error "Failed to validate all rows in a transaction."
    public void save(ActionEvent actionEvent)
    //writing into master table
    DCBindingContainer bindings =
    (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    DCIteratorBinding iterBind =
    (DCIteratorBinding)bindings.get("Master1Iterator");
    MasterVOImpl vo_pr = (MasterVOImpl ) iterBind.getViewObject();
    Row r=vo_pr.createRow();
    r.setAttribute("Name", name);
    Number num =(new oracle.jbo.server.SequenceImpl("new_seq",vo_pr.getDBTransaction())).getSequenceNumber();
    r.setAttribute("Id",num);
    vo_pr.insertRow(r);
    vo_pr.getDBTransaction().commit();
    //writing into details table
    DCIteratorBinding scopeiterBind =
    (DCIteratorBinding)bindings.get("Detail2Iterator");
    DetailVOImpl vo_sc = (DetailVOImpl) scopeiterBind.getViewObject();
    Row rs=vo_sc.createRow();
    rs.setAttribute("iddetail",iddetail);
    rs.setAttribute("Name", Name);
    rs.setAttribute("id",num);
    vo_sc.insertRow(rs);
    vo_sc.getDBTransaction().commit();
    Note: the Detail iterator used here is the one under the master in the AM

    In case your model defined a view link from master to detail should try to get the detail iterator from the master and use this to create the new row.
    Row r=vo_pr.createRow();
    r.setAttribute("Name", name);
    Number num =(new oracle.jbo.server.SequenceImpl("new_seq",vo_pr.getDBTransaction())).getSequenceNumber();
    r.setAttribute("Id",num);
    vo_pr.insertRow(r);
    // this method gets the detail iterator for the master row you just created.
    // The name of the method depends on the view link in your model you expose to the master view
    Row rs=vo_pr.getDetail().createRow();
    rs.setAttribute("iddetail",iddetail);
    rs.setAttribute("Name", Name);
    // this value should be added by the framework
    //rs.setAttribute("id",num);
    vo_sc.insertRow(rs);
    vo_pr.getDBTransaction().commit();Timo

  • How to sort master-node in master-detail scenario without losing subnodes?

    Hi,
    I've a master-detail scenario and want to sort my master node.
    How can I sort the master node without losing the detail-subnodes?
    If I take a look in class CL_WDR_TABLE_METHOD_HNDL and method  IF_WD_TABLE_METHOD_HNDL~APPLY_SORTING
    Sorting is done by
    - unload node with context_node->get_static_attributes_table into an internal table
    - keeping node state like lead_selection(s) and attribute_properties
    - sort internal table
    - bind internal table to node
    - set lead_selection and properties
    But all subnodes are gone.
    How do you sort a master node?
    Thanks and Regards
    Carsten

    I think you have to write your own logic for that . May be you can implement IF_WD_TABLE_METHOD_HNDL in your class and extend the current logic to support subnodes.

  • Problem with crude operations in master detail tables

    Hi,
    I have Master-Detail tables in my page and crud operations are there for both the tables. Create/delete/edit are working fine on the master table but i am facing the following problems for the detail table
    1.delete operation is alway referring to the 1st record.
    2.Edit operation is working fine for the 1st time but when i amt trying to edit any other record it's refer to the previous record, if i did the same again then it's pointing to current record.
    Selected row keys and selectionListner and row selection is defined on my detail table as shown below.
    selectedRowKeys="#{bindings.CmSubscriberTerritoryXrefView1.collectionModel.selectedRow}"
    selectionListener="#{bindings.CmSubscriberTerritoryXrefView1.collectionModel.makeCurrent}"
    rowSelection="single"
    Please do need full.

    Hi,
    Thanks for your quick reply.
    I am using JDeveloper 11g. Yes i select the record, i am using a popup for delete operation so i write a button which invoke popup in that popup i am asking confirmation like do you wanted to delete for not. in the OK button i have return logic like
    BindingContainer bindings = getBindings();
    OperationBinding operationBinding =
    bindings.getOperationBinding("Delete2");
    Object result = operationBinding.execute();
    if (!operationBinding.getErrors().isEmpty()) {
    return null;
    operationBinding = bindings.getOperationBinding("Commit");
    result = operationBinding.execute();
    if (!operationBinding.getErrors().isEmpty()) {
    return null;
    FacesContext fc = FacesContext.getCurrentInstance();

  • Problems when I try create a database with DBCA

    Hello,
    I have created a clonic template with the DBCA of one of my Databases.
    When I try create Database with the template the DBCA does not do anything.
    No error messages.
    My Oracle is 9i 9.2.0.6.
    Somebody can help me?

    Can you check the alert log/ trace file if you can see any error message there ??

  • Refresh problem by combination of programmatic view and master-detail page

    I am using the latest versions of both ADF (10.1.3.2.0.4066) and JHeadstart (10.1.3.1.26) and I have an application with 1 page in which I have as root page a programmatic view (table-form) which I fill with request parameters.
    Under that programmatic view I have a master (table) with 3 detail pages (table).
    The programmatic view is populated with always 1 row, which goes always correct.
    The problem is occuring when iterating through the first entity based master table which contains lots of rows. Then the problem is that when you navigate through the master table the detail pages are refreshed correctly, but when you navigate back to the first row that row won't get updated.
    The next thing I tried is create a new jheadstart application with only the master-detail pages (entity based), so without the programmatic view, and then the iterating through the master table and the refresh of the child tables is working correct.
    What can be the problem here.

    Have you tested this in the ADF Business Components Browser? That's the tester that you can find by right-clicking your ADF BC Application Module and choosing Test. If you go to the View Object instance for the programmatic view, and using the ViewLinks to its children, do you get the same behavior as in the JHeadstart application?
    kind regards,
    Sandra Muller
    JHeadstart Team
    Oracle Consulting

  • Possible error when using ADFBC selectOneListbox in a master-detail page

    Hi Everyone,
    I'm trying to setup master - detail page with ADF BC, using Dept / Emp.
    I want to use a listbox for the master object, rather than the form + navigation commands as shown in the classic demos, so I've setup a listbox as following:
    <af:selectOneListbox value="#{bindings.DepartmentsView1.inputValue}"
    label="Available Flows:"
    id="listbox_depts">
    <f:selectItems value="#{bindings.DepartmentsView1.items}"
    id="id_Selcet_Items"/>
    The details element is the classic read-only table created by dragging the Employees view (under the departments) into the page.
    The problem arises when I run the page - the list box shows all the departments, but when I click on different departments the table data does NOT change (as it would when navigating between rows with the classical form navigation buttons).
    I've set up the Table's partial triggers to both of the listbox ids: id_Selcet_Items and listbox_depts but this doesn't help.
    Is this a bug, or am I doing something totally wrong?
    Tal.

    Tal,
    You need to drop the Dept collection onto your page as a navigation list.
    Blaise

  • How to create a specific  master detail

    hi,
    my problem is that i have 3 tables(tab1,tab2,tab3);
    tab1 is master of tab2.
    tab 2 is master of tab3.
    i would like to make a master detail page between tab1 and tab3 without using tab2.
    i am using jdev10.1.3.2 and ADF BC Swing.
    can you help me.
    7rouz

    i've the same kind of treatement in my application.
    i did it this way.
    i created a view object based on entity tab1.
    i created a view object based on a join of entities tab2 and tab3
    (don't forget to create associations between your 3 entites first)
    i then created a viewlink between these two views.
    In the application module, i added the first view and then the second view via the first view.
    You can then use this to created your master/detail relation from the data control palette.
    hope it helps.
    J.

  • ADF 10.1.3.4: 'losing' newly created row in master-detail-detail.

    Situation:
    I have a page in JSF/ADF with the following set up.
    Top-half of the page is a table.
    Underneath the table is on the left a selectonelistbox component and next to it on the right a tabbed section.
    The table -> selectonelistbox relation is master-detail.
    The selectonelistbox -> tabbed section is master-detail.
    So when you change the selection in de seletonelistbox the data in the tabbed section changes.
    One of the functions in a tabbed section is a createinsert.
    step1: select value '1' in the selectonelistbox.
    step1: a new row is create (with createinsert). there is no commit yet, the row is in the entity cache.
    step2: change the selection to '2' in the selectonelistbox.
    step3: create a new row (with createinsert).
    step4: commit the changes.
    We see that only the row of the current row is committed. The newly created row under value '1' has disappeared.
    There are no warnings/exception thrown.
    How can I commit all newly created rows?
    It must be possible to created several new rows, before committing if it is possible.
    Some specs:
    JDeveloper 10.1.3.4.0
    using the embedded OC4J server
    JDK
    Thanks,
    Goldhorn

    Which technology are you using?

  • Create link in Master Detail form

    Hi,
    I created a master-detail form based on Dept, Emp tables. For each employee, I would like to go to the employee's dependent information (like a master -> detail -> detail situation). Can I create a link on the employee field (empno) so that I can link to my employee-dependent form?
    Kelly.

    Hi,
    I created a master-detail form based on Dept, Emp tables. For each employee, I would like to go to the employee's dependent information (like a master -> detail -> detail situation). Can I create a link on the employee field (empno) so that I can link to my employee-dependent form?
    Kelly.

  • Problem when trying to create a template with vdi 3.2.1

    Hi,
    I´m using vdi 3.2.1 in solaris 10 x86. I´m using Virtualbox in the same server as a desktop provider. I created a windows 7 virtual machine without any problem.
    My problem appears when I´m trying to import that VM into a template, I follow "Pools --> then select the pool --> And from the tabs Bar, select TEMPLATE --> Import Template..." Then from the new window, select Hypervisor and select the VM that I want to import it as a template.
    The importing process began and After the 100%, the vdi says "Job Failed" "Could not convert desktop [ide=18] to template".
    The /var/adm/messages has this error:
    vdix86 cacao[5067]: [ID 702911 daemon.crit] com.sun.vda.service.storage.ZfsStorage.cloneVolume : Command "zfs clone -o shareiscsi=off vbox1/98ab69d8-b41e-4574-9acc-87cf12b7047b@version1 vbox1/4c21a5c6-63fe-4f3a-b4f6-09a73c223cd8" failed on host 10.1.2.168!
    Jan 19 18:25:42 vdix86 Error code: 2
    Jan 19 18:25:42 vdix86 Error: invalid option 'o'
    Jan 19 18:25:42 vdix86 usage:
    Jan 19 18:25:42 vdix86 clone [-p] <snapshot> <filesystem|volume>
    Jan 19 18:25:42 vdix86 For the property list, run: zfs set|get
    Jan 19 18:25:42 vdix86 For the delegated permission list, run: zfs allow|unallow
    I read the zfs manual and "-o" is not a valid option for clone but I don´t know why is there.
    what am I doing wrong? any ideas?
    Thanks in advanced.

    Hello
    Are you using a supported version of Oracle?  I hope it's not Oracle 7!
    This is probably an installation issue, where is Data Services installed?  If its Program Files (x86), try re-installing in C:\SAP or similar.
    Your comment <<If I try using ODBC it cannot find the oracle drive in the system list.>>  makes me wonder if the the Oracle client is not installed properly.
    Michael

  • Report problem when show attribute only Characteristic text master data

    I want to show the attribute only Characteristic in report. In report, it shows "Not assigned" for the Char row, but other data show properly. I checked the Char text master data. It looks fine. I don't what's problem?

    hi robert,
    some of your characteristics probably don't have the attribute assigned (meaning they have a blank value for that attribute). i don't know if this is configurable, but blank entries all display as '#' and the text 'Not Assigned'.
    (as an additional comment, if you take a look at the masterdata of the attribute you used (which i presume exists), there should be a blank entry there.)
    for example, in the case of the deletion flag of an article, not all articles are flagged for deletion. if you create a report that displays the article number and the deletion flag attribute, you'll see quite a bunch of 'not assigned'/'X' in your output.
    let me know if that helps.
    ryan.

  • File Sharing Permissions Problem When NEW Files Created

    My wife & I have a home office network setup for our business, and are having trouble with shared files over the network. We're both on Macs, and all of our client files reside on an internal hard drive in my Mac Pro. I've set her up as a "Sharing Only" user on my computer (which matches the username & password of her account on her iMac), and have properly setup file sharing in both the System Preferences, and in the directory itself that we want shared. I've also applied the permissions to all files & folders below the main folder, and she can view, open and save whatever she needs and it works great.
    *Here's where the problem comes in...* If either of us create a NEW file or folder, the other person doesn't have WRITE access to it (we can browse and open it fine). The second I go to update a file she created, it won't let me over-write it, and I have to go into the permissions for that specific file and give myself Read/Write access. I've experimented with "Groups", and assigned both of us a special group, and applied that group access to that directory, but it doesn't make any difference when a NEW file or folder is created - it doesn't copy the parent directory permissions to itself, it makes one of us the owner, and nobody else has access.
    Is there any way around this? We're both constantly creating new files, and it really hampers our workflow to have to keep re-applying file permissions every time one of us creates something new. Ideally, any new files created within that main client folder would automatically have the same permissions as the parent directory. Any help would be greatly appreciated! Thanks!!

    Here's how to do this with Access Control Lists.
    1) Go to System Preferences -> Accounts. Unlock the padlock. Click the + button. Make a new group. Call this group "sharing" for the purposes of this exercise. Add the users you want to the group.
    2) Make a new empty folder in /Users/Shared. Call it "sharefolder".
    3) Log in to an admin account and paste all three of these lines at once into Terminal:
    sudo chmod +a "sharing allow delete,chown,list,search,add_file,\
    addsubdirectory,delete_child,file_inherit,directoryinherit" \
    /Users/Shared/sharefolder
    4) From now on, any files you create or copy to the sharefolder or to any of its subfolders will inherit read+write permission for all users in the group. If you have any existing files that you want to move into the sharefolder, a simple move by drag & drop won't cause the permissions to propagate. you need to hold down the option key while dragging them in. This will copy them over, ensuring that the ACL permission is properly inherited.
    One other caveat: Files created by a small number of OS X apps won't inherit the permissions properly if saved directly into the ACL folder hierarchy. TextEdit is one such app. Save TextEdit files in a temporary location first, and then copy them in. Then they will have the correct permissions.

  • Problems when I copy a text from master page field to body page field

    Hello
    I am developing a electronic form and I have experimented a strange bebehavior.
    When I try to copy a rawvalue of listbox field from master page to textbox field in body page, this works randomly.
    I have this code in the validation of the master page field
    --------------------begin code---------------------
    if (this.rawValue != null && this.rawValue != "")
    if (xfa.form.myform.mysubform.mytextfield.rawValue != this.rawvalue)
    xfa.form.myform.mysubform.mytextfield.rawValue = this.rawValue;
    --------------------end code---------------------
    Somebody know what is wrong?
    I am very confused.
    Thanks a lot for your help.
    Hosting Association
    The low cost quality hosting
    http://www.hostingassociation.biz

    Extra code is one of the pitfalls of using WYSIWYG cutting and pasting,
    and using styling in general.
    So while it may be interesting to try to reduce the amount of code, there
    probably won't be any direct approach without extra steps to get you what
    you want with bare bones code that appears as you want it to or at least acceptable.
    I guess you might have to take a screen image, clip the relevant portion, since
    you can only attach an image file here not a text file.
    Posting a screen shot
    * http://kb.mozillazine.org/Posting_a_screenshot_on_the_forum#Windows

Maybe you are looking for

  • How to create a key figure in SNP plannignbook which generate FA type order

    Hello trying to create a Key Figure in SNP planning book which generates FA type orders could kindly suggest how to do it? thanks elena

  • In lion seems a picture of a lion is on all my mail

    since getting my new imac with Lion.... seems that many of the emails i send out have a Lion pictured in the top right hand corner.... its a bit of a bother  Help

  • I can no longer pull up PDF's in photoshop elements 12

    I am trying to pull up a calendar I created as a PDF.  I was able to pull it up in Photoshop Elements 12 last week but now when I try and pull it up it just comes up with grey and white checkered squares instead.  What am I doing wrong?

  • My Mac Pro Is Freezing on Mavericks 10.9.2

    Hello Folks, I am running my Intel Xeon 6 Core 3.5 Ghz Mac Pro the new one on Mavericks 10.9.2 with Logic Pro X the latest version. Sometimes when I leave Logic Pro X opened for hours to download the additional content I come back to find that my scr

  • Cs4/flv preview probelm

    Don't no how to explain this. A few weeks ago every thing was working. Today I've encoded a flash video and created a page with nothing on it but the flash video. in dw I did this. Insert media>flv in the pop up for url I clicked browse and located t