Creating Form Manually w/Process that Contains Multiple Insert Statements

Hello,
I've been trying to create a form manually by following the instructions in the Users Manual under "Creating Form Manually - Creating a Process that Contains One or More Insert Statements." I have not had much luck and I think that it is because I'm not sure what is ment when said:
"Create a conditional process of type PL/SQL that executes when the user clicks the button."
Here is the PL/SQL that I used:
BEGIN
UPDATE T
SET first_name = :P1_FIRST_NAME,
last_name = :P1_LAST_NAME
WHERE ID = :P1_ID;
END;
I am not sure where to create this process,however. I've tried several areas (i.e. Processes under Page Processing, Processes under Page Rendering, Under Conditions on the Button, etc.) but will get errors or no effect at all.
Please let me know what i am doing wrong. If you could provide me with a simple example of how to create a form manually, that would be greatly appreciated.
Thanks.
Linda
Message was edited by:
lhudak

Hello Scott,
I followed your instructions and the error that I get is that nothing happens at all. I submit the page and nothing gets updated, deleted or added.
I have the table, report, processes and form in place. Here are the settings:
Process Point: is "on-submit, after computations...(in the Page Processing Section)
Type: PL/SQL anonymous block
Source: BEGIN
INSERT INTO T ( first_name, last_name )
VALUES (:P1_FIRST_NAME, :P1_LAST_NAME);
END;
Conditional Processing: When Button Pressed (Create (ADD))
For the Button:
Database Action: SQL Insert action
URL Redirect: No Target
Should I have any special settings on the Page Item? (i.e. under Default: Default Value Type: PL/SQL Expression) or maybe under Conditions: Condition Type - PL/SQL?
Please let me know.
Thanks
Linda

