ADF 11g - How to do save-cascade?

Hello,
Suppose that I have entities PurchaseOrder (1) <-> (*) PurchaseItem, how do I create PurchaseOrder and related PurchaseItem in one transaction? (much like cascade=PERSIST in JPA).
Any examples?
Thanks before.
Rgds,
Rudi

I know how to make master-detail relation. What I'm asking is how to save the master and the detail in the same database transaction?
Like, create a new PurchaseOrder, then without persisting the transient PO, directly create some child Items. After that persist them all, in one transaction.
Rgds,
Rudi

Similar Messages

  • ADF 11g How to create the custom FilterableQueryDescriptor for adf table

    Can you please let me know on the following.
    1. I am dispalying the adf table using a List from the managed bean
    2. I wanted to filter the table using the filter model.
    3. i wanted to create the sub class of FilterableQueryDescriptor which i can specify. Not finding enough information on how to create and add the information in the setFilterCriteria
    Can you please provide some insight into this topci

    Hello there
    I have the same issue: chaging the background color of some column headers.
    My application is using a custom skinning and when i had headerClass property with a custom class defined in a separate css file, the page generated specified first the class from the skinning and then my new class definition. But my skinning is specifying a background color so the color is not overriden. Any idea?
    ADF code:
    <link type="text/css" rel="stylesheet" href="../../css/pivot.css" id="myStyles"/>
    <af:column headerText="#{level1.userObject.name}"
    headerClass="inputHeader"
    sortable="false" align="center" width="100"
    id="col_level1" >
    Generate HTML code:
    <th align="center" class="xuh inputHeader" afrroot="true" rowspan="2" afrleaf="true" dindex="6" id="pt1:tableId:col_level1" style="">
    <div class="x13t">AEKLF</div>
    </th>
    My CSS file:
    .inputHeader{
    background-color: Red;
    background-image: none;
    color: Black;
    font-weight: bold;
    Thanks for your help !

  • ADF 11g: How to implement search form with automatic substring search

    We have ADF search form and result table on the same page. Say, VO that this search form is based upon is famous Employee table from HR schema. What we need is a logic when user enters partial employee first name ie: 'jo'...it should return 'john', johnny, joanne etc...
    just like if user would use wildcard %
    What worked in 10g ADF was something like this:
            AccessServiceImpl svc = (AccessServiceImpl)JSFUtils.EL("#{data.AccessService.dataProvider}");
            BirthViewNewImpl b = svc.getBirthViewNew();
            ViewCriteria vc = b.getViewCriteria();
            String staffId = JSFUtils.getFromSession("staffId").toString();
            String studyId = JSFUtils.getFromSession("studyId").toString();
            if (vc != null) {
                System.out.print("BR " + studyId + " " + staffId + " ");
                AttributeDef[] defs = vc.getViewObject().getAttributeDefs();
                Iterator criteriaRows = vc.iterator();
                while (criteriaRows.hasNext()) {
                    ViewCriteriaRow r = (ViewCriteriaRow)criteriaRows.next();
                    if (r != null) {
                        for (int j = 0, numAttrs = defs.length; j < numAttrs; j++) {
                             if (JboTypeMap.isCharType(defs[j].getSQLType())) {
                                 String val = (String)r.getAttribute(j);
                                 String col = defs[j].getColumnName();
                                 if (val != null) {
                                     System.out.print(col + "=" + val + " ");//just to see what is going on
                 System.out.println("");
            b.searchRecords();//method in VO that executes query
             * This is now very wrong.... Very artificial way to eliminate % from the UI
             if (vc != null) {
                 AttributeDef[] defs = vc.getViewObject().getAttributeDefs();
                 Iterator criteriaRows = vc.iterator();
                 while (criteriaRows.hasNext()) {
                     ViewCriteriaRow r = (ViewCriteriaRow)criteriaRows.next();
                     if (r != null) {
                         for (int j = 0, numAttrs = defs.length; j < numAttrs; j++) {
                             if (JboTypeMap.isCharType(defs[j].getSQLType())) {
                                 String val = (String)r.getAttribute(j);
                                 String col = defs[j].getColumnName();
                                 if (val != null) {
                                     val = val.substring(0,val.length()-1);//return to normal
                                       System.out.println("Column: " + col);               
                                       System.out.println("Value: " + val);               
                                       r.setAttribute(j,val);
            return null;The problem is for some reason this does not quite work in 11g.
    What is the best practice to achieve this functionality in 11g?

    Or use a catsearch index or a contains index in your query. The will preform much better for large datasets as it doesn't do a full table scan.
    Google for Oracle Text ( http://www.google.de/search?q=%27oracle+text%27+catsearch&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:de:official&client=firefox-a )
    Timo

  • ADF 11g How to prevent reinvokation method action after error

    We have a page with an action binding that is invoked automaticaly on entering the page:
    <executables>
    <invokeAction id="invokeProcess" Binds="process"/>
    If an error (exeption) occurs the invoke action will be called 5 times. This is that our underlying BPEL-Process is also invoked 5 times.
    How can we prevent the resubmit after an exception occures?

    How are you bringing this up for edit? Via a dialog?
    Have you looked at "setCurrentRowWithKeyStr" operation in the page def? Our application uses dialogs for editing one row at a time, when the user clicked on the row via a command link, we call setCurrentRowWithKey to make sure the view object's iterator cursor is at the right location when this record is brought up for edit.

  • ADF 11g + How to capture the value of a dynamically created input text box

    Hi All,
    I have a requirement where, on selection of the value in a drop down, the input text boxes need to get dynamically populated on the JSPX page. I'm able to bring this functionality, and it is working fine.
    But the challenge right now I'm facing is that, how to read/capture the value entered in those dynamic text boxes on submission of the page. Please help me in getting this resolved.
    Below is the code snippet I'm using for this.
    // Clearing the existing input fields in the Panel form
    while (pf100.getChildren().iterator().hasNext()) {
    pf100.getChildren().remove(pf100.getChildren().iterator().next());
    // Creating the new fields based on the number of IP addresses selected
    for (int i = 0; i < iIPAddress; i++) {
    RichInputText pcPreferredDomain = new RichInputText();
    pcPreferredDomain.setLabel("Preferred Domain / Hostname for Desktop PC/ Laptop - " +
    (i + 1));
    pcPreferredDomain.setColumns(40);
    pcPreferredDomain.setId("pcpfdomain" + (i + 1));
    pf100.getChildren().add(pcPreferredDomain);
    Thanks All in Advance,
    Thanks & Regards,
    Dharmathej M

    As per your method, you are creating the RichInputText components as local variables.
    What happens when you are creating them as class level variables in the managed bean, if you do so, you can refer to the values of the UI components in the actionListener/action code for the command button in the managed bean
    sample:
    public class ManagedBean{
    RichInputText [] pcPreferredDomain;
    public ManagedBean(){
    // Clearing the existing input fields in the Panel form
    while (pf100.getChildren().iterator().hasNext()) {
    pf100.getChildren().remove(pf100.getChildren().iterator().next());
    pcPreferredDomain = new RichInputText[iIPAddress];
    // Creating the new fields based on the number of IP addresses selected
    for (int i = 0; i < iIPAddress; i++) {
    pcPreferredDomain[i] = new RichInputText();
    pcPreferredDomain.setLabel("Preferred Domain / Hostname for Desktop PC/ Laptop - " +
    (i + 1));
    pcPreferredDomain.setColumns(40);
    pcPreferredDomain.setId("pcpfdomain" + (i + 1));
    pf100.getChildren().add(pcPreferredDomain);
    Thanks,
    Navaneeth

  • ADF 11g + How to wrap the text in a goimagelink

    Hi All,
    I'm displaying some list of goimagelinks, for which the information is being retrieved from the database. Now to align the width in between the imagelinks properly, I need to wrap the text of the go image link. Any suggestions, will help me a lot.
    Thanks All in Advance. Below is the code snippet for the same.
    Thanks & Regards,
    Dharmathej M
    <af:panelFormLayout id="pfl6" rows="3" maxColumns="3"
    labelWidth="30"
    inlineStyle="text-align:justify;">
    <af:iterator id="i6"
    value="#{bindings.LP_Applications1.collectionModel}"
    var="appiter"
    rows="#{bindings.LP_Applications1.rangeSize}">
    <af:goImageLink text="#{appiter.bindings.AppName.inputValue}"
    id="gil2"
    icon="#{appiter.bindings.Icon.inputValue}"
    iconPosition="leading"
    inlineStyle="font-size:small; font-family:Verdana, Arial, Helvetica, sans-serif;"
    destination="#{appiter.bindings.Url.inputValue}"
    shortDesc="#{appiter.bindings.ShortDesc.inputValue}"
    targetFrame="#{appiter.bindings.ExtLink.inputValue == 'T' ? '_blank' : '_self' }"/>
    <af:spacer width="70" height="10"/>
    </af:iterator>
    </af:panelFormLayout>
    ################################################################

    Try the CSS <tt>display</tt> property in combination with some fixed width, for example:
    <af:goImageLink ... inlineStyle="display:inline-block; width:80px;">

  • How to deploy a secured ADF 11g application to WebLogic 10.3 server?

    Hi,
    I have just enabled security in our ADF 11g application, as descripbed in [chapter 29|http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/adding_security.htm#insertedID0] of the Fusion Developer's Guide. It works fine in the embedded WebLogic server of JDeveloper.
    Now I'm trying to deploy to our WebLogic 10.3 server, which runs in production mode. I'm running into all sorts of problems. The WebLogic console seems to have hundreds of security related pages, I don't know which one I should use, let alone how to use it. The Fusion Developer's Guide doesn't cover deployment to a production server:
    >
    When the target server is configured for production mode, you typically handle the migration task outside of JDeveloper using tools like Oracle Enterprise Manager. For details about using tools outside of JDeveloper to migrate the policy store to the domain-level in a production environment, see the [Oracle Fusion Middleware Security Guide|http://download.oracle.com/docs/cd/E12839_01/core.1111/e10043/toc.htm].
    >
    However, this guide is of very little help to me. I found [chapter 7|http://download.oracle.com/docs/cd/E12839_01/core.1111/e10043/addlsecfea.htm#insertedID0], which says "The recommended tool is Fusion Middleware Control." I have no idea what "Fusion Middleware Control" is, where to get it and how to use it.
    Long story short: I'm totally lost. I'm looking for a step by step guide on how to deploy a secured ADF 11g application to a WegLogic 10.3 server that is running in production mode. Any help is highly appreciated.

    Ok, I found a [very helpful blog post |http://andrejusb.blogspot.com/2009/01/practical-adf-security-deployment-on.html] by [Andrejus Baranovski|http://www.blogger.com/profile/04468230464412457426]. I wish Oracle's documentation was as clear as this...
    The blog post refers to an article by Steve Muench, called [Simplified ADF 11g Application Credential and Policy Migration to Standalone WebLogic Servers|http://www.oracle.com/technology/products/jdev/tips/muench/credmig111100/index.html]. This article presents an Ant script that migrates policies from JDeveloper to WebLogic, using some PFM. (See the last definition here.)
    The problem is that Steve Muench's script assumes that JDeveloper and the standalone WebLogic are on the same machine. However, in a typical environment, such as the one I'm working in currently, this is not the case. In our case the developer stations are Windows machines, while our WebLogic server runs on a HP-UX machine. So the question is: how to perform this migration between two machines with different operating systems?
    Regards,
    Bart Kummel

  • How to use image maps in ADF 11g

    Can somebody point me to code snippet for using image maps in JSF Page.
    I just want to use image maps in my application..but i don't know how to use image maps in ADF.
    -Deepti

    Hi chris,
    My DataBase script is given in below
    CREATE TABLE XXSR.SR_HIERARCHY
    FORM_ID NUMBER,
    FORM_NAME VARCHAR2(30 BYTE),
    PARENT_FORM_ID NUMBER,
    FORM_LOCATION VARCHAR2(1000 BYTE),
    IMAGE_FILE ORDSYS.ORDIMAGE
    I want to store the image in database from front end using ADF 11g
    -Deepti
    Edited by: 913387 on Feb 24, 2012 5:36 AM

  • ADF -11g : Question on how to create a pivot table

    Hi,
    I am trying to create a dynamic pivot table (the number of column and row layers change for each request) and I cannot use a data base structure to back it up.
    I thought of doing it through a managed bean but in order to do it I need to know how to create the PivotTableModel.
    The pivot table model requires a data source object and I do not know how to create it to support multiple row and column layers.
    Is there a default data source object that I can extend, or better yet is there a written example on how to create a pivot table model using a managed bean.
    Thanks,
    Or
    Edited by: user638363 on Dec 18, 2008 7:02 AM

    Hi,
    beyond the documentation, the pivot table is described in
    http://technology.amis.nl/blog/2593/adf-faces-11g-reloading-the-matrix-using-the-pivot-table-component
    http://technology.amis.nl/blog/3786/creating-a-salary-heat-map-with-the-adf-11g-faces-pivottable-component
    http://technology.amis.nl/blog/3673/adf-11g-richfaces-a-closer-look-at-the-pivot-table-data-visualization-component
    I am not aware of any sample that directly meets your requirement
    Frank

  • How to enable row selection conditionally  in ADF 11g Table

    Hi,
    i am using ADF 11g.
    My use cae is:
    we need to display a table component in which only those rows that have a particular value in one of its columns should be selectable, other rows should be viewable but not selectable.
    That is, to say only those rows should be displayed as selectable in which the user name column is having the value same as the logged in user, suppose. And all the other rows having user name other than logged in user should be viewable , but not selectable for the user.
    I know in ADF 10.1.3 it is possible to conditionally enabling selection of rows in af.table by using "selection"-facet. But with 11g there is no such table facet.
    Does anyone have some idea how to do it in 11g?
    Thanks

    Frank,
    thank for your suggestion.
    so i tried to use clientLister like this:
    selectMatCat = function(event) {
    var matCatTable = event.getSource();
    rwKeySet = event.getAddedSet();
    for (rowKey in rwKeySet) {
    firstRowKey = rowKey;
    break;
    var cellhandler = matCatTable.findComponent("matCatCode", firstRowKey);
    if (cellhandler != null) {
    alert (cellhandler.getValue());
    event.cancel();
    but the row in which cellhandler != null is still selected so that i can get its value on the sever side by using code like : "matCatTable.getSelectedRowData()".
    I also noticed that the selection event will not automatically notify the server so the event.cancel() seems like not make so much sense.
    Any suggestion?
    Thanks.
    Peng

  • How to develop a 'creation form' in ADF 11g?

    Dear friends,
    How to develop a 'creation form' in ADF 11g? it seems no such type of form in 11g.
    Thank you.
    Regards,
    Tony

    If you are using ADFBC, the easiest way is
    - drop the data control as ADF form
    - add CreateInsert method binding to the pagedef
    - add an invokeAction for the createInsert with a refresh property set to renderModel so that an empty creation form will be shown on page load
    for insertion
    - Finally, add the commit action as button
    Sireesha

  • How to streamline downloading Javascript Resources for ADF 11g

    hi,
    i need to streamline downloading Javascript Resources for ADF 11g for whole application
    thanks
    Kiran

    Timo is right, your question is vague... however, you may be interested in [url http://download.oracle.com/docs/cd/E15523_01/web.1111/b31973/ap_config.htm#insertedID9]this - if not, explain what you might be meaning.
    John

  • How to enable SSO for ADF 11g application

    Hi All,
    I am new to ADF 11g. I need to enable SSO authentication for a ADF 11g application.
    Please let me know if we have any document to follow to perform the configuration.
    Thanks
    Sai

    Check this out
    http://download.oracle.com/docs/cd/E14571_01/doc.1111/e15478/opssadf.htm
    -Arun

  • ADF 11g: Desktop Integrator- Export to Excel issue

    Hi,
    We are using ADF 11g.
    In our application we have one feature where end users can download data in excel format from our web application.
    To export data to excel file, users need to click Export to Excel button. But after deployment of code to standalone WLS 11g we are facing following issue with this functionality:
    To export data to excel file we have to keep pressing control key through out the operation
    If we don't do so it does not downloads the file.
    We want the file should be downloaded as soon as user clicks Export to Excel button. (We don't want users to keep pressing control key through this process)
    Please help on this how to achieve this.
    Thanks and Regards
    Manav Ratra

    Hi Shay,
    I implemented this functionality following Franks blog on export data to excel.
    Ya in your application we are able to export to excel without holding control Key.
    The same is happening in our case if we run application using integrated WLS 11g on JDev 11.1.1.3
    but after hosting the application on standalone WLS 11g. We need to hold control key. :|
    Are there any properties which we need to set to avoid this.
    here is code :
    *<af:commandButton text="Export to Excel"*
    *binding="#{backing_Rates.btn_Export}"*
    *id="btn_Export" inlineStyle="width:150.0px;"*
    *shortDesc="Click to Save table in excel sheet">*
    *<af:exportCollectionActionListener exportedId="pctbl:t1"*
    *type="excelHTML"*
    *filename="#{backing_Rates.seName}_Rates.xls"*
    *title="Rates for - #{backing_Rates.seName} are:"/>*
    *</af:commandButton>*
    Please help.
    Thanks & Regards
    Manav Ratra

  • Urgent help needed in achieving below ADF 11g flow

    Hi, I am using JDEV 11.1.1.2.0 with ADF 11g.
    I have a below requirement.
    Say in below eg. I am getting col1, col2, col3 from a single tbl in screen 1. On clicking col1's row I should go to screen 2
    Screen1
    Col1     Col2     Col3
    Nm1     Code1     10
    Nm1     Code1     30
    Nm2     Code1     30
    Nm1     Code2     20
    Here in screen 2 I will have a calculated field as shown below. Besides this In the same screen I will have a list showing distinct of col2 for the value cliked in col1. So here in this eg. it will be for Nm1 I will have 2 values in the list Code1 and Code2.      
    Screen 2          
    Col1     Nm1     
    Col2     Code1     
    Tot     *40*     
    Col2     Select     
    Code1     X     
    Code2          
    Now here if user selects the radio of 'Code2' Then my above data should change as below
    Col1     Nm1     
    Col2     Code2     
    Tot     *20*
    Col2     Select     
    Code1          
    Code2     X
    I do this by passing the col1 value as a param to a query VO.
    I have tried this using different VOs like a VO with query, VO with user defined column... nothing helps.
    I am just unable to reach to screen 2. I am either getting invalid column OR missing in out parameters.
    Can any one help on how and what should be done? This is not even master-details stuff. master-details seems easier than this.
    Urgent help is needed.
    Thanks in advance

    I have resolved your problem and build a sample application.
    You have to create 2 views and use master detail.
    First view will be a simple view for the page 1 and second view will be readonly using group by. Then create a view link between them.
    Let me know your email id. I will email you the sample application.
    SID
    Edited by: manieshsailoz on Apr 26, 2010 5:12 PM

Maybe you are looking for

  • Selection tet -description not getting displayed

    Hi, In abap program, the text for the selection text is not getting displayed. For ex. for field p_matnr which is nothing but mara-matnr, the text name Material number is not getting displayed and instead it shows p_matnr on the selection screen. I h

  • Balance dropped more than purchase amount

    My i tunes balance dropped more than the $.69 that the song cost.  Is there an inactivity fee?

  • RG1 Report requirements

    Hi all, Following is the clients requirements for RG1 report, 1. When there is opening qnty for materials,but no transactions(production or issues) the report should show the details of opening & closing stock of FG stocks, where as the above require

  • TS1717 itunes won't open?

    hi itunes programe won't open? can u help?

  • Return (delivery) confirmation Mail SRM7.0 ,how to stop??

    hi , I have not configured any output notification related to return delivery of confirmation and event is not defined  in alert management configuration. Tried to put debugger at Alert notification Badi implementation , tried to remove all event fro