Add rows in app on click of button

HI
I am new to Apex and PL/SQL. I am developing an application in which i need following things to be done.....I have created a FORM(not a report) in which there are fields ,
'F1' a select list,'F2' a display only field,'F3' Number field,'F4'  Display Only…. arranged in one row.Also there is a Button 'Add Item'.
Procedure:
When user selects item from the select list i.e. field F1...its quantity is displayed in field F2(a spec. Number)...after that user must enter a number in field F3 which should be less than number in F2....as soon as user enters number in F3 there should happen a calculation (No. form F2 - No. from F3) and the result should autopopulate in field F4........after that when user clicks on 'Add Item' button..a row containing fields F1,F2,F3,F4 should be added just below the 1st row.
1. For the calculation part, where shall I write the code? do i need to create a validation or a dynamic action......
2.Please help me with the 'Add Item' button ...I really dont have any idea how a row will be inserted when i click on the button
any suggestion/logic/sample code/link to existing example are welcome...
THANKS

Thanks vincent....i now have a Form called 'Form on table/view' but i am stuck here
Ill explain the problem in detail to you
On the above form i have following fields,
Product_name(link),Total_ordered_qty  now these fields are displayed here from table Product_list
Step 1:
when user clicks on product_name, user navigated to a page where there are following fields
Item name(auto populate from product_name),ordered qty(auto populate from total_order_qty),Inspection_qty(user i/p),Remaining_qty
Step 2:
when user gives some number as 'Inspection qty' a java script calculates (Total_order_qty - Inspection_qty) and auto populates 'Remaning_qty' field and will click 'Proceed' button
Now,
I want that, on click of Proceed button a record created in Step 2 should be inserted into some table so that i can keep the track of updated record. Also if Total_order = 500  and Inspection_qty = 200 then Remaining_qty = 300 this value should get updated in Product_list table. i.e. if user logs in for the 2nd time he will see Ordered_qty = 300 in Step 1.
Now this updated record..i want to show this under a Tracking tab so that user can see his activities.
Do i need to write a trigger to insert a record? if yes then where to write it? or there is any other way?
Also how am i going to calculate and display the updated values from step 2 in step 1?
any suggestion/logic/sample code/link to existing example are welcome...
THANKS

