One save button, multiple regions question

Hi. I have a question dealing with multiple regions in APEX 2.2. I would like to have a page with two regions. The top displays account transactions for the current period. Due to the nature of the application, there are a fixed number of transactions per period and all fit in one page.
The bottom regions displays the ROI value for the current period. It pulls from a table that has exactly one row per period. The period is always the same for the top and bottom region.
The current generation of the page shows the account transactions. The region was generated using the wizard and has a type of "SQL Query (updateable report)." As it, it works nicely.
When we added the new region for the ROI, we used the wizard, too. The ROI region has the same type ("SQL Query (updateable report)." We have just one SAVE button on the page and it does the submit.
The problem is that when we save, we get an error:
Error in mru internal routine: ORA-20001: Error in MRU: row= 1, ORA-20001: ORA-20001: Current version of data in database has changed since user initiated update process.
If we delete the bottom region then we don't get this error.
The fields that it shows are always from the top region, even if we're only updating the ROI. From what I understand, APEX thinks that the cached values have been updated in the database. Since we're testing on a dedicated box, I know that no one else is making updates. I've also seen this error when we've accidentally rearranged the order of the fields in the report query. I think that's not the case here since deleting the new region makes the page work as expected.
My question is how can we get the two regions to work together on the same page?
Thanks
Mike

Hi,
When working with report regions only one could be updateable report. You need to delete the region that's not updatable and recreate it as an non-updateable report.
If need to update another table use a process (PLSQL) called when your save button is pressed.
Hope could help you.

Similar Messages

  • Execute two functions from one Save button

    Hi,
    I am using JDeveloper 10.1.3.0.4 and JHeadstart 10.1.3.0.91.
    Can anybody help me for the following:
    In one editable jspx page I have a save button.
    I want to do the following:
    If I click the Save button, it will save the record and also it will call another stored procedure. I know how to call a stored procedure by clicking a button. But I want to do it from a save button after saving.
    I want my save button will do two things - 1) save the record, 2) call the stored procedure.
    I would appreciate if anybody could help me.
    Thanks
    Syed Jabbar
    University of Windsor
    Windsor, ON, Canada

    It would have been nice if JSF framework would have allowed us to chain the actionListner or specify multiple actionListner, but as of now, that not possible.
    Another option would be to bind the save button to call an AM method.
    By default the save button's ActionListener is bound to the Commit operation.
    - You can create a custom method in your AMImpl.java say void myMethod()
    Which basically first does a commit and then make a pl/sql call.
    - Expose it to the clients via Edit Application module dialog box.
    - Add a method bindings in your PageDef pointing to this.
    - Set the actionListener of you button pointing to this new method binding.
    it will be something like '#{bindings.myMethod.execute}'
    regards - rutwik

  • One save for multiple portlets in a page.

    Hi,
    I have 3 portlets in 1 page. All the portlets are having individual "Save" button to save some information in individual portlets. I need to create a new "Save" button which does the work of all these 3 Save buttons in one shot. Basically my new "Save" button should be able to save the information of all the 3 different portlets at once!Can we do this? If yes then how ?Need it urgently!
    Thanks in advance,
    Adi...

    If you are still looking for the solution....
    I think this can be done by declaring same named action in all three pageflows. And write code individually as to do the logic for each portlet respectively in their pageflows. The most important and third step is making portlet2 and portlet3 listen to portlet1. (This can be done by double-clicking portlet and entering the instance label of portlet1 in listenTo field. This has to be done for both portlet2 and portlet3.) This will make the control to execute the action in portlet1, portlet2 and portlet3 in that order whenever any of the save buttons is invoked.
    --SJ.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Multiple Form Regions with a single Save button

    Hello,
    Is it possible to have multiple form regions on a single page, with a single Save button that commits changes in all form regions? If so, would the forms have to be manual forms?
    If that is not possible, or a bad way to go with APEX, what are my alternatives?
    I am trying to avoid the user having to click through many screens to input the data. Logically each section should be in a different table, but I would like to group some of the sections together to reduce the number of pages the users need to navigate to.
    Thanks in advance for your help,
    Johnnie
    Edited by: johnniebillings on Jun 1, 2009 9:33 PM

    Hi Johnnie,
    I assume that the tables are related somehow?
    If so, you can create a SQL View on the joined tables (making sure that you have a unique ID for each record in the view that can act as the Primary Key), base the form on that view and then use an INSTEAD OF trigger on the view to populate the individual tables.
    Andy

  • How to save multiple tables on one single save button in JDeveloper.

    hi all,
    i have two tables on a JSF page.
    the parent and child tables has 1 to many relationship.
    its like for department id i have many employee_id's.
    in my scenario ,
    i have to give values to both parent and child tables at a time on one single click on add button. and after clicking on one single save button i should be able to commit the data into database for both the tables at a time.
    its similar like a hire a person in fusion applications , when you clinked on hire person. all the related tables populated to give data and on one single save committing data to database.
    please help in this. and its my urgent requirement for my application design.
    am beginner to the J Developer Tool and ADF.
    regards,
    M vijayalakshmi.

    I assume you are using ADF BC as your business components. Now if both your Master and Chail VO are instances of the same AM, the commit operation of the AM will take care of it. You just have to drag and drop the commit operation as a Save button in your page

  • How do I create multiple TEBs with one submit button on one page in Captivate 7

    I've read other posts on this topic (which refer primarily to earlier versions of Captivate) and am still at a loss as to how to put multiple text entry boxes on a page with one submit button. Here's my scenario:
    I am creating test questions.
    Each test question has multiple text entry boxes (for numbers only).
    Student should be able to enter numbers into the textboxes in any order.
    Then there is one Submit button that should initiate validating all the text entries, and move to a scoring page (so I can test it). (What would be best is if this button not only did the above, but also submitted scores to the LMS.  But that is not my question at this time.)
    I'd like this question to be set up as a template so that I can duplicate it, be able to add or delete text boxes and change the values required in the text boxes.  
    Here is an image of a sample question page with multiple TEBs. The yellow boxes tell the student where they need to enter text:
    Any help or direction to help is appreciated!!

    I think the problem here is that Arlhoolie wants all of the different TEBs to behave as if they were part of a single interaction that submits only ONE result to the quiz.  Using multiple TEBs in Captivate means that you have multiple scored objects and therefore multiple results being submitted to the quiz.
    If you want a single Success or Failure result submitted to the quiz based on the results from multiple interactive objects then there really is no simple way to do it.  But you could try using the Infosemantics Interactive Master widget to combine all the TEBs as slave objects that report to the Master Widget, which then reports a single score to the quiz based on the results from the slave objects.
    You can learn more about the Master widget here:
    http://www.infosemantics.com.au/adobe-captivate-widgets/interactive-master
    http://www.infosemantics.com.au/interactivemaster/help
    You can download a free trial version of the widget here:
    http://www.infosemantics.com.au/adobe-captivate-widgets/download-free-trial-widgets
    One caveat you should be aware of is that this widget is not HTML5 compatible.

  • How to edit multiple regions in one Piano Roll window

    I edit multiple regions in one Piano Roll window at the same time. (It is very handy way of editing especially in huge orchestra projects.)
    I can see midi contents of all selected regions in Piano Roll at the same time.
    1) But how to choose certain one region of many selected to edit it?
    2) And how to edit all at once?
    Hope the questions are clear enough.
    Thanks.
    Dmitriy.
    iMac (27-inch, Mid 2011) 2,7 GHz Intel Core i5. 16 GB 1333 MHz DDR3.
    OS X 10.10.2

    First of all, the Piano Roll has two mechansim, of what it is displaying.
    Selected Track: This displays all the Regions that you select in the Tracks Window
    One Track: Selecting one Region in the Track Area displays all the Regions of tha tTrack in the Piano Roll. If you select multiple Regions in the Tracks Window, then the last selected Regions counts.
    Whatever Regions are now displayed in the Piano Roll Editor can be edited. Select the MIDI Events and apply the command.
    You can also apply edits directly to the selected Regions in the Tracks Window.
    I explain all those little details in my graphically enhanced manuals ("Logic Pro X - How it Works")
    One thing to be clear about:
    Tracks Window: Any edit is applied to the selected Regions
    Piano Roll Editor: Ay edit is applied to the selected Events
    Hope that helps
    Edgar Rothermich
    http://DingDingMusic.com/Manuals/
    'I may receive some form of compensation, financial or otherwise, from my recommendation or link.'

  • Save button is not working for ONE CLICK ACTION

    Hi All,
    We have embeded a custom table view in a standard component.While we are editing the first row of the table view by ONE CLICK ACTION & pressing the SAVE button of overview page,then the record is saved in the database. But if we edit any row other than the 1st one,the save button is not working.
    We have used transaction context here for simple object.
    lv_tx_ctxt = lr_ent_bt->get_transaction( ).
    my_tx_context->add_tx_context( lv_tx_ctxt ).
    Please suggest how we can focus on the current line which we are editing & can save the record in database?
    Thanks.

    Hi Hakan,
    Probabaly this is not my problem. I know that how bt one click we can get the desired row.
    Let me briefly explain you my requirement and currently where I am stuck.
    I have a assignment block ( custom) in the main overview page with a custom table view ( ie in the view we are displayng entries in the table view ) and the user can press edit button on any row and that will open the particular row in edit mode . User will change the value in any of the columns and press save button on the main component and the custom changes will be saved in the database.
    Now the problem that we are facing is when we are chnaging the first row it si working but when we are doing chnages in the 2nd row or 3rd row changes are not saved ( not even in the table view that is getting displayed) .
    *Let me briefly tell you the approach that we took  . Since our table view uses a simple object  ( which is not a related object with BTORDER so we need to explicitly save the simple object entities to transaction context and for doing that we have redefined the eh_onsave method in the overview page) .
    *Now the save button is in overview page so to pass the entry from our custom table view to overview we are using custom controller . The custom controller 's collection wrapper only has the first entry of the table view custom_controller->collection_wrapper->get_next is failing which is the reason why the 2nd entry is not getting saved.
    Can you tell me how i can get all the table entries in my custom controller's collection wrapper?
    Let me know if you have any other questions.

  • Can we have one submit button for mutliple report regions querying same tbl

    Hello,
    I have a normal multiple report regions in a page with some editable in those regions, these report regions are querying the same table. Now, Is it possible to have one submit button for all the report regions to update the underlying table data?
    Can anyone please help me out with this one.
    thanks,
    Orton

    First you'll almost certainly need to roll your own - the built-in stuff is fairly basic and more than likely won't help.
    It sounds like your process flow should be something like:
    1) Person clicks button.
    2) You do a select for update in the process to get the loan id and put it in the person's queue. At this point you may want to flag that column as having been assigned so it can't be assigned again.
    3) You then forward them to the form to enter data. Personally I would create my own items and processses and forgo the built-in form stuff but you may be able to use the Automated Row Fetch. If you do your own, you just reference the objects like:
    insert into table
    values(:P1_1, :P1_2, :P1_3)Edit - Another way would be to use a regular form and insert Stop/Start Tables - so it can look like a different section, but it really is just a label. Thats another option.

  • Basic save button question

    Hi
    I am new to apex and im try to figure out how a save button works.
    it is on a page where employee details can be updated and if you enter a leave date and click save an email is sent.
    The save button is in the buttons area of the page definition - :) not suprisingly
    there is a send leaver notification in the processes
    but i cant find the code that triggers the process within the button.
    Probably a basic question
    thanlks in advance.

    as the button is called SUBMIT does this then create the link?Not really.
    The button name alone isn't what determines that it has the ability to kick off a process (although if you created it with a wizard in Apex it might have defaulted or suggested that name to you).
    You can call the button "Jabberwocky" or "Gobbledygook" if you want and it still will perform a submit action of some kind if it does not call a URL and it does not call a redirect to another page in the app directly in the button definition. If it doesn't do either of those, it will therefore perform a submit action (regardless of the actual button name).
    In summary, a button will do one of three things:
    1. redirect to any URL
    2. redirect to a page in the app (which is really just a special variation of redirecting to a URL)
    3. perform a submit action (this is the default if it does neither #1 nor #2).
    Does that make sense? So if you look at a button and it does not redirect to a URL or page in the app, it therefore must be doing a submit of some kind.
    Then, over in the processes, these will execute if a submit was done and the process is either unconditional or is conditional and the conditions are met. These will fire in the order of the sequence numbers on the processes. These processes are not fired for a URL redirect nor a page app redirect.
    Finally, a branch fires after the processes. A branch isn't quite a redirect but more of a "after i'm done processing what control should I return back to the user?" thing.
    However, only ONE branch at most will fire. Apex will look at them in the order of the sequence numbers and fire the soonest of the unconditional branches or the conditional branches for which the conditions are met. The first one found eligible to fire will fire and the others will be ignored.
    Note that if you have no branches at all or you have conditional branches and the conditions aren't met on any of them:
    1. Before apex v4.0 you will get an error (e.g.: page xxx provided no page to branch to), as it expects to find a branch to fire.
    2. Apex 4.0 and up will implicitly default to branching to the same page so you won't get an error, however you don't have control of the other branch settings either such as whether or not to display the process success message, clear a cache, etc.

  • Select more than one answer on a multiple choice question

    How do you select more than one answer on a multiple choice question on an employment application on the internet?

    marmaldonado,
    Is this a PDF form? Or a web form?
    Clinton

  • Inserting multiple rows on one "Add Button"!

    I have an appliation that tracks family members (address book type app).
    form page that tracks "family relationships"
    (http://apex.oracle.com/pls/otn/f?p=55283:2)
    Page 2/3 are Master Details, where the detail reports are "relationships"
    From page three, if I select "Create" it takes me to the Form page
    (http://apex.oracle.com/pls/otn/f?p=55283:4) where I can create a relationship and hit "create" and the new record is now visible on page 3.
    What I'm trying to do, is create the inverse tie record at the same time. For example.
    If I say
    record 1 is related to record 2 as "value 3"
    I then want to at the same time, create an inverse record:
    record 2 is related to record 1 as "value 4".
    After researching the forum, I put my best effort into creating a button on page 4 called "Add New" (Thanks Andy for the idea!!) and a page process to run when this button is selected.
    There is a PK for the table in questions, that uses a sequence. I'm just learning SQL AND APEX, so I may have totally missed the boat...either way, this errors out on my instance i have on a closed network.
    (Unfortunately, my local firewall is not allowing me to post my SQL for the
    Here's my page process that fails:
    -- Take values from the three page items to create the first row:
    INSERT INTO FAMILY_ASSOC
    (FAMILY_ASSOC_ID, FAMILY_ID_1, FAMILY_ASSOC, FAMILY_ID_2) VALUES (
    FAMILY_ASSOC_SEQ.nextval,
    P4_FAMILY_ID_1,
    P4_FAMILY_ASSOC,
    P4_FAMILY_ID_2)
    -- Now reverse the ID_1 and ID_2 to create the Inverse record
    -- For example if the row input above is "X" is child of "Y"
    -- Need to create record "Y" is parent of "X"
    UNION (
    FAMILY_ASSOC_SEQ.nextval,
    P4_FAMILY_ID_1,
    DECODE(P4_FAMILY_ASSOC,
    '1','1',
    '2','2',
    '3','4',
    '4','3',
    '5','5',
    '6','6',
    '7','8',
    '8','7',
    '9','10',
    '10','9'),
    P4_FAMILY_ID_2)
    I've included some reports on page 4 to show what the table looks like:
    One report shows all the associations for the individual, and replaces the values with lookup values.
    The next report is exactly the same, but without the lookups.
    The last report is the same thing, but shows the inverse relationships for the same individual.
    Appreciate any ideas!!!

    Heck! And there was me trying to keep things simple :D
    In order for the reports to show data before it is written into the actual records, you would need to have a staging table or, at least, store the values on the page in session BEFORE the insert process runs. To do that, you would have to have a two-step process - one to create the temporary data or store the values and the second to actually write the records. The SQL statements that underlie the reports can easily be updated to refer to either the staging table or the session values. Of course, you would have to create at least one additional button on the page - to create/store the data temporarily - this would have to be conditional - and, the existing button would also have to be conditional, so that only one of the two buttons is displayed at any one time.
    Andy

  • Set multiple Region Keys to one Region within Map component?

    Does anyone know if multiple region keys can be tied to one specific region within a Map component?
    Example -
    My data contains the following values that i'd use as Region Keys (these are codes in my table that stand for cities within Taiwan):
         1) TW/FJN
         2) TW/KSH
         3) TW/TWN
    On the China Map Component I can set a Region Key for Taiwan.  But is there a way to be able to set all 3 of the above listed values for a Taiwan Region key?  Or am I only allowed to enter 1 value?
    Here is a photo to help show what i'm talking about:
    [http://img195.imageshack.us/img195/8508/gdsagdsasd.jpg]

    Does anyone know if multiple region keys can be tied to one specific region within a Map component?
    Example -
    My data contains the following values that i'd use as Region Keys (these are codes in my table that stand for cities within Taiwan):
         1) TW/FJN
         2) TW/KSH
         3) TW/TWN
    On the China Map Component I can set a Region Key for Taiwan.  But is there a way to be able to set all 3 of the above listed values for a Taiwan Region key?  Or am I only allowed to enter 1 value?
    Here is a photo to help show what i'm talking about:
    [http://img195.imageshack.us/img195/8508/gdsagdsasd.jpg]

  • Multiple Forms w/ One Submit Button

    Hello,
    I'm trying to create something for a little league team. I
    have a MySQL database with 2 columns, i.e. Name/Age.
    I currently have 9 forms on one page, with one submit button.
    Name - (Text Field)
    Age - (Text Field)
    Name - (Text Field)
    Age - (Text Field)
    etc.
    I only want one submit button to submit all the forms into
    the name/age columns of my database instead of having to include a
    different button next to each form. But, so far, when I try,
    instead of inserting all 9 forms with the one submit button, only
    the first form gets inserted into the name/age columns of my
    database. I'd greatly appreciate any help. I have no idea what to
    do.

    quote:
    Originally posted by:
    bregent
    That will never work. Use 1 form and then either write a
    script
    Thanks for the help bregent. You mean like a PHP script or
    something?
    quote:
    Originally posted by:
    bregent
    use a stored procedure to loop through the fields and insert
    them into the db.
    I know wayyyy to little about web design to understand what
    that means.
    Thanks,
    Jennifer

  • How can you remove the Save button on a survey?

    What options are there to remove the SAVE button from a SharePoint survey?
    I need to remove this if possible, I was hoping it would be as simple as editing a form in the Survey list... but that is apparently not the case.
    I need to supress the SAVE button as it confuses end users and we don't want any half completed surveys. Either it gets finished or not at all.
    Can someone hopefully provide me with an nice simple solution?  Or any solution at all :)
    Thanks!

    Hi,
    Save button on the surveys with multiple question or with branching logic enabled is an out of the box feature and it is by design.
    If you want to remove the “save” button in a survey, I think you can use JavaScript to hide this button:
    1. Open your site in SharePoint Designer.
    2. Open your survey list newform.aspx page, in the code view, find this code “<asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server"> <table>……. </table> “add the JavaScript” </asp:Content>”, add JavaScript before the “</asp:Content>” tag:
    <script>
    var x=document.getElementsByTagName("input");
    for (var i=0;i<x.length;i++)
    if (x.item(i).type=="button"&&x.item(i).value=="Save")
    {x.item(i).style.display = "none"};
    </script>
    After this, you will not see the “Save” button when create new survey response. You can also add this JavaScript in the editform.aspx page.
    Hope it can help you.
    Xue-Mei Chang