Similar Messages

  • Executing a stored procedure containing multiple Select statements

    Post Author: Beverly
    CA Forum: General
    I am using Crystal  10.0 against a MS SQL 2000 server.
    I am trying to create a report based on a stored procedure that contains multiple select statements.  The sp requires a single parameter (Claim number) and contains 17 Select statements that produce results.
    I am able to use the Add command and execute the sp with the parameter, but I am only getting the results of the first select statement in the sp back in my data set.  Is there a way to have the data from each Select statement returned to my report?
    I have used Crystal for a while, but pretty much for straight-forward reporting.  I am familiar with the basics of SQL.
    I would appreciate any help anyone can offer.
    Thanks.

    Post Author: BISoftware
    CA Forum: General
    I believe Crystal Reports can only handle one recordset at a time, which means it can only handle a single select statement.  The only way I can see around this would be to break up your stored procedure into multiple stored procedures, so that each only contains a single select statement.  Then, use subreports to report on each individual sp. Hope this helps. - Davewww.BusinessSoftwareResource.com

  • Create multiple Insert statements from multiselect list

    I want to thank everyone in advance for the help on this one.
    I have a multiselect list that I would like to use to create multiple Insert statements. I would like to then take those statements and execute them against the database, thus inserting the records. My thoughts are below;
    1.     Customer selects multiple items in the list
    2.     Clicks the submit button
    3.     onclick event walks through the string created by the multiselect list and creates the Insert statements by walking through an array of the values.
    4.     the Insert statements get executed against the database
    5.     page redirects to the proper page after the process is done.
    I actually have already created a javascript function that will use the split command on the string to create an array. I then get the length of the array and walk through a loop creating the sql statements. I am not sure what to do from here. How can I get the sql to execute.
    I am not wed to this approach. If there is a better idea out there please do not hesitate to share it with me. I am relatively new to APEX and have not done much work in pl/sql or javascript. But I learn fast, so don’t hold back.
    Thanks again and please let me know what questions you have for me.
    Derek.

    I setup the demo app on apex.oracle.com:
    http://apex.oracle.com/pls/apex/f?p=26255:3
    Login as demo / demo
    Go to the "products" tab. There is a Test region with a multiselect list. It shows product names (with product id's) from the demo_product_info table.
    When you select multiple things from the list and click apply, it uses the following procedure to simply insert a new record for each into the product table. It increments the product_id by 1000 and prepends "DUPLICATE " to the product_name:
    declare
    cursor c_products is
    select product_name, product_id
    from demo_product_info
    where instr(':' || :P3_X || ':', ':' || product_id || ':') >= 1
    order by 1
    begin
    for r_product in c_products loop
    insert into demo_product_info (product_id, product_name)
    values (r_product.product_id + 1000, 'DUPLICATE ' || r_product.product_name);
    end loop;
    end;
    You can see that is working by using it on the duplicate entries themselves.
    -Richard

  • Executing multiple insert statement in oracle

    hellor every one,
    I have multiple insert statements which should be executed in a single execution and i placed the sample insert statement here. How can i execute these statement in a single execution. Please help me.
    insert into r_symptom_master_tcs (RSM_CRT_DT,RSM_SYM_CD,RSM_CRT_UID,RSM_SYM_DESC) values('30-Sep-2005',1,'04509','Abdomen pain');\
    insert into r_symptom_master_tcs (RSM_CRT_DT,RSM_SYM_CD,RSM_CRT_UID,RSM_SYM_DESC) values('30-Sep-2005',2,'04509','Abdominal bloating');\
    insert into r_symptom_master_tcs (RSM_CRT_DT,RSM_SYM_CD,RSM_CRT_UID,RSM_SYM_DESC) values('30-Sep-2005',3,'04509','Abdominal cramps');\
    insert into r_symptom_master_tcs (RSM_CRT_DT,RSM_SYM_CD,RSM_CRT_UID,RSM_SYM_DESC) values('30-Sep-2005',4,'04509','Abdominal pain');\
    insert into r_symptom_master_tcs (RSM_CRT_DT,RSM_SYM_CD,RSM_CRT_UID,RSM_SYM_DESC) values('30-Sep-2005',5,'04509','Abdominal sensitivity');\
    insert into r_symptom_master_tcs (RSM_CRT_DT,RSM_SYM_CD,RSM_CRT_UID,RSM_SYM_DESC) values('30-Sep-2005',6,'04509','Abnormal bleeding');\
    insert into r_symptom_master_tcs (RSM_CRT_DT,RSM_SYM_CD,RSM_CRT_UID,RSM_SYM_DESC) values('30-Sep-2005',7,'04509','Abnormal weight gain');\
    insert into r_symptom_master_tcs (RSM_CRT_DT,RSM_SYM_CD,RSM_CRT_UID,RSM_SYM_DESC) values('30-Sep-2005',8,'04509','Abnormal sensitivity to cold');\
    insert into r_symptom_master_tcs (RSM_CRT_DT,RSM_SYM_CD,RSM_CRT_UID,RSM_SYM_DESC) values('30-Sep-2005',9,'04509','Abnormal sensitivity to heat');\
    insert into r_symptom_master_tcs (RSM_CRT_DT,RSM_SYM_CD,RSM_CRT_UID,RSM_SYM_DESC) values('30-Sep-2005',10,'04509','Abnormal movements');\
    insert into r_symptom_master_tcs (RSM_CRT_DT,RSM_SYM_CD,RSM_CRT_UID,RSM_SYM_DESC) values('30-Sep-2005',11,'04509','Absence of menstrual periods');\
    insert into r_symptom_master_tcs (RSM_CRT_DT,RSM_SYM_CD,RSM_CRT_UID,RSM_SYM_DESC) values('30-Sep-2005',12,'04509','Absence of periods');\
    insert into r_symptom_master_tcs (RSM_CRT_DT,RSM_SYM_CD,RSM_CRT_UID,RSM_SYM_DESC) values('30-Sep-2005',13,'04509','Absent menstrual periods');\

    > but in what editor we should do this, either in the sql editor, or pl/sql
    Whatever editor you are comfortable with. I assume there is one.
    btw if there are a lot of INSERT statements in the script it might be worth adding the following to the top:
    ALTER SESSION SET CURSOR_SHARING = SIMILAR;

  • Use Multiple Insert Statements in Prepared Statements

    Hi Friends
    i am stuck in a problem for which i need your help.i will brief you about the issue below.
    I am having Multiple Insert Statements which i need to execute to put the data in the database.i have a doubt about the use of the executeUpdate() function in the statement interface. sample code is as below.
    stmt = conn.prepareStatement("INSERT INTO Client ( clientPk, provincePk, countryPk, statusPk, branchPk, salutation, ) VALUES(PID, 2, '123123123', '123', '66', 1, 1 );");
    int n =stmt.executeUpdate();
    Now the problem is how do i insert multiple Insert statements using the conn.prepareStatement().should i do like
    stmt = conn.prepareStatement("")
    int n =stmt.executeUpdate();
    stmt = conn.prepareStatement("")
    int n =stmt.executeUpdate();
    stmt = conn.prepareStatement("")
    int n =stmt.executeUpdate(); ..................................
    should i use the same steps to execute each individual query and then use executeUpdate().
    Please let me know the correct procedure to be followed to execute these tasks.waiting for a positive reply from your side.
    Thanks & Regards
    Vikram K

    Hi
    Thanks a lot once agin for the reply.
    I think i have figured out the solution. I am using SQL statements in the Prepared statements(""). But now i have dropped the idea of using the prepared statement and decided to use the simple Statement instead.
    what i have done is as below.
    conn = ConnectionFactory.getInstance().getConnection();
    stmt = conn.createStatement();
    stmt.executeUpdate("INSERT INTO Client ( clientPk, provincePk, countryPk, statusPk, branchPk, salutation, heightMeasurementType, weightMeasurementType ) VALUES(PID, '1', '1', '0', '1', 'Mr', CONCAT('Jason ', PID), 'R', 'Mawdsley', '123', '66', 1, 1 );");
    stmt.executeUpdate("INSERT into Cp () Values ()");
    stmt.executeUpdate("INSERT into gp () Values ()");
    stmt.executeUpdate("INSERT into jk () Values ()");
    I think this makes sense to use the Statement and execute all the queries in one shot rather than using PS.
    thanks a lot for your help.
    Regards
    Vikram K

  • Creating a form with a field that contains a simple math problem.

    I am creating a form in Acrobat 9 Standard that contains a field that requires a simple math function (divide).
    if (QuantityRow1 > 0)
    ExtensionRow1 / QuantityRow1
    Take the value input in ExtensionRow1 and divide it by the value in QuantityRow1. I have included an IF statement to prevent an error that occur if QuantityRow1 were equal to zero.
    After inputting the data into the two fields I tab past the field where I expect to see my result and the field remains blank. I don't receive any error messages.
    Any ideas? Thanks - jb

    This is a duplicate of your question on Acrobatusers.com (
    http://answers.acrobatusers.com/Need-simple-math-operation-function-Acrobat-9-Standard-cre ating-form-q142800.aspx
    Did the information provided there not help you with your problem?
    Karl Heinz Kremer
    PDF Acrobatics Without a Net
    PDF Software Development, Training and More...
    [email protected]
    http://www.khkonsulting.com

  • Visio Drawing Using Data Graphics with data that has a field that contains Multiple Values.

    I am working on creating a drawing for SMTP connectors.  I decided I would use a Data Graphic connecting to a spreadsheet.  In the spreadsheet there are a few fields that are Multi-Value fields.  For instance SmartHosts contains multiple Ip
    address.  I am trying to get this to format things so that the IPs show on the next line down instead of continuing on the same line until it wraps. 
    Does anyone know a way I could do this?
    Jeff C

    Hi Jeff,
    Arrange the IP values in spreadsheet using Alt+Enter (Use this key pair as a separator between two IP values). Now link this spread sheet to Visio. The values should appear in the same manner in data graphics as your expectation.
    Let me know if you meant something else.
    Thanks,
    Dheeraj 

  • Creating Multiple INSERT statements with SQL

    is there a way to create multiple INSERT staements with SQL .
    Example scenario : This is only example but i have lot of data in the real time.
    sql : Select Emplid from Table A where Emplid between 100 and 350 will retun me 50 rows . i want to insert those rows into another table.
    I am looking for output like below instead of Giving output just as EMPLIDs
    Insert into PS_LM_DATA ( EMPLID ) values ( 123 )
    Insert into PS_LM_DATA ( EMPLID ) values ( 234 )
    Insert into PS_LM_DATA ( EMPLID ) values ( 334 )
    and so on....
    thanks ,
    Karu

    If you are inserting into another table, you could use
    insert into PS_LM_DATA ( EMPLID ) 
    select Emplid from Table A where Emplid between 100 and 350Example:
    SQL> insert into emp2(empno) select empno from emp;
    14 rows created.
    SQL> insert into emp2(empno) select empno from emp where empno between 7369 and 7788;
    8 rows created.

  • Creating 'Bookmarks Bar' entries that contain multiple URL's

    As a new user of Safari, I noted that the default 'bookmarks bar' contains two items ('Apple' and 'News') that have their own dropdown menus of sub-links.
    As with 'Apple' and 'News' I would like to be able to put items on the bar that offer a choice of different URL's.
    How can these be created?
    Thanks.

    Click on the book icon at the left end of the Bookmarks Bar. This opens the Bookmarks Manager.
    On the right you'll see the various collections of bookmarks, including "Bookmarks Bar". Single-click on this item.
    On the right side you'll see the two folders you mentioned in your post. Additional folders can be added by clicking on the + button at the bottom of this section. Name the folder. Then start adding the URL's. This can be accomplished by:
    Click on the Book Icon to return to the regular browser window.
    Type a URL address in the address window
    Click on the book icon to return to the Bookmarks Manager
    Drag the URL to its applicable folder.
    Or, if URL's already exist in the Bookmarks Manager collections, you can copy/paste to the applicable folder.
    If you have existing bookmarks from another browser, say Firefox, you can import them into Safari using the "import bookmarks" command in the File Menu. From there you can move them to another folder, or copy/paste them.
    Let me know if you need any further clarification.

  • How do I attach a folder that contains multiple documents? I try and it will only allow me to pick one document at a time.

    I'm trying to upload to my school's online blackboard (which is where I submit papers) and I cannot seem to figure out how to upload a folder I made on my desktop. I created multple folders containing more than one document and thought this would be easier then each individual document. But I cannot attach the whole folder. I have to pick each document which I could have done in the beginning!! Any thoughts? I tried to hit shift and then control to highlight all of them but that did not work. Any advice welcome:)

    Geiger,
    This is what you get when you key the word sections into the help function:
    *Creating Sections*
    +In a word processing document, a section consists of one or more pages.+
    +Each Pages template consists of one or more predefined sections. Every time you add pages to the document by using the Sections (word processing) or Pages (page layout) button in the toolbar, you add a new section.+
    +In a page layout document, each page is one section. You can use the predefined sections as they are, or you can modify or remove them one page at a time.+
    +In a word processing document, you can use the predefined sections as they are, or you can create or remove section breaks to define your own sections. To add a page to a section, add more content and pages will be automatically added, or insert a page break.+
    +Here are ways to work with section breaks in word processing documents:+
    +To insert a section break, place the pointer where you want the break to occur, and then choose Insert > Section Break or click Sections in the toolbar and choose an item from the list.+
    +When you show invisibles in your document (click View in the toolbar and then choose Show Invisibles), a section break symbol marks the location of the section break.+
    +The new section has the same formatting as the previous section until you change it. Changes you make to master objects, headers, footers, or page numbering will apply only to the section in which you make the changes. See Using Master Objects (Repeated Background Images) for information about master objects.+
    +To remove a section break, click at the beginning of the line that follows the break and press the Delete key.+
    -Dennis

  • Making a PDF that contains multiple jpegs with captions

    Hi - I am not very savvy technically and need to create a PDF document with multiple jpeg images with captions.  Is it best for me to do this online by using the "convert to PDF" service at acrobat.com?  I would like to know if it will be easy for me to upload and label 4-5 images and then make that into a PDF before I pay the monthly fee.  I appreciate any help I can get!!  Thanks.

    CreatePDF doesn't have a word processing tool but you could do this using the Acrobat.com service to do this. Acrobat.com has a word processing tool and the ability to convert your file to PDF. You can test at this capability with a free trial.

  • Unable to create web service from wsdl that contains xsd as import

    I have written a WSDL and tried to create the web services by weblogic workshop.
    Prior to that I have created the war file and able to deploy them properly. Also able to access any wsdl by hitting the server.
    But when I am trying to create the web services by weblogic workshop its throwing error as "URL is not well formed" for those XSDs which I have imported in my WSDL. I have kept all my XSDs and WSDLs in the same folder.
    The WSDL has given below :
    <?xml version="1.0" encoding="UTF-8"?>
    <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:intf="http://soapheader.ibm.com" xmlns:impl="http://soapheader.ibm.com" xmlns:MessageContext="MessageContext" xmlns:AlertUpdateRequest="AlertUpdateRequest" xmlns:AlertFetchResponse="AlertFetchResponse" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://soapheader.ibm.com">
         <import namespace="MessageContext" location="http://localhost:7001/WebApplicationWeb/gss/xsd/MessageContext.xsd"/>
         <import namespace="AlertUpdateRequest" location="http://localhost:7001/WebApplicationWeb/gss/xsd/AlertUpdateRequest.xsd"/>
         <import namespace="AlertFetchResponse" location="http://localhost:7001/WebApplicationWeb/gss/xsd/AlertFetchResponse.xsd"/>
         <wsdl:types>
              <schema elementFormDefault="qualified" targetNamespace="http://ggg.com" xmlns="http://www.w3.org/2001/XMLSchema">
              </schema>
         </wsdl:types>
         <wsdl:message name="alertUpdateRequest">
              <wsdl:part name="parameters" element="AlertUpdateRequest:AlertUpdateRequest"/>
              <wsdl:part name="request_header" element="MessageContext:MessageContext"/>
         </wsdl:message>
         <wsdl:message name="alertUpdateResponse">
              <wsdl:part name="parameters" element="AlertUpdateRequest:AlertUpdateRequest"/>
              <wsdl:part name="request_header" element="MessageContext:MessageContext"/>
         </wsdl:message>
         <wsdl:message name="alertFetchRequest">
              <wsdl:part name="parameters" element="AlertFetchResponse:AlertFetchResponse"/>
              <wsdl:part name="request_header" element="MessageContext:MessageContext"/>
         </wsdl:message>
         <wsdl:message name="alertFetchResponse">
              <wsdl:part name="parameters" element="AlertFetchResponse:AlertFetchResponse"/>
              <wsdl:part name="request_header" element="MessageContext:MessageContext"/>
         </wsdl:message>
         <wsdl:portType name="AlertUpdateService">
              <wsdl:operation name="getAlertUpdate">
                   <wsdl:input name="alertUpdateRequest" message="intf:alertUpdateRequest"/>
                   <wsdl:output name="alertUpdateResponse" message="intf:alertUpdateResponse"/>
              </wsdl:operation>
         </wsdl:portType>
         <wsdl:portType name="AlertFetchService">
              <wsdl:operation name="getAlert">
                   <wsdl:input name="alertUpdateRequest" message="intf:alertFetchRequest"/>
                   <wsdl:output name="alertUpdateResponse" message="intf:alertFetchResponse"/>
              </wsdl:operation>
         </wsdl:portType>
         <wsdl:binding name="AlertUpdateServiceSoapBinding" type="intf:AlertUpdateService">
              <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
              <wsdl:operation name="getAlertUpdate">
                   <wsdlsoap:operation/>
                   <wsdl:input>
                        <wsdlsoap:header message="intf:alertUpdateRequest" part="request_header" use="literal"/>
                        <wsdlsoap:body parts="parameters" use="literal"/>
                   </wsdl:input>
                   <wsdl:output>
                        <wsdlsoap:header message="intf:alertUpdateResponse" part="request_header" use="literal"/>
                        <wsdlsoap:body parts="parameters" use="literal"/>
                   </wsdl:output>
              </wsdl:operation>
         </wsdl:binding>
         <wsdl:binding name="AlertFetchServiceSoapBinding" type="intf:AlertFetchService">
              <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
              <wsdl:operation name="getAlert">
                   <wsdlsoap:operation/>
                   <wsdl:input>
                        <wsdlsoap:header message="intf:alertFetchRequest" part="request_header" use="literal"/>
                        <wsdlsoap:body parts="parameters" use="literal"/>
                   </wsdl:input>
                   <wsdl:output>
                        <wsdlsoap:header message="intf:alertFetchResponse" part="request_header" use="literal"/>
                        <wsdlsoap:body parts="parameters" use="literal"/>
                   </wsdl:output>
              </wsdl:operation>
         </wsdl:binding>
         <wsdl:service name="AlertUpdateServiceService">
              <wsdl:port name="AlertUpdateService" binding="intf:AlertUpdateServiceSoapBinding">
                   <wsdlsoap:address location="http://localhost:9080/SOAPHeaderWeb/services/AlertUpdateService"/>
              </wsdl:port>
         </wsdl:service>
         <wsdl:service name="AlertFetchServiceService">
              <wsdl:port name="AlertFetchService" binding="intf:AlertFetchServiceSoapBinding">
                   <wsdlsoap:address location="http://localhost:9080/SOAPHeaderWeb/services/AlertFetchService"/>
              </wsdl:port>
         </wsdl:service>
    </wsdl:definitions>

    Hi,
    From your description I am assuming that you are using JAX-WS, if not get back to me as I might have another bug to look at.
    The problem is that the annotation @Oneway needs to be added to the methods in java files for this to work correctly. You can either do this manually or use the PI in the code editor. I have raised bug 6266513 to track the fact this annotation is not written out properly. I have logged bug 6266556 to track the nillable=true and extranious elements you will see when you do add @Oneway.
    Thanks for the quality of your bug report, and we would of course welcome any other feedback good or bad you would like to give us.
    Gerard Davison
    JDeveloper Web Services Team

  • Notes interaction pauses slide that contains multiple buttons

    I have several slides, each with a Notes Interaction. As advised, each of the notes is set to Rest of Project and are not resized.
    On the slides with a Notes Interaction, there are multiple buttons made out of Smart Objects. When a button is clicked, an advanced action causes a certain text caption to appear.
    The problem is that the buttons work UNTIL the Notes Interaction appears on the slide. As soon as the Notes Interaction appears, the slide seems to be paused and the buttons that are supposed to show text captions no longer work.
    I'm hoping that someone can help with a solution to this.
    By the way, this only seems to happy when previewing in HTML web browser.

    Jay,
    I had replied in an earlier thread that you need to have ONLY ONE notes interaction in the entire project - Not on every slide. The interaction is designed to be placed only once inside a project. So, placing it in the first slide of your project and setting 'Rest of Project' on it should cater to your need.
    You can choose slide notes or project based notes in the edit panel of the interaction.
    Marcellus

  • How can I make one slide that contains multiple slides?

    Hi, I want to make slideshow for presentation. And I want to know how can I make this slide.
    For example in this picture, have 1 main slide and 6 sub slides. I want to make slide like this, and all slides should be in one slide. And I want to zoom in to sub slide when I click and then zoom out when I click one more. And then second slide should be zoom in when I click and zoom out when I click again. And then slide 3 etc.
    I want to know how can I do this.

    There are two ways to do this.
    1. Duplicate the main or first slide numerous times - as many as you'll need for the show, which looks like 6 including the first "overview slide".
    2. You know have two choices - either use the Magic Move transition between the first slide and the next, which has the main box centre screen and enlarged proportionally.
    3. Or enlarge the slides so that the main point is central, but use hyperlinks to move between the slides. This also gives you the liberty of changing the order spontaneously should the situation demand. Using the main first slide, place an invisible box around each element and use a link to move to that slide which is enlarged. Then you have to decide if you will come back each time to slide 1 (the overview) by having the whole slide hyperlinked to slide 1, or the whole slide linked to the next slide. That way you don't have to go looking for the hyperlink area.
    The Magic Move effect will give your presentation a "Prezi" like effect, while the hyperlinked version I've described will just use gentle dissolves between each slide.
    I will sometimes use 3 because I want to encourage audience participation and let them choose where to go next... e.g., the various elements of a 747 wing assembly, or the interior of a large cruise ship, showing state rooms, dining, pool area, ballroom, etc.
    Les

  • Multiple insert statements within one DB transaction

    Can I use a Database control to do more than one insert in a Database control method?
    If not , will this feature become available?
    I want to
    1. set autocommit off
    2. insert master record
    3. insert child records
    4. commit

    Steve--
    Glad you got this figured out; I misunderstood what you wanted to do
    -- I thought you actually wanted to call commit(). :)
    Yes, a custom control is the way to aggregate multiple DB control
    calls that need to be treated as a unit relative to the current transaction.
    The "Workshop Internals" document sheds more light on the details of
    how / why this happens.
    http://dev2dev.bea.com/products/wlworkshop81/articles/wlw_internals.jsp
    Eddie
    Steve Hicks wrote:
    Solved (having read my course notes).
    To update different database inserts (or similar) all you have to do is encapsulate
    this in ONE Java Custom Contol Method and then call the various database inserts
    (in my case) in a Database control. The JCC method does a rollback if it exits
    with an exception
    "Steve Hicks" <[email protected]> wrote:
    Tried this but it does NOT work. Would be nice to use a database control
    for this
    since this scenario is common with master/detail tables. I got the following
    error:
    java.sql.SQLException: Cannot call Connection.commit in distributed transaction.
    Transaction Manager will commit the resource manager when the distributed
    transaction
    is committed.
    FOR CODE:
    java.sql.Connection connection = userRequestDB.getConnection();
    connection.setAutoCommit(false);
    userRequestDB.insertUserRequest(userRequestForm);
    connection.commit();
    Eddie O'Neil <[email protected]> wrote:
    Steve--
    One way to do this would be to wrap the DB control in a custom
    control (JCS) or web service. Then, you can call getConnection() on
    the
    DB control and invoke setAutoCommit(false) and commit yourself. Here's
    the DB control interface documentation:
    http://e-docs.bea.com/workshop/docs81/doc/en/workshop/java-class/com/bea/control/DatabaseControl.html?skipReload=true
    This should work, but I haven't tried it myself. :)
    Eddie
    Steve Hicks wrote:
    Can I use a Database control to do more than one insert in a Databasecontrol method?
    If not , will this feature become available?
    I want to
    1. set autocommit off
    2. insert master record
    3. insert child records
    4. commit

Maybe you are looking for

  • Problem with Sections and Table of Contents

    I have just purchased pages. Both my iMac and MacBook have Lion. I do not have the "sections" button on the toolbar. When I open the "inspector" and try to insert a Table of Contents, the "paragraph styles" pane is empty. How can I correct these prob

  • The default google search in the middle of a new window is gone, how do i restore it?

    I downloaded free flash player not knowing I already have it with adobe, but with it was Mcafee security (I uninstalled it right away). Now, when I open Firefox, it has the Google icon in the middle of the page, but when I add or open a new window, t

  • LIS showing incorrect UOM

    Hi all, I have created a new info structure to show billing data. We are using two unit of measure EA and CS in sales transactions. Now the LIS report is just adding the quantity of EA and CS and doing the total for billing qty. Is there any way by w

  • 11g New features to restore entire schema for 4 to 5 days back.

    please help with 11g New features to restore entire schema for 4 to 5 days back by enabling FRA or FRA with archive in 11.2.0.2 database.

  • Spiceworks Implemented and Used in a Business Environment

    Are there any spiceheads near Jasper, IN that has Spiceworks set up and using in a business environment that would be willing to demonstrate capabilities and their setup? I have a setup at home but I do not have many devices to manage or a multitude