Add Multiple Item in database on single click

hi Friends,
i have a problem :-
i have a bill with multiple item eg . Apple (12), Banana (49), Badam (145) , Grapes(25) with there quantity and now i want to Add these item with quantity in my database
when i finaly click on submit button .
Actully I have been used tabular form but i am facing one problem when using tabular form ,in Tabular form i enter first item eg . Apple and there quantity eg. *12* in textfield and after click on Add Row Buttom entry went to the database . but i want Entry Shouldn't go in to the database. But only New Row Should Add there when i click on Add Row Button.
I want all these 4 item should enter in to data base when i click on Final Submit.
Manoj

You have to study document [http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14303/advanc.htm#sthref2152] . Every case is other, you have to work hard : ). But it's good addition.
Now I have no time, I will for 10 hours in forum, if you can't resolve your problem I will help you
If I help you please grade HELPFUL or CORRECT: )
Edited by: AndyPol on 2009-09-05 12:47

Similar Messages

  • How to add multiple passbooks cards to a single mail

    im trying to add multiple passbook cards to a single mail on iphone
    how can i do that....
    the upload or share tab in passbook card only allows one card at a time on my iphone...
    pls help...

    its still not happening
    i did that way and pasted all multiple passbook cards in a single message
    then i copied all and pasted it in mail...
    its coming as attachment .pk in mail body but no attachment is there ...
    so the receiver of the mail is not able to get the picture of the passbook card...
    its not working...

  • Tree slow and bug with Add Multiple Items to End

    Hello,
    I use "Add Multiple Items to End" to fill a tree quickly in Labview 8.5.
    In my test example, It's possible to choise an array of 100, 255 or 1000. parents.
    Each parent has 10 children
    100 is correctly, 255 is slowly an 1000 is big bug !
    Y does a solution, or it has Labview major weaknesses with the function tree.
    Thanks for you help.
    A. Carbonnel
    AC
    Attachments:
    Load Tree.vi ‏37 KB

    Here is the response of France rupport labview
    Sir,
    The behavior you observed beyond 1000 elements vi Tree is a known bug of R & D LabVIEW. Pending that it is corrected in a future version, I invite you to use the ActiveX Treeview. He should be able to meet your expectations in terms of number of elements.
    You can see an example of the use of the ActiveX in attachments.
    Sincerely,
    AC
    Attachments:
    Tree view.zip ‏48 KB

  • How can add multiple item in form .

    hi,
    i have a critical problem .i am creating a check in form for hotel .Now problem is when i fill personal details of Customer with his three family member .here i want to enter all three member name and there relationship with customer .so how can i insert three text fild for name and relation ship in middle of form .Member may be three or Five .
    how can i add multiple item in middle of form according to required .
    Thanks
    Manoj

    I'm assuming that you're talking about an Application Express Form here. In that case, have you thought about using a "master-detail" form? Take a look at the example here Adding a Master Detail Form.
    C.

  • Populate Multiple Items bundled in a single query

    Hello,
    I am trying to create a report in which I have mulitple items that I want to populate. All of these use the same query but use different rows in the query to populate themselves. My question is:-
    Is there a way to bundle the item assignment into a single query and populate the items from there? I want to reduce the time it takes for me to display the report and just hit the database once instead.

    Hi there,
    when u say report, i think its a more of a page showing few items on a region whose values are populated from Database rather than a SQL report which will not have any items. Is that correct?
    yes, multiple items of a page can be assigned values at once.
    assume: P1_ITEM1,P1_ITEM2,P1_ITEM3,P1_ITEM4 are different items on a page, an "On-Load Before Header" PL/SQL process can be created to assign values to the items in this way:
    SELECT tab.col1,tab.col2,tab.col3,tab.col4 INTO :P1_ITEM1,:P1_ITEM2,:P1_ITEM3,:P1_ITEM4 FROM TABLE tab;
    Item "Source Used" should be of type: Only When Current Value in session state is null
    Source Type: PL/SQL Expression or function
    and Source Value or EXpression should be some thing like this :P1_ITEM1
    Hope this helps.
    Edited by: Chaitu_Apex on Mar 10, 2010 2:43 PM

  • HTML + JQuery (CSOM) to add multiple item to a Sharepoint list and get their IDs

    Hi everyone.
    I try to use HTML + JQuery in CEWP to build some sort of analog of InfoPath's repeating table in order to be able to insert multiple items in a Sharepoint list using CSOM.
    The current task is to get the IDs of inserted items (in order to use those IDs later to add attachments to the list items) as soon as they are added to the list. I've tried several ways but couldn't get the IDs of all inserted items. Usually
    I get "-1" as an ID for every item except the last one, which returns me the correct ID. 
    Bellow is the code.
    <script src="/testsite1/SiteAssets/jquery-1.11.1.min.js" type="text/javascript"></script>
    <script src="/testsite1/SiteAssets/jquery.SPServices.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    $(document).ready(function() {
    var click = 1;
    $("#btn_id_1").click(function() {
    click ++;
    $("#tr_id_1").clone().appendTo("#tbl_id_1").attr("id", "tr_id_" + click.toString()).find("input").val("");
    $("#btn_id_2").click(function() {
    Save();
    function Save() {
    var ctx = new SP.ClientContext.get_current();
    var taskList = ctx.get_web().get_lists().getByTitle('Tasks');
    var taskItemInfo = new SP.ListItemCreationInformation();
    var vendor;
    var certname;
    var certid;
    $("#tbl_id_1 tr").each(function() {
    vendor = ($(this).find(".vendor")).val();
    certname = ($(this).find(".certname")).val();
    certid = ($(this).find(".certid")).val();
    newTask = taskList.addItem(taskItemInfo);
    newTask.set_item('Title', vendor);
    newTask.set_item('Request_', certname);
    newTask.set_item('h', certid);
    newTask.update();
    ctx.load(newTask);
    ctx.executeQueryAsync(addTaskSuccess, addTaskFailure);
    //timeout();
    function timeout() {
    alert ("!!!");
    function addTaskSuccess(sender, args) {
    alert(newTask.get_id());
    //AddAttachment(newTask.get_id())
    function addTaskFailure(sender, args) {
    //alert(newTask.get_id());
    alert("no");
    window.location = window.location.pathname;
    </script>
    <div id="div_id_1" class="div_class_1">
    <table id="tbl_id_1">
    <tbody>
    <tr id="tr_id_1">
    <td>Vendor:<br><input type="text" class="vendor" /></td>
    <td>Cert. Name:<br><input type="text" class="certname" /></td>
    <td>Cert. ID:<br><input type="text" class="certid" /></td>
    <td>Attachment:<br><input type="file" class="attachment" /></td>
    </tr>
    </tbody>
    </table>
    <div><button id="btn_id_1" type="button" width="10" height="10">+</button></div>
    <div><button id="btn_id_2" type="button">Save</button></div>
    </div>

    Here's a working solution (thanks to
    this guy)
    <script src="/testsite1/SiteAssets/jquery-1.11.1.min.js" type="text/javascript"></script>
    <script src="/testsite1/SiteAssets/jquery.SPServices.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    var array = [];
    $(document).ready(function() {
    var click = 1;
    $("#btn_id_1").click(function() {
    click ++;
    $("#tr_id_1").clone().appendTo("#tbl_id_1").attr("id", "tr_id_" + click.toString()).find("input").val("");
    $("#btn_id_2").click(function() {
    //Save();
    //Call();
    var asyncPromises = Save();
    asyncPromises.done(function(result) {
    //alert(array.length);
    console.log(array.length);
    for (var i=0; i<array.length; i++) {
    //alert(array[i].get_id());
    console.log(array[i].get_id());
    asyncPromises.fail(function(result) {
    function Save() {
    var buildDeferredSaves = $.Deferred(function() {
    //var array = [];
    var ctx = new SP.ClientContext.get_current();
    var taskList = ctx.get_web().get_lists().getByTitle('Tasks');
    var taskItemInfo;
    var vendor;
    var certname;
    var certid;
    $("#tbl_id_1 tr").each(function() {
    vendor = ($(this).find(".vendor")).val();
    certname = ($(this).find(".certname")).val();
    certid = ($(this).find(".certid")).val();
    taskItemInfo = new SP.ListItemCreationInformation();
    newTask = taskList.addItem(taskItemInfo);
    newTask.set_item('Title', vendor);
    newTask.set_item('Request_', certname);
    newTask.set_item('h', certid);
    newTask.update();
    ctx.load(newTask);
    array.push(newTask);
    ctx.executeQueryAsync(
    function() {
    // Successful
    buildDeferredSaves.resolve();
    function(sender, args) {
    // Failure
    buildDeferredSaves.reject(args.get_message());
    return buildDeferredSaves.promise();
    </script>
    <div id="div_id_1" class="div_class_1">
    <table id="tbl_id_1">
    <tbody>
    <tr id="tr_id_1">
    <td>Vendor:<br><input type="text" class="vendor" /></td>
    <td>Cert. Name:<br><input type="text" class="certname" /></td>
    <td>Cert. ID:<br><input type="text" class="certid" /></td>
    <td>Attachment:<br><input type="file" class="attachment" /></td>
    </tr>
    </tbody>
    </table>
    <div><button id="btn_id_1" type="button" width="10" height="10">+</button></div>
    <div><button id="btn_id_2" type="button">Save</button></div>
    </div>

  • Add multiple SMTP addressee to a single mailbox

    Here is what I tried to do. we are using exchange 2007.
    1. remove secondary SMTP email address for every user, for example
    [email protected], [email protected],etc should be removed from mailboxes of user1 and user2. their primary SMTP is @domain1.com
    2. add multiple SMTP addressees([email protected],[email protected],etc) to a single mailbox, for example,
    [email protected]
    so whoever send emails to @domain2.com will get an auto-reply message.
    for #1, i found a tool ,ADModify can do the job
    for #2, i am still looking for the powershell command or tool that i can import a list of SMTP addresses as secondary SMTP addresses to a single mailbox.

    Hello,
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    I'm marking the reply as answer as there has been no update for a couple of days.
    If you come back to find it doesn't work for you, please reply to us and unmark the answer.
    Cara Chen
    TechNet Community Support

  • Why can I not select multiple items in Muse using Shift Click after installing update?

    I am trying to select multiple items on a Muse page by holding shift and clicking each items. This has been pretty much my standard method across Adobe products but after updating Muse it will no longer let me do this. Am I missing something or did this method change with the update?

    It seems to be happening mostly for Hotmail account.  I just rebooted and tested two accounts.  Only in Hotmail now.

  • How do I add multiple items to a hitTestObject?

    I have a horizontally scrolling flying game involving a character and diferent types of food moving across the screen from right to left which the character has to collect ("hit"). I have the hitTestObject working for 2 different food movieclips with one item belonging to a healthyList, and the other to a junkList.
    The problem is I don't know how to add more items (movieclips) to each of the lists, so that I have for example 6 items in the healthyList and 4 items in the junkList.
    Below is the code in my Engine.as file. The red highlighted text is the code that creates the problem. I thought that I just needed to add this line in order to add another item to the "healthyList" of food types, but I obviously have it in the wrong place or have the wrong code completely.
    package
        import flash.display.MovieClip;
        import flash.display.Stage;
        import flash.events.Event;
        public class Engine extends MovieClip
            private var numClouds:int = 5;
            private var healthyList:Array = new Array();
            private var junkList:Array = new Array();
            private var myFlying:Flying;
            public function Engine()
                myFlying = new Flying(stage);
                stage.addChild(myFlying);
                myFlying.x = stage.stageWidth / 8;
                myFlying.y = stage.stageHeight / 2;
                for (var i:int = 0; i < numClouds; i++)
                    stage.addChildAt(new Cloud(stage), stage.getChildIndex(myFlying));
                addEventListener(Event.ENTER_FRAME, loop, false, 0, true);
            private function loop(e:Event) : void
                if (Math.floor(Math.random() * 90) == 5)
                    var healthy:Carrot = new Carrot(stage, myFlying);
                    var healthy:Broccoli = new Broccoli(stage, myFlying);
                    healthy.addEventListener(Event.REMOVED_FROM_STAGE, removeHealthy, false, 0, true);
                    healthyList.push(healthy);
                    stage.addChild(healthy);
                    var junk:Hotdog = new Hotdog(stage, myFlying);
                    junk.addEventListener(Event.REMOVED_FROM_STAGE, removeJunk, false, 0, true);
                    junkList.push(junk);
                    stage.addChild(junk);
            private function removeHealthy(e:Event)
                healthyList.splice(healthyList.indexOf(e.currentTarget), 1);
            private function removeJunk(e:Event)
                junkList.splice(junkList.indexOf(e.currentTarget), 1);
    All help and advice very much appreciated.
    Thank you!

    It's good that you don't expect me to do the work for you - saves me from letting you know that.  Doing the work is how you learn.  I am also not here to teach you, and it looks like you might need to get some basics under your belt before you can pursue something like what you are doing now.
    As I already said, the Math.random() method will be one of the key techniques you will need to use for anything you want to have happen randomly.
    Usually it comes in handy with randomly choosing an array's index, where the array stores the different items you want to randomly choose.  In your case, the array could store the names of the different functions you could call for each food item you want to add. Or you could have the classes of the objects in the array and randomly choose which one to load in...
       var foodClasses:Array = new Array("Carrots", "Broccoli", "Hotdog", etc...);
    this approach requires knowing how to dynamically create a new class instance using only a String value.... for example:
        var ClassRef:Class = Class(getDefinitionByName("className"));
        var classInstance:* = new ClassRef();
        addChild(classInstance);
    In that bit of code, the className would be whatever class name you randomly pulled from the array of the class names...
    I didn't say it isn't effective, though it can easily fail being effective as well when your file starts getting bogged down with everything else that is going on.  I said it isn't efficient.  It is constantly fliipping a 120-sided coin, as fast as the file's frame rate to see if it comes up 50 or not.  You could use a setTimeout function or a Timer and get much more efficent performance instead... only processing the code when the time passes. 
    If you cannot understand how that one line of code works, you are probably in over your head and you need to back up to more basic learning before you can tackle something like what you seem to want to create here. 

  • When double clicked on item, it also fires single click

    Hi,
    I want to seperate a single click and a double click. I try doing this by using:
    if (e.getClickCount() == 1)
    fireSingleClick();
    else if (e.getClickCount() >= 2)
    fireDoubleClick();
    But when I doublic click, it also fires the singleclick. Does anyone know how to prevent this?
    thanks,
    Hugo

    Using the suggestions found on this page I came up with something that I think is a little easier to implement. First of all a few observations:
    1) From my testing on Windows 98 it appears that the click count is incremented as long as the click is within about 500 milliseconds. To be consistent I set this as the default value for my class (not the 300 that appears to be used in most threads)
    2) A double click will be processed immediately. On the other hand, a single click has to wait 500 milliseconds before being processed, just to make sure another click isn't received (which would make it a double click). Just seems a bit strange that a double clicks executes faster than a single click.
    Here's the code:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class ClickListener extends MouseAdapter implements ActionListener
        MouseEvent lastEvent;
        Timer timer;
        long time;
        public ClickListener()
            this(500);
            time = System.currentTimeMillis();
        public ClickListener(int delay)
            timer = new Timer( delay, this);
        public void mouseClicked (MouseEvent e)
            if (e.getClickCount() > 2) return;
            lastEvent = e;
            if (timer.isRunning())
                timer.stop();
                doubleClick( lastEvent );
            else
                timer.restart();
        public void actionPerformed(ActionEvent e)
            timer.stop();
            singleClick( lastEvent );
        public void singleClick(MouseEvent e) {}
        public void doubleClick(MouseEvent e) {}
        public static void main(String[] args)
            JFrame frame = new JFrame( "Double Click Test" );
            frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
            frame.addMouseListener( new ClickListener()
                public void singleClick(MouseEvent e)
                    System.out.println("single");
                public void doubleClick(MouseEvent e)
                    System.out.println("double");
            frame.setSize(200, 200);
            frame.setVisible(true);
    }

  • How can I open multiple email messages with a single click?

    On the Mac mini I use at work, I can select several email messages at a time and open them all up by double-clicking the mouse pointer on any of the selected messages. My MacBook Pro at home seems to lack that functionality, even though both are running the same version of Yosemite. In order to open up multiple messages (each, in its own window) on my MacBook Pro, I need to double-click on each individual message, even though I have multiple messages selected on my MacBook Pro, using Yosemite's Mail app. I assume there is an optional setting that can enable multiple messages to be opened by double-clicking on a single selected message, but I have looked through the Mail app's preferences and I come up empty handed. Can someone please clue me in on how to get this functionality on my MacBook Pro?

    Hi,
    There is another similar icon named Bookmarks in the '''Customize''' window which provides the said functionality. You have to add that.

  • Can I add multiple swing elements on a single line.

    Im adding a number of labels to the JPanel -- is there a way to add them all on one line as opposed to:
    c.add(top1);
    c.add(top2); etc. etc.?

    Im adding a number of labels to the JPanel -- is
    there a way to add them all on one line as opposed
    to:
    c.add(top1);
    c.add(top2); etc. etc.?well you can do
    c.add(top1); c.add(top2);
    but basically no, you can't add them all together at the same time

  • How to add Multiple XML Tags for a single column for an RDF

    Hi Gurus,
    I have Requirement in the Oracle D2k Report from which we are generating the xml tags.
    My Requirement is in a table i have 2 columns say A and B.
    i am able to generate three xml tags separately using the report builder by clicking on the column name and in the xml setting giving the xml tag.
    eg: table Acount contains 2 columns A and B with respective data
    A B
    QT 1
    QTS 0
    QTR 2
    i am able to general xml tags like this
    <ACount>
    <AStatus>QT</AStatus>
    <HeadCount>1</HeadCount>
    </ACount>
    <ACount>
    <AStatus>QTS</AStatus>
    <HeadCount>0</HeadCount>
    </ACount>
    my requiremnt for the xml tags is
    <ACount>
    <AStatusQT>1</AStatusQT>
    <AStatusQTS>0</AStatusQTS>
    </ACount>
    kindly help me out how to achieve this requirment in the rdf file mulitple xml tags.
    all your input are most valuable to me, thanks in advance
    Edited by: 909577 on Apr 9, 2012 3:10 PM

    I'm sorry for being so dense, but I'm not quite following, although what I've tried makes me think if I can follow you, it will work :)
    To answer your initial questions, you are correct with both your assumptions:
    1) detailType is the parameter that specificies YTD/Weekly, this is a "report defined" parameter that I am using to determine which Row Group to display (either YTD or Weekly)
    2) SchoolDaysActiveWeek is the parameter that is being set to either true or false -- this is a field in the cube that states whether that record is for the current week or not
    So in following your instructions, well that's the problem I'm not quite following :)
    1) When you say Delete the SchoolDaysActiveWeek parameter from the report only, do you mean to mark the parameter as Hidden?  If so, I've done this.
    2) I'm not quite sure where to use the statement you provided me.  You said to put it in the dataset, but I don't know which dataset.  I assume you mean the "main" dataset (as opposed to the hidden dataset that gets generated when you mark a field
    as a parameter).  If this is the case, the only place I could see that would allow you to use such a statement is in the Filter section of the properties.  I tried this, and it did not generate any errors, but it also kept my report groups from displaying
    -- it just showed a blank report, so I think it probably wasn't bringing back any rows to populate them with.
    I also tried going into the Expression section for the SchoolDaysActiveWeek parameter in the second screenshot and placing the statement there.  When I did this and ran the report, I would get the following error:
    The 'SchoolDaysActiveWeek' parameter is missing a value
    So what am I missing!? 
    Also, thanks for taking the time to respond!!

  • Pbm in raising invoice for multiple items

    Hi all,
             i have written vb.net code to raise invoice, when i add multiple items, the invoice gets raised for the total amount but only the last item i added in the matrix(list of items) appears in the A/R invoice What may be the problem
    I have given below my code plz do give suggestions
    Public Sub addtoinv()
            Dim val As Integer
            Dim oInvoice As SAPbobsCOM.Documents
            Dim oLines As SAPbobsCOM.Document_Lines
            Dim i As Integer
            Try
                Dim rset As SAPbobsCOM.Recordset
                rset = ocompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
                rset.DoQuery("SELECT T0.[SuppSerial], T0.[IntrSerial], T0.[SysSerial] FROM OSRI T0 WHERE T0.[ItemCode]  = '" & itemcode & "' and  T0.[Status]  = 0")
                rset.MoveFirst()
                For i = 0 To xx - 1
                    oInvoice = ocompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices)
                    oInvoice.DocType = SAPbobsCOM.BoDocumentTypes.dDocument_Items
                    oInvoice.CardCode = bpname
                    oInvoice.Lines.AccountCode = "400000"
                    oInvoice.Lines.Quantity = xx
                    Dim suppser As String = rset.Fields.Item("SuppSerial").Value
                    Dim intrser As String = rset.Fields.Item("IntrSerial").Value
                    Dim sysserial As String = rset.Fields.Item("SysSerial").Value
                    oInvoice.Lines.SerialNumbers.ManufacturerSerialNumber = suppser
                    oInvoice.Lines.SerialNumbers.InternalSerialNumber = intrser
                    oInvoice.Lines.SerialNumbers.SystemSerialNumber = sysserial
                    oInvoice.Lines.SerialNumbers.SetCurrentLine(i)
                    oInvoice.Lines.SerialNumbers.Add()
                   If strtax = "ST.12.36" Then
                        oInvoice.Lines.TaxCode = "ST.12.36"
                    End If
                    If strtax = "VAT@4" Then
                        oInvoice.Lines.TaxCode = "VAT@4"
                    End If
                    If strtax = "Service" Then
                        oInvoice.Lines.TaxCode = "Service"
                    End If
                    If strtax = "CST@4" Then
                        oInvoice.Lines.TaxCode = "CST@4"
                    End If
                    If strtax = "[email protected]" Then
                        oInvoice.Lines.TaxCode = "[email protected]"
                    End If
                    val = oInvoice.Add()
                    rset.MoveNext()
                    If val = 0 Then
                        oapp.MessageBox("Sucess")
                    Else
                        oapp.MessageBox("Error: " & ocompany.GetLastErrorDescription)
                    End If
                Next i
            Catch ex As Exception
                oapp.MessageBox(ex.Message)
            End Try
        End Sub

    Hi Issac,
    Did you forgot to call oInvoice.Lines.Add() in the loop?
    If you want to add n items in a single invoice, you have to call oInvoice.Lines.Add() (n-1) times.
    Here is some sample code for your reference.
    Dim oOrderDoc as SAPbobsCOM.Documents
    oOrderDoc = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oOrders)
    ' set the business partner code
    oOrderDoc.CardCode = "C60005"
    ' set the documents due date - mandatory
    oOrderDoc.DocDueDate = Date
    ' First line  (no need to add line)
    oOrderDoc.Lines.ItemCode = "A00001"
    oOrderDoc.Lines.Quantity = 1
    ' Second line
    ' first add empty line for the second line
    oOrderDoc.Lines.Add
    oOrderDoc.Lines.ItemCode = "A00002"
    oOrderDoc.Lines.Quantity = 1
    ' Adding the new order document
    Dim RetVal As Long
    ' Add Method
    RetVal = oOrderDoc.Add
    ' Check if Add method succeeded
    If RetVal <> 0 Then
       oCompany.GetLastError lErrCode, ErrMsg
       MsgBox lErrCode & " " & sErrMsg
    End If
    Regards,
    Jay.

  • Multiple Item Codes in a MRP Generated PR

    Dear Sir,
    We have a requirement to have "Multiple Item Codes" in a single PR . The PR are generated thru MRP . The criterion  to have multiple Items in a single PR is that a PR will contain multiple Items codes pertaining to the same Material-Group .
    We have come to know that for this MD15 tcode can be used . But the problem with this is that there is manual effort required for clubbing of multiple Items in a single PR from the planned order .
    We look forward for some automatic way for handling the above requirement .
    Request you to kindly help me on the above issue please .
    Regrds
    B Mittal

    If you are getting Currency key from file then before passing data to BAPI, Check the value of Currency key, if it is not USD then display error message.

Maybe you are looking for