Similar Messages

  • Xcode question. Need to open an app from clicking a button! Please help!!!!

    Hello, I am new to this forum so sorry if this is in the wrong spot. I'm trying to make a simple Xcode app, so that when people click a button, it will open another app, such as an AppleScript, which will run a code in Terminal. So for instance, click "Make my Mac speak" Then it would open the AppleScript and Terminal would pop open and run the code " say Hello, my name is Macintosh". Thats just an example of what I'm trying to do. Please can someone help me. I don't need help with the AppleScript part, just getting Xcode to open the AppleScript. Thank you!

    You want the Mac OS X Technologies Software Development 101 forum
    <http://discussions.apple.com/forum.jspa?forumID=728>
    Or Mac OS X Technologies Developer forum
    <http://discussions.apple.com/forum.jspa?forumID=727>

  • Update Row in report on click of button of particular row

    Hi
    Using Apex 4.0.
    I have a requirement like there is a report which displays data on search. I have created a report with sql query. And it works correctly.
    In report columns, there is one column which is having select list (static), and user should able to select value from list and update that particular row.
    I have added one button and called javascript function to update value with AJAX code. However it is not returing select list value to update.
    Is there any other way to implement such requirment or please suggest where i am wrong? Please advice.
    Thanks

    Hi,
    Now page 900 works.
    I did set link URL target to
    javascript:void(0)link attributes
    onclick="update_queue_status(this,'#EMPNO#')"javascript
    <script type="text/javascript">
    function update_queue_status(pThis,pEmpno){
    var j=$(pThis).parents('tr:eq(0)').find('[name="f01"]').val();
    var ajaxRequest=new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=AP_UPD_STAT',&APP_PAGE_ID.);
    ajaxRequest.addParam('x01',j);
    ajaxRequest.addParam('x02',pEmpno);
    var ajaxResult=ajaxRequest.get();
    //alert(ajaxResult);
    </script>I did also create developer user HELPER to your workspace
    Regards,
    Jari

  • Add Row in Matrix by pressing "Alt" button in last cell of matrix

    Hello All,
    I want to enable the rows of the matrix by pressing "Alt" in the last column so that the next row get enabled instead of
    pressing the "Add Line" Button every time.
    I have done it by pressing "Tab" using pval.charpressed="9"
    But i want to do it by pressing "Alt" key is this posible.
    Please share the code or suggest any way to do it .
    Thanks & Regards,
    Amit

    Hi Amit,
    Only Tab, Enter, Escape, Delete and Back Space are available to charpressed. Alt button has no equivalent coding.
    Thanks,
    Gordon

  • Field values erases when Add Row button is pressed in Master Detail Form

    Hi,
    I am using APEX 4.0. There is a master-detail form in a page, this has 5 rows in it by default, has a Add row and a Delete button. I face two problems now:
    1. When the values are entered in all the 5 rows, that are in default, and Add Row button is clicked, these values are entered in the DB, but they are erased from the interface. Means when user clicks Add row he don't see the old values he has entered. All new empty rows are only seen. This might confuse the user. How can I resolve this.
    2. The values are saved to the DB only when the Add row button is clicked, so suppose if the user enters some wrong values in the default rows and after he clicks Delete button, all the field values are erased. Is there a way to delete only that particular row? (Please note: the values are not saved to the DB, unless the Add Row button is clicked)
    Please let me know how to resolve these 2 issues.
    Thanks.

    So let me get this straight:
    You enter information into a tabular form and then click the add row and the data is being duplicated from the prior row or being inserted into the table ?
    Thank you,
    Tony Miller
    Webster, TX
    A lady came up to me on the street, pointed at my suede jacket and said "Do you know a cow was murdered to make that jacket?"
    "I didn't know there were any witnesses", I replied " Now I'll have to kill you too"

  • Add row by right click event

    hello expert
    i want to create add row functionality by right click event like in SAP B1 when we click on matrix colum it give menu for Remove,copy,add row in matrix how i do it by in my userdefiend form matrix

    Hello,
    If you enable the menu on your form Add row (menu id: 1292), Del Row  (menu id: 1293 )it will automatically appear in right click .
    copy should be added indivudally, and developed the functionality for each
    enable them:
    oForm.EnableMenu("1292", True)
                oForm.EnableMenu("1293", True)
    You can use MenuEvent to add/del/copy rows in the matrix or RightClickEvent
    Regards,
    J.

  • Re: Add Row in Matrix

    Hi All,
    I want to add a row in matrix by clicking the Add Row option by right clicking on the matrix. If the form has one matrix means its working well. But if the form has more than one matrix if i activate the Add Row menu and write the code in the MenuEvent i am not able to give the ItemUID so if i add row in any of the matrix one row is added in all the matrix. How can i solve the problem.
    Thanks in Advance.
    Regards,
    Madhavi.

    Hi Madhavi,
    save the position and and the itemuid in a variable.
    use the et_GOT_FOCUS event for this - than you know always in which matrix
    and position you're standing.
    use the variables in the et_MENU_EVENT to add the row in correct matrix and position
    lg David

  • How do I create an "Add Row" button (add instance with click activity)

    I've been looking through a couple of examples, but the xml is lost on me. I need to learn how to do this for myself because it'd help me out on so many forms. There're forms I just simply cannot do without this function.
    Where I get lost is the javascript linking the button to the specific table. I've been trying to use this I found in an example:
    <event activity="click"><
    script contentType="application/x-javascript">SAPS350a.Page1.TableData1.Table1.Row2.instanceManager.addInstance(1);</script></
    event>
    Now, I'm a complete newbie, so I'm sure someone can point out to me exactly what's wrong, but I dont know what "SAPS350a" means nor can I figure out where the label "TableData1" connects to.
    If anyone can explain this in a "add rows for dummies" fashion, I'd be greatly appreciative.
    See attached an example of one of the fields I need to repeat.

    Hi Liz. You shouldn't really be playing in the xml. Especially if you are a newbie . You could corrupt the whole form if you do something wrong and you probably wont be able to rectify it. Scripts must be added in the script window. In your post, the 'SAPS350a.Page1...' is the path to the row of the particular form that you copied that code from. I have added a button to your form. have a look at the script to see what i have done.

  • Issue with empty value of LOV of first row after clicking on add row button

    JDeveloper 11.1.14
    I have a page with table-form layout.
    In the form I have two detail tables on the same page (tabbed).
    I have an issue with using model-choicelist LOV's in the detail tables.
    I am able to add a new row in the detail table, select a value from the model-choiceList LOV (which is required) and save the new row.
    After adding another row in this table the value of the model-choiceList LOV in the previous row is suddenly empty on the screen. It is not empty in the database,
    I have checked it in the datbase. Only the value of the LOV of the first row on the page is being cleared after clicking on the add row button.
    After saving the new row I get the following error on the screen:
    Error: a selection is required. --> first row
    Does anyone have a suggestion how to solve this issue?

    After adding another row in this table the value of the model-choiceList LOV in the previous row is suddenly empty on the screen. It is not empty in the database, Is the complete LOV blank or only the selected value .. can you try putting autoSubmit=true in the LOV and try ? Also check if you have any partialTriggers on the LOV from the add button ?

  • Weird Problem with Add Row Button in Master Detail Page

    I have a page that was created with a Master Detail Wizard. When I click the Add Row button on our Production Environment, the row counter increments BUT no blank row shows on the screen.
    In our Development Environment, when I click the Add Row button, a blank row appears as expected. Thinking there was some problem with the production app, I exported the Dev version and imported into Production. Still no blank row.
    Thinking perhaps it had something to do with the data, I copied our production application data back into the development application tables. Still, the development app creates the blank row where the production version does not.
    I even used the same browser window for both environments and still get the same results. This was working fine in production then just stopped one day.
    The only clue I have is that the Add Row WILL work if the Master Record has no details or less than a page worth. It seems to happen when the detail records are more than one page worth. Also, when I click the Add Row button, it goes to the last page of the list (say three pages of 10, 10, 6) but no blank row shows up. Again, works fine in the development environment no matter how many pages.
    Any ideas or suggestions why this is happening? Could there be some environment setting that is causing this to happen?

    I have a page that was created with a Master Detail Wizard. When I click the Add Row button on our Production Environment, the row counter increments BUT no blank row shows on the screen.
    In our Development Environment, when I click the Add Row button, a blank row appears as expected. Thinking there was some problem with the production app, I exported the Dev version and imported into Production. Still no blank row.
    Thinking perhaps it had something to do with the data, I copied our production application data back into the development application tables. Still, the development app creates the blank row where the production version does not.
    I even used the same browser window for both environments and still get the same results. This was working fine in production then just stopped one day.
    The only clue I have is that the Add Row WILL work if the Master Record has no details or less than a page worth. It seems to happen when the detail records are more than one page worth. Also, when I click the Add Row button, it goes to the last page of the list (say three pages of 10, 10, 6) but no blank row shows up. Again, works fine in the development environment no matter how many pages.
    Any ideas or suggestions why this is happening? Could there be some environment setting that is causing this to happen?

  • Unable to close open apps with double clicking the button and when I tap screen does not respond?

    Cannot not close open apps with double clicking the button Since downloading iOS8.

    What happens when you try? Does double clicking the ?home button bring up the Task Bar of recently used apps? If so what happens when you flick up on the preview screen for the app you want to close?
    To quit an app double click the Home button to reveal the row of recently used apps. Flick up on the page preview and it will fly away and disappear. That quits the app.

  • Add Subform dynamically,on click of Button, in Interactive form generated by Adobe Document Services

    HI,
    I have an XDP file designed by Adobe Designer 7.1 with the following hierarchy of elements:
    -form1(root)
    --Button
    --tmpForm (subform - Repeat subform for each data entry )
    ---ST (Text)
    Now, this XDP file generates an Interactive PDF form with Reader Rights enabled by the Adobe Document Services.
    On click of button, the following javascript is executed on client side:
    var df = _tmpForm.addInstance(1);
    df.ST.rawValue = "HI" ;
    xfa.host.messageBox( "Instances" + tmpForm.all.length ) ;
    On clicking the button, i get the length of the instances of the subform and the size increases on each click, but no element is added "visibly" to the pdf.
    But when i try to do the same by saving the XDP file as Dynamic PDF form for Acrobat 8.0,and open it using Adobe Acrobat PRO 8.0, it works fine.
    My question is,I s it not possible to add subforms dynamically in PDF's generated by Adobe Document Services with Reader Rights enabled?
    Or, is there something that i am missing?
    Please guide.
    Thanks.
    Regards,
    Siddhartha

    Hi,
    you can't change the behavior of the save button in the browser nor in Reader/Acrobat.
    You can add a custom button within your form which calls a custom script from a folder level script using the browserForDoc method.
    The browseForDoc methos is the only one whcih can change the name in the saveAs dialog.
    Here's an example., you can run from Acrobat console.
    You need to combine it with the solution from the other thread to make it work with your form.
    http://forums.adobe.com/message/2266799#2266799%232266799
    var oRetn = app.browseForDoc({
        bSave: true,
        cFilenameInit: "MyForm.pdf",
        cFSInit: "",
    if (typeof oRetn !== "undefined") {
        this.saveAs({
            cFS: oRetn.cFS,
            cPath: oRetn.cPath,
            bPromptToOverwrite: false

  • How to use add row button of a tabuler form.

    Hi all,
    I have created a Tabuler form in my application.Could you please tell me 'How can i use the add row button of this form' as When i click the button "NOTHING HAPPENS".
    Thanks
    Regards,
    Neha

    Hi,
    If you edit the button, the button name has to be 'ADD'. You can make the text / label whatever you like. On the form edit page, the button should appear with this text next to it: submit as "ADD".
    HTH

  • Add Row Button Not Working

    I've read the threads and done numerous searches.  Not sure why the add row button isn't working, other buttons work.
    Here's what I've found and done.
    Print button subform - positioned (have tried flowed, too) allow page breaks
    Table: body rows vary   -    Insert wrap in subform  - subform flowed - allow page breaks
         row 1 binding - repeat row for each data item - min 1, max 25 (why won't it  keep an initial count when I try putting in 1 or 0?)
    Form properties - preview in dynamic PDF, interactive   -   PDF render format dynamic xml, run in 9.0 or later (to remove errors)
    Insert Row Button in Subform Row 1 Cell 1 (not counting header row) on  click, JavaScript run at client tried table.row1.instancemanager.addinstance(1);   also tried full path
    saved as dynamic pdf
    My hierarchy looks like:
    form1   [autofit]
         master pages
              page 1
                   untitled content area
         printbuttonSubForm  [flowed, top to bottom, allow page breaks]
              untitled subform [flowed, top to bottom, allow page breaks]
                   printbutton1
              tablesf    [flowed, top to bottom, allow page breaks]
                   table1    [allow page breaks]
                        headerRow
                             cell1
                             cell2 etc
                        Row1   [allow page breaks, repeat row for each data item, min 1, max 25 (why won't it  keep an initial count when I try putting in 1 or 0?)]
                             subform   [allow page breaks, repeat row for each data item, min 1, max 25
                                            (why won't it  keep an initial count when I try putting in 1 or 0?)]
                                  button1    table1.row1.subform1.instanceManager.addinstance(1);
                             cell2, etc
         Referenced objects
    Questions:
    I click the Add Row button, but nothing happens, why?  The print button works.
    Found a reference to def instances of same row, what does that mean?
    Is my hierarchy correct?
    How to set Form1 to flow? Object says mixed objects with no options
    Many thanks for your assistance! Leslie

    Hi Leslie,
    There could be a few things.
    First check that the form is saved as Dynamic XML in the save as dialog. If it is saved as Static the add instance will not work.
    Make sure that the object you are targetting is set to repeat in the Object > Binding tab
    Check your syntax in the script editor (button above the editor). Some of your post is not camel case. For example addInstance and instanceManager. Note the capital letter for the second word.
    If you could share your form it would be easier to track down what the problem is. You can use Acrobat.com or YouSendIt.com or some other file sharing site. Just remember to post the published URL.
    Good luck,
    Niall

  • Problem in add row button in apex3.2

    Hi All,
    I have a requirement in tabular form in apex3.2 in which when i click the add row button the add row function is working and 1 row is loaded. again when i click the add row button it should load multiple rows according to my number of click. This condition is working in apex 4.1 but not in 3.2.
    With Regards
    Wildfire;;;

    apex 3.2 is different to 4.1, because in 4.1 it adds the rows on the fly without submitting the page.
    But in 3.2 it submits the page and adds the new row, when submitting the page it adds any newly entered row into database and adds a blank row.
    But in your scenario you are adding a blank row and not populating the values and clicking the add row to get another blank row, Which will try to post the existing blank row into database and adds new row(so you loose the first blank row)
    I guess there was an option in (button or process) 3.2 to specify the number of blank rows you want.
    Thanks

Maybe you are looking for

  • Installing trial version of Ps

    hey there, I'm trying to install the trial version on my WinXP and the install freezes at 11%. I want to use Ps to ramp up the photos on my web store but I need to make sure it will do what I need it to before I drop $400 on the sofware. Are there an

  • Properly numbered tracks still play out of order

    Here's a strange one: iTunes has stopped playing songs on albums in their proper order. This, despite the fact that I did a "Get Info" on the tracks and determined that they all have the proper "X of Y" numbering sequence, and that the album name is

  • Error in invoking target 'mkldflags ntcontab.o....

    OEL 5.1 Oracle Grid 11gR2 RAC install Hi, I'm trying to install grid 11gR2 RAC, everything checks fine all prereqs are met, kick of install and at 42% it errors out : Exception String: Error in invoking target 'mkldflags ntcontab.o nnfgt.o' of makefi

  • Alter express code to include views and unions for top dim items

    If a user selects a dimension item at the top most level, the explain plan shows that it does a full table scan of the fact table instead of using the materialized views. If we add the highlighted information(see below) to the osa generated sql, then

  • Need Help  Taking Database Backup

    Hello every body, We developed one web based project for that we are using oracle 10g as back -end.I created saparated database for my project. Could u plz help me how to take my database back up from oracle 10g.If u have any resource for this plz fo