Submitting a form by creating multiple lines in the DB table

Hi all

I created a new Apex application and have created a table with columns - USER_ID, ADDRESS, TELEPHONE, CREATEDON etc.

I want to read the USER_ID of the user and complete this field on the form and fill in the CREATEDON field with the date system. These two fields are hidden on the form.

Now, when the user fills his address and phone on the form and click on send, 3 identical rows are inserted into the DB table. The values of user and date system are set correctly.

To set the UserID field, I inserted a $APP_USER. in the default value of the form section. I am not able to understand why the Apex is to insert several lines even when you click the submit button once.

Help, please.

The problem is solved now. I noticed that add default values for the form fields added process duplicate. That's why the form has been processed three times. Remove the additional process solved the problem.

Tags: Database

Similar Questions

  • view multiple lines in the advanced table

    Hi all

    I have a requirement. I created advancedtable. When the page loads, to display 4 rows at a time. Can anyone please help how to achieve this req

    Kind regards
    Murali

    Hello

    Write the code below in AM that will create 5 blank lines in the advanced table.

    xxVOImpl voImpl = getxxLineVO1();
    voImpl.setWhereClause ("1 = 2");
    voImpl.executeQuery ();
    for (int i = 1; i)<=5>
    {
    Line = voImpl.createRow ();
    voImpl.insertRow (row);
    row.setNewRowState (Row.STATUS_INITIALIZED);
    row.setAttribute ("column1", i);
    row.setAttribute ("column2", "XYZ");
    }

    Kind regards
    Mary

  • How to insert multiple lines to the DB table

    I create processes in BPM Studio 10 g.

    I write below the code snippet to insert data in the database.
    However, it does not work.

    In the flow of the screen, the user can key in several rows of data. I try to add the to_char (element.purpose), but the Studio does not allow me to do.

    I think the code is wrong, but I don't know how to change it.

    ----------------code in PBL------------------------------------------------------------------------------
    for each item in BPMObject.group1
    do

    Insert in DBM. SOADEMO. SZ_TABLE (id, amount, purpose, result)
    values (element.id, element.amount, element.purpose, element.result)

    end

    -----------------------------------------------------------------------------------------------------------------

    ID, amount: decimal
    Purpose, result: String

    DBM: Module
    A group is under a BPMObject but not inherit a table.

    Hello

    It seems that you do not use a variable in the statement "for each.

    Right now you have:

    for each item in BPMObject.group1...

    You can add a new instance variable called 'bpmObject' which is of the type "BPMObject". You must use this variable in the job call the interactive component fills the table of the group. Then, you would change your logic to reflect this change by making it to read:

    for each item in bpmObject.group1...

    Hope this helps,
    Dan

  • Select multiple lines in the double table

    It is possible to select several rows in double table uses a single select statement.

    for example, I want to

    column_name
    ---------------------
    1
    2
    3
    4

    Published by: vidya.ramachandra on December 14, 2009 08:24

    Use PLUG IN and LEVEL

    SQL> select level
      2  from   dual
      3  connect by level <= 10;
    
         LEVEL
    ----------
             1
             2
             3
             4
             5
             6
             7
             8
             9
            10
    

    Edit
    And: Welcome to the forum ;)

    Published by: hoek on December 14, 2009 17:29

  • How to add multiple lines when the button is clicked

    How to add multiple lines when the click on button now is just add a row .plz give me idea how... waiting for answer

    / public final class screen extends MyScreen
    {
    /**
    * Creates a new object of MyScreen
    */
    ObjectChoiceField obj1 obj2, obj3, obj4.
    Table of String() = {'101 ', ' 102'};
    String of shadow [] = {"Shade1", "Shade2"};
    Rolls of string [] = {'101 ', ' 102'};
    String cutting [] = {"100-150", "150-200"};
    Chain of selectedindex1, selectedindex2, selectedindex3, selectedindex4;
    LabelField lbl1 lbl2, lbl3, lbl4;
        
    GFM LinedGridFieldManager;
    HFM HorizontalFieldManager, hfm1, hfm2 hfm3;
    VerticalFieldManager vfmMain;
        
    public MyScreen()
    {
        
    Set the displayed title of the screen
    hfm1 = new HorizontalFieldManager (HorizontalFieldManager.NO_VERTICAL_SCROLL |) HorizontalFieldManager.NO_VERTICAL_SCROLLBAR);
    hfm2 = new HorizontalFieldManager (HorizontalFieldManager.NO_VERTICAL_SCROLL |) HorizontalFieldManager.NO_VERTICAL_SCROLLBAR);
    hfm3 = new HorizontalFieldManager (HorizontalFieldManager.NO_VERTICAL_SCROLL |) HorizontalFieldManager.NO_VERTICAL_SCROLLBAR);
    HFM = new HorizontalFieldManager (HorizontalFieldManager.FIELD_RIGHT);
    vfmMain = new VerticalFieldManager (Manager.NO_VERTICAL_SCROLL |) Manager.NO_HORIZONTAL_SCROLLBAR);
            
    obj1 = new ObjectChoiceField ("", graph, 0, FIELD_LEFT);
    obj2 = new ObjectChoiceField ("", blind, 0, FIELD_LEFT);
    Obj3 = new ObjectChoiceField ("", rolls, 0, FIELD_LEFT);
    Obj4 = new ObjectChoiceField ("", cuts, 0, FIELD_LEFT);
            
    LBL1 = new LabelField("");
    LBL2 = new LabelField("");
    lbl3 = new LabelField("");
    lbl4 = new LabelField("");
            
    ButtonField btnAdd = new ButtonField ("ADD", FIELD_RIGHT);
            
    GFM = new LinedGridFieldManager (4, LinedGridFieldManager.VERTICAL_SCROLL);
            
    hfm1.setMargin (20, 0, 10, 0);
    hfm1. Add (new LabelField ("Chart"));
    hfm1. Add (obj1);
    hfm1. Add (new LabelField ("Shade"));
    hfm1. Add (obj2);
            
    hfm2. Add (new LabelField ("Rolls"));
    hfm2. Add (Obj3);
    hfm2. Add (new LabelField ("Cuts"));
    hfm2. Add (Obj4);
    HFM. Add (btnAdd);
            
    GFM. Add (new LabelField ("Chart"));
    GFM. Add (new LabelField ("Shade"));
    GFM. Add (new LabelField ("Rolls"));
    GFM. Add (new LabelField ("Cuts"));
            
    vfmMain.add (hfm1);
    vfmMain.add (hfm2);
    vfmMain.add (hfm3);
    vfmMain.add (hfm);
    vfmMain.add (new SeparatorField());
    vfmMain.add (gfm);
    Add (vfmMain);
            
    btnAdd.setChangeListener (new FieldChangeListener()
    {
    ' Public Sub fieldChanged (field field, int context) {}
    TODO self-generating method stub
    selectedindex1 = chart [obj1.getSelectedIndex ()];
    selectedindex2 = shade [obj2.getSelectedIndex ()];
    selectedindex3 = rolls [obj3.getSelectedIndex ()];
    selectedindex4 = cuts [obj4.getSelectedIndex ()];
                    
    While (LBL1. GetText(). Equals("") | LBL2. GetText(). Equals("") | lbl3. GetText(). Equals("") | lbl4. GetText(). Equals(""))
    {
    LBL1. SetText (selectedindex1);
    LBL2. SetText (selectedindex2);
    lbl3. SetText (selectedindex3);
    lbl4. SetText (selectedindex4);
                    
    GFM. Add (LBL1);
    GFM. Add (LBL2);
    GFM. Add (lbl3);
    GFM. Add (lbl4);
                    
    }
    }
    });
    }
    }

    Hi Piya,

    I run your code, and according to your logic that it works correctly.

    It's adding that line only once because according to your logic that one line can be added to MDT, if you do not want to add line on each click on the button, follow these steps:

    selectedindex1 = chart [obj1.getSelectedIndex ()];
    selectedindex2 = shade [obj2.getSelectedIndex ()];
    selectedindex3 = rolls [obj3.getSelectedIndex ()];
    selectedindex4 = cuts [obj4.getSelectedIndex ()];

    Lbl1 LabelField = new LabelField("");
    Lbl2 LabelField = new LabelField("");
    LabelField lbl3 = new LabelField("");
    LabelField lbl4 = new LabelField("");
    If (LBL1. GetText(). Equals("") | LBL2. GetText(). Equals("") | lbl3. GetText(). Equals("") | lbl4. GetText(). Equals(""))
    {
    LBL1. SetText (selectedindex1);
    LBL2. SetText (selectedindex2);
    lbl3. SetText (selectedindex3);
    lbl4. SetText (selectedindex4);
                    
    GFM. Add (LBL1);
    GFM. Add (LBL2);
    GFM. Add (lbl3);
    GFM. Add (lbl4);
                    
    }

  • Can't understand why this query returns multiple lines with the same data

    Hi all
    I am a relative novice and self-taught when it comes to SQL. I wrote a query to our reporting tool that returns multiple rows, and I can't understand why. I know that I can use the SELECT DISTINCT option, but it really slows the execution when I do. I'd really rather understand if I can change the code to avoid the multiples. This is the query. I've included a few statements in italics to help explain the break. Any ideas?

    SELECT MATSITE, MATPONUM, FIRSTRECPTDATE
    Of
    Subquery that concludes the first date on which purchase orders have been implemented with ACK State
    (SELECT ACKSTAT. PONUM AS 'ACKPONUM', (MIN (ACKSTAT. CHANGEDATE)) AS 'FIRSTACKDATE '.
    OF PZMAX. POSTATUS ACKSTAT
    WHERE (ACKSTAT. STATE = 'ACK') AND (ACKSTAT.ORGID ='CGSALTUS)
    GROUP OF ACKSTAT. PONUM),
    Subquery that concludes the first reception against a purchase order transaction for purposes of comparison
    (SELECT TRANS. PONUM AS "MATPONUM", TRANS. SITEID AS 'MATSITE', (MIN (TRANS. TRANSDATE)) AS 'FIRSTRECPTDATE '.
    OF PZMAX. MATRECTRANS TRANS
    WHERE (TRANS.ORGID ='CGSALTUS) AND (TRANS. HOUR > =: startDate and TRANS. TRANSDATE < =: endDate)
    TRANS GROUP. SITEID, TRANS. PONUM)
    WHERE
    (ACKPONUM = MATPONUM AND FIRSTRECPTDATE < FIRSTACKDATE) OR (NOT EXISTS (SELECT 1 FROM PZMAX. POSTATUS ACKSTAT2 WHERE (ACKSTAT2. PONUM = MATPONUM) AND (ACKSTAT2. STATE = 'ACK') AND (ACKSTAT2.ORGID ='CGSALTUS)))

    The where the instruction is intended to find when one of two conditions exists. ((1) received happened before the command either in ACK or 2) a reception that's happened, but the purchase order is never in ACK State. It seems that this second condition that creates multiple lines.

    Any thoughts will be appreciated geratly.

    Dave Teece
  • Add lines to the slot table with apex_item.checkbox form?

    Hello

    I created a data manipulation process to add a line in a tabular presentation. The problem is that I have a few boxes and when I click on the button to call the procedure for adding line is not
    create one of the only text fields. Is anyway for me to create the checkboxes in this way?

    Thanks in advance!

    Hello

    Take a look on Re: Add a line in the detail table when the checkbox is enabled on a table of master report clone an entire line so it should include check boxes. Just make sure that ypu run updateInputs() or something similar to make sure that all the boxes have unique attributes "name".

    Andy

  • Obtaining error APP-FND-00874: Routine FDFBDF found no line in the FND_DESCRIPTIVE_FLEXS table

    I wrote a stored procedure in our custom schema.  I have granted rights of running APPS to it.   When put in a concurrent program I get this message and it will not even start running. I'm under the it the purchase of Super user


    APP-FND-00874: Routine FDFBDF found no line in the FND_DESCRIPTIVE_FLEXS table


    So I created 2 exactly stored procedures as below but different name.  I put one in our custom schema and the other in the scheme of the APPS and I still get the same error message.


    create or replace

    PROCEDURE TESTPROCEDURE1 (errbuf OUT VARCHAR2, OUT VARCHAR2 retcode) HAVE

    BEGIN

    NULL;

    END TESTPROCEDURE1;

    Was that there was a control on behalf of the simultaneous request character and, possibly, the short name.   It was not visible until I stuck in another application.

    Thank you for all your help.

  • How to add new features to the line in the nested table advace?

    Hello

    I want to create a new line in the nested table advance.

    Help, please.

    Thank you

    Hello

    Use the code below to add a line in the nested Table.

    If (PageContext.GetParameter ("addRows")! = null) {}

    OAAdvancedTableBean sectionsTable = (OAAdvancedTableBean) webBean.findChildRecursive ("AdvTblRN");

    OAInnerDataObjectEnumerator sectionsEnum = new OAInnerDataObjectEnumerator (pageContext, sectionsTable);

    {while (sectionsEnum.hasMoreElements ())}

    Set of rows sectionsRowSet = sectionsEnum.nextElement () (set of lines);

    for (int i = 0; i)< 1;="">

    NewRow = sectionsRowSet.createRow ((OARow)) OARow;

    sectionsRowSet.insertRowAtRangeIndex (sectionsRowSet.getRowCount (), newRow);

    }

    }

    Thank you

    Dilip

  • making line for the current line on the expansion table

    Hello

    I use JDeveloper 11.1.1.5.0

    I have a table with facet detailstamp enabled. Each line is to have an arrow icon to expand this line.

    My problem is that line expand action seem to work independently with the selection of rows in the table. When I develop a line, it does not only rank as current. I tried with the code below to make the line of the current table, but could not do.
        public void makeCurrentRow(RowDisclosureEvent rowDisclosureEvent) {
            usersTable = (RichTable)(rowDisclosureEvent.getSource());        //usersTable is the binding of the table on the page
            RowKeySet discloseRowKeySet = usersTable.getDisclosedRowKeys();
            usersTable.setSelectedRowKeys(discloseRowKeySet);
    
            AdfFacesContext.getCurrentInstance().addPartialTarget(usersTable);
        }
    Please let me how can know I do the table row under the current name on the expansion of this line.

    Kind regards
    Fox

    I implemented a sample here http://tompeez.wordpress.com/2013/04/12/make-disclosed-row-the-current-row-when-using-a-detail-facet-of-a-table/

    Timo

  • Restore the value of the selected line in the editable Table.

    Hello, I use Jdeveloper 11.1.2.1.0.

    My problem is:
    1. Select a line in the editable table.
    2. change the value inside elements of the af:inputText of columns.
    3. tap on restore.
    4. the values of the selected line remains the same.

    If I select another line, before the restore, the restore will work as expected.

    I want to when you press the button cancel the values of the selected row to be rollback-ed as well.

    Set the immediate on all the inputTextFields in the table and it worked.

    Thank you.

  • Line in the ADF Table color

    Is it possible to alternate the color of the lines of the ADF table? Do I have to use a skin?

    Code example would be much appreciated.

    Thank you, Mitch

    Read about the line of the bands here:
    http://download.Oracle.com/docs/CD/E12839_01/apirefs.1111/e12419/tagdoc/af_table.html
    Basically, you can use the rowBandingInterval attribute.

  • You can create a datamerge at the editing table?

    Using InDesign CS5 is anyway that you can create a datamerge at the editing table?

    I want to place the file number in the section of purge for the series of newspaper advertisements. When I try to create a merged document, I am informed that there are no placeholders are present even if I added in the mount table.

    Someone at - it solutions?

    When you configure the placeholder, set the text to get to the bottom of the text box and stretch the text box so that it touches the print area of the page.

  • Combination of fields on the form to create a line of message and subject

    I have a few fields on my form I want to combine and create a line of message and the subject of.

    The fields are FirstName and LastName

    Using these two I want a topic saying something like "it's a form BLAH

    First name + name

    And something similar to a message on e-mail. As cc their email so that they get a copy of the form

    Is it possible

    Hello

    In my original example, I have a TextField object, called subjectLine. If your form does not have this object, then the script will fail, because Acrobat/Reader knows not what subjectLine is (for example, it is undefined).

    If you look at the original example, I want to build a subject line in the electronic mail using the TextField subjectLine. That's why I first test to make sure that the subjectLine TextField is not null.

    Where in your case you should be stable that FirstName and LastName is not zero, because these are the two objects that you use to create your subject line of the message.

    So for this part of the script, it's what I expected:

    // Check subject line field and extend error message
    if (form1.p1.subUserInformation.FirstName.rawValue == null || form1.p1.subUserInformation.LastName.rawValue == null)
    {
         errorMessage = errorMessage + "\n - please provide your first name and last name.";
    }
    else
    {
         vSubject = "Completed: Structure Change Form " + form1.p1.subUserInformation.FirstName.rawValue + " " + form1.p1.subUserInformation.LastName.rawValue;
    }
    

    Then the last script block checks all the options that are used to form the email and either send the email if they are all not null or gives the error message to the user:

    // If fields required for script are null, warn user and do not initiate email
    if (emailAddress.rawValue == null || form1.p1.subUserInformation.FirstName.rawValue == null || form1.p1.subUserInformation.LastName.rawValue == null)
    {
         xfa.host.messageBox(errorMessage, "Sending an email", 0, 0); // Send out a custom error message if any of these fields are null
    }
    else
    {
         // Everything is OK, send email
         event.target.submitForm({cURL:"mailto: "+ vEmail +"?subject=" + vSubject +"&body=" + vBody + vCC,cSubmitAs:vFormat,cCharset:"utf-8"});
    }
    

    Who is?

    Niall

  • How to create multiple lines of text with effects?

    New to first...

    I can create a static title without any problems and as well to animate it.  My challenge is that I don't know how the first manages text effects.  I can't understand how to do something as simple as have several bullet point text dissolve of lines on the screen in the order. I use a few "Pro-sumer" software video editing with all sorts of creative text effects.  But, I get more large projects that require more sophisticated tools, so I jumped on the first.  I watched all the videos on the web "creation of text"... impossible to find something on this topic to the Prime Minister.  Help, please!

    Thank you

    Tom

    Meg answer is technically correct, but a lot of your time, especially if you have to re-do something later.

    When I have the multiline text that I don't want to animate with After Effects, I create text on a title, and then I copy and paste from there to place its own title of each line of text.

    Then I put all these titles on the timeline, stacked in layers, one over the other.

    From there, I can change the time where each line of text within the framework. I can use normal transitions to do this, wipe, dissolve, or push. My most recent favorite is IMPACT PUSH, which you can get for free, here: https://www.filmimpact.net/plugin/transition-pack-1/

    Indeed, After Effects is the best option by far, if you want to do anything fancy or cool.

Maybe you are looking for

  • The search for SD-Card-Reader of M30x for Linux (Debian)

    Hi all googeling I have not found a way to get my sd card works in linux. As far as I understand that there are no drivers. Well, Microsoft isn't not an option in my case I really need a work around short of switching to laptops and external card rea

  • Photos. In the app Gallery are black

    If anyone has experienced this? Is it possible to recover photos? In the section the app Gallery, all photos since on film July (photos may be 140 or almost) are simply black and white photos. Ditto the auto-sauvegardes to Google. Any help would be a

  • RECYCLE bin is corrupted on C: - I have SP3 - how can I solve this problem

    I found a fix for this problem, but it won't work with SP3.  I don't know if it's related but around this same time, I developed a problem of file with moving files. Every time I have to MOVE a FOLDER AND THEN TRY OF the OPEN I CAN. T properties on t

  • Error: C:\window\system321D11 Hhost.exe (NTVDM CPU has encountered an illegal intruction)

    At the start, I have this message appears in the box marked 16-bit MS-DOS subsystem message says: C:\window\system321D11 Hhost.exe The NTVDM CPU has encountered an illegal intruction CS, 1216 IP; OP 0100; ffd8ffe000 choose close to teminate the appli

  • Status of the App (? refused)

    Hi all! On 24 November, I presented an update the portal provider for an existing application of Blackbery Playbook.  Then, four days later, I introduced a brand new Blackberry 10 application.  The update of the app Playbook still has a status of 'ne