Maybe you are looking for

  • Cannot EMBED PDF into Office

    When trying to EMBED a pdf into Office 2010 (Powerpoint, excel, word, etc), i get an error that Acrobat.exe cannot be found. We have Adobe Reader X and Adobe Writer X installed. When I open Adobe Reader X and try to EMBED the pdf, it works fine, but

  • Export button and Internet Explorer

    Hi, I am using the export button to export table data into .csv file. The file, when viewed via notepad looks like this: "Allen, G,""5258"",""31"",""MSI US"",""Printer ASIC"",""1"","""","""","""","""",""""," Since there is a " at the start of the lin

  • Display .XLS file in Browser

    Hi All, I am trying to display the .XLS file from a JSP page. by just using a PopUp using Java Script. But is just displaying some junch data (which may be binary) Can some one help me out to resolve this. Thanks Shravan

  • Connecting a DVD player

    What are the connections for a DVD player to the cable box?  My video out is used to the TV, what's left is the Y Pb Pr plugs.  Can the DVD player be connected to the cable box or do I have to go directly to the TV?

  • Whether Non leading ledger will have copy of Leading ledger transactions?

    Hi, I have basic understanding about leading and non leading ledgers. My question to the forum is whether non leading ledger will have copy of leading ledger transactions meaning whether entries posted from other modules like SD,MM,PP will be availab