Updatation of rows and refresh a field after it

Hi All,
I have a table called VHEADER in which i have a field called 'Total_amount' which is in MASTER BLOCK
I have another table called 'VDETAILS' in which i have a field called 'amounts' ..
now when user enters multiple amounts and in INSERT state the Total amounts can be refreshed . my problem is that when user queries the data and change the amounts in detail block I am calling a procedure to update the total amount in master table but it doesnt refreshes the total amount in the field of master block.
If i issue :VMASTER.TOTALAMOUNT := VDETAILS.CALC_AMOUNTS (its a summary field) it says RECORD HAS BEEN MODIFIED BY SOME OTHER USER ..SO REQUREY IT TO SEE THE CHANGES....
how I can update that master block field accordingly after UPDATE STATEMENT on PRE-UPREDATE.
thanks

Where is this procedure located? If it is in the database, then Forms does not know what the new total amount is. That is why it is telling you to requery the table. If you had used a program unit to update the total amount in the VHEADER master block, then this message should not appear.
After calling the database procedure, do this:
go_block('VHEADER');
execute_query;

Similar Messages

  • Problem in updating bseg-zuonr and bseg-sgtxt fields.

    Hi guys,
    I have a requirement to update    ZUONR  and  SGTXT   fields in  BSEG , BSAS, BSIS, BSAK, BSIK, BSAD, and BSID tables .  Is there any FM or BAPI to achieve this functionality as i dont want to use UPDATE statement. anybody please help me out.
    Thanks in Advance
    Regards
    satish

    Perform some search at scn on transactions FB02 and FB09 (BDC solution) or FM FI_ITEMS_MASS_CHANGE (BDC generator actually)
    Regards,
    Raymond

  • Delete row from report and refresh region

    Hi
    Using apex 4.0
    I have a requirment like on one page there are two regions.
    There are two text boxes and insert button, by setting value into text box and pressing insert button data is saved in one table.
    And second region is for report which is selecting data which was inserted in first region. It is working correctly. Now in report region,
    there should be delete link/button to delete particular row and refresh that region.
    I have created delete link in second region and called java script function to delete from table. However that region is not refreshed and showing
    old data.
    I have tried with dynamic action to refresh region. But i am not getting sequence it is treating, first java script function will be called and then
    dynamic action will be executed or what? Because dynamic action is not refreshing region.
    Please let me know correct way to implement this requirement or correct me in my steps.
    Thanks in advance

    hi om,
    I had a similar issue.
    I am using a sql query to delete.
    "delete from dbo.[@XX_TDL1] " & _
                "where LineId = " & CStr(rownum) & " and code = '" & pAddonVars.TDHCode & "'"
    It's not pretty but it works.
    jw

  • After iOS5 update apps blink and don't open and music content is gone and won't sync onto iPod

    After iOS5 update apps blink and don't open after trying to select them, and the music content was completely gone! Help!

    See the following:
    I updated my ipad 2 to ios5 and now apps won't open they just blink.  What should i do?
    Just updated iphone4 to ios5, now apps won't open, they blink once but won't run
    When you look at the storage usage of the iPod in iTunes (the colored bargraph) , how much is in the "other" category? If very large yu will have to restore you riPod to get it down to is normal less than about 1/2 GB.

  • Add dynamic buttons to each report row and bind the row data to buttons specific to that row

    I have a page with a form at the top and a report at the bottom which is tied to a table. I need to add a pair of buttons for each row of the table and add dynamic actions for these buttons. I need to submit the data corresponding to the row to a REST service and refresh the table/row. I know it is possible to add ajax call and refresh the table after the response is received. But I am not sure how I can dynamically include a pair of buttons on each row and have the access the data corresponding to the record when a particular button is clicked. I was not able to find such a feature using the help page. Can you please let me know if this is possible. Thanks in advance.
    Below is the representation of how I need the page to look like.
    Col 1
    Col 2
    Col 3
    data 1
    data 21
    data 31
    Button 1
    Button 2
    data 2
    data 22
    data 32
    Button 1
    Button 2
    data 3
    data 23
    data 33
    Button 1
    Button 2
    data 4
    data 24
    data 34
    Button 1
    Button 2
    I should be able to access data 1, data21, data 31 from button 11 and button21 etc.

    select data1,
              data2,
              data3,
              null button1,
              null button2,
              rowid r_id
    from .....
    If you edit the column for button1 and navigate to the Column Formatting region you can create your button here, several different ways.  You will need to play around with how you prefer.  See below:
    <input class="button1" type="button" id="#R_ID#" value="label for the button" /> or <button id="#R_ID#">label for button</button> or you could use <a> and apply css of your theme.
    You also create both buttons in a single column.  From here you can reference any of the columns from your select by using the #COLUNMNAME# format (as I did with R_ID).
    You will next need to something similar for all columns you want to be able to grab when you click the buttons.  See below:
    --- This would be for data1 column
    <span id="D1-#R_ID#">#DATA1#</span>
    You would do these for each column that you want access to when button clicked as mentioned above.  You could bypass this step and use jquery to traverse the DOM using .closest() and .find() and give each column a distinct class.  Is is your preference.
    You would then create a dynamic action triggered when .button1 is clicked.  Now that you have that object you can get the id of the triggering object which would be your r_id and from there you can access all your individual data points(all this done in a javascript in the dynamic action) and assign to hidden items on your page.  The next step of that dynamic action you could execute pl/sql and pass those in page items.
    Hope that all makes sense.
    David
    Message was edited by: DLittle
    Just as a bit of clarification:  the r_id column does not have to be rowid, but it does need to be unique for each row return.  You could use your primary key or rownum.  Whatever works for your scenario.

  • I updated my iPod and now my songs won't show?

    I plugged in my iPod and it asked if I wanted to update it and I did. After that none of my songs would appear on my iPod, but itunes showed in the left pane that everything was on it. I read another topic with the same problem and I think I need to update my itunes software..however..it won't update because it says I need XP or Vista...I have 2000. I can't go a day without my iPod what do I do?!?

    That's the kind of solution I'm interested in, Farias. Who does apple think they are to have me update my iPod and THEN tell me AFTER THE FACT that I need to purchase a new $50 OS if I want to continue using. And when they keep asking me if I want to update they need to give me a link with information about the update so that I fully understand what I'm getting, therefore I'll be absolutely certain whether I want to update at all. This is my second iPod so I've spent well over $450 on them with the iPod and the songs I've purchased from iTunes...I don't just have $50 dollars to go and buy XP because they're under a "contract"...I didn't get any kind of newsletter informing me of that. Apple better find a way to fix my problem without me paying a penny otherwise I'll ask for a Zune for christmas.

  • How do I take a datagrid row and put in textInput

    On a search form we have a datagrid that will be populated from a database.  My task is to take the row a user clicks on to populate forms with the data.  Essentially this is taking one row and putting each field into its own textInput control.
    Each of the controls are linked to an XML tag:
    <mx:XML id="dmSearch">
        <data>
            <SearchResults>
                <result>
                </result>
            </SearchResults>
            <SearchCriteria>
            </SearchCriteria>
            <RecProcess>
                <ADDRESS />
                <AGE />
            </RecProcess>
    So the "ADDRESS" is bound:
                        <mx:FormItem id="dtAddress"
                            label="Address"
                            y="35" x="5"
                            width="275"
                            horizontalAlign="right">
                            <mx:TextInput id="RECPROVIDERADDRESS"
                                text="{dmSearch.RecProcess.RECPROVIDERADDRESS}"
                                change="dmSearch.RecProcess.RECPROVIDERADDRESS=RECPROVIDERADDRESS.text; lcConnector.setDirty();"
                                width="140"
                                maxChars="50"/>
                        </mx:FormItem>
    I want to pull the data from this grid:
                        <mx:Form id="searchResults"
                            horizontalCenter="0">
                            <mx:FormItem id="lblSearchResults"
                                label="Search Results" indicatorGap="0">
                                <mx:DataGrid id="dgSearchResults"
                                    click="dataGridClicked()">
                                    <mx:columns>
                                        <mx:DataGridColumn id="colSODC"
                                            dataField="{dmSearch.SearchResults.SODC}"
                                            headerText="SODC"
                                            headerWordWrap="false" />
                                        <mx:DataGridColumn id="colLastName"
                                            dataField="{dmSearch.SearchResults.LASTNAME}"
                                            headerText="Last Name"
                                            headerWordWrap="false" />
                                        <mx:DataGridColumn id="colFirstName"
                                            dataField="{dmSearch.SearchResults.FIRSTNAME}"
                                            headerText="First Name"
                                            headerWordWrap="false" />
                                        <mx:DataGridColumn id="colMHDDID"
                                            dataField="{dmSearch.SearchResults.MHDDID}"
                                            headerText="MHDDID"
                                            wordWrap="false" />
                                        <mx:DataGridColumn id="colRIN"
                                            dataField="{dmSearch.SearchResults.RIN}"
                                            headerText="RIN"
                                            wordWrap="false" />
                                        <mx:DataGridColumn id="colSSN"
                                            dataField="{dmSearch.SearchResults.SSN}"
                                            headerText="SSN"
                                            wordWrap="false" />
                                    </mx:columns>
                                </mx:DataGrid>
                            </mx:FormItem>
                        </mx:Form>
    The datagrid doc at http://livedocs.adobe.com/flex/3/html/help.html?content=dpcontrols_6.html doesn't seem to cover this at all.

    Hi, Greg.
    Each of the textInput items are bound to an XML item:
                        <mx:FormItem id="gWorkPhone"
                            label="Work Phone"
                            x="5"
                            width="250"
                            horizontalAlign="right">
                            <mx:TextInput id="WORKPHONE"
                                text="{dmResults.WORKPHONE}"
                                change="dmResults.WORKPHONE=WORKPHONE.text; lcConnector.setDirty();"
                                width="115"
                                maxChars="50"/>
                        </mx:FormItem>
    (I changed the name in trying to work this out.  I created two XML items (dmSearch and dmResults) which I assume is OK.)
    The item will either contain (through some magic I don't understand yet) the data from the user selected datagrid or blanks for input of new records.  The grid items are filtered based on the search function (resulting in an error):
                var psrSODC:String = dgSearchResults.selectedItem.colSODC as String;
               if (psrSODC != null && psrSODC.length > 0)
                    XMLRecord = dmResults(SODC == psrSODC);
    There are several of these statements as the user might enter 1 to n criteria.  Is this the way to filter the input grid to one record?  And how does "XMLRecord" know the layout of the file?

  • Find threshold in every matrix row, and some the following elements.

    Hello,
    after an acquisition I have a 3D array whose dimensions are 1x400x10000, in fact it's a 2D array, but labview sees it as a 3D array.
    I need to find the threshold in every row, and sum 1000 elements, after the threshold element, in order to get a 1D array of 400 element.
    (I'm using labview 8.2, in case someone can attach some example).
    Thank you!

    danielevee wrote:
    Hello,
    after an acquisition I have a 3D array whose dimensions are 1x400x10000, in fact it's a 2D array, but labview sees it as a 3D array.
    I need to find the threshold in every row, and sum 1000 elements, after the threshold element, in order to get a 1D array of 400 element.
    (I'm using labview 8.2, in case someone can attach some example).
    Thank you!
    A 1 x 400 x10000 array is a 3D array.  It just so happens that the one particular dimension is only 1 element long.  As Lynn hinted, if you want to turn it into a 2-D array, then you need to use Index Array.

  • How to update multiple rows using cursor.

    hi all,
    i want to update rows fetched by a cursor. it don't update the rows.
    and gives error:
    ORA-01002     fetch out of sequence
    here is the trigger.
    Declare
         alert_id ALERT := Find_Alert('on');
         alert_button NUMBER;
         var number :=10;
         v_al char(3);
         v_al_da date;
         s_date date;
         al_on number;
         to_time number;
         cursor rem is
              select re_about, alarm, alert_date
              from remind
              where alarm='ON' AND alert_date = :control.showdate
              for update;
    begin
         for rem_record IN rem LOOP
              Set_Alert_Property(alert_id, ALERT_MESSAGE_TEXT, rem_record.re_about);
              al_on := show_alert('ON');
              IF alert_button = ALERT_BUTTON1 THEN
              update remind
              set alarm = 'OFF'
              --where re_about = rem_record.re_about
              where current of rem;
              ELSE
              NULL;
              END IF;
              COMMIT;
         END LOOP;
    end;
    thanks
    Muhammad Nadeem
    Mardan

    thanks dear,
    i tried the following code outside the loop
    but the same problem.
    here is the code:
    Declare
         alert_id ALERT := Find_Alert('on');
         alert_button NUMBER;
         var number :=10;
         v_al char(3);
         v_al_da date;
         s_date date;
         al_on number;
         to_time number;
         cursor rem is
              select re_about, alarm, alert_date
              from remind
              where alarm='ON' AND alert_date = :control.showdate
              for update;
    begin
         for rem_record IN rem LOOP
         Set_Alert_Property(alert_id, ALERT_MESSAGE_TEXT, rem_record.re_about);
              al_on := show_alert('ON');
              IF alert_button = ALERT_BUTTON1 THEN
              update remind
              set alarm = 'OFF'
         where current of rem;
              ELSE
              NULL;
              END IF;
         END LOOP;
    if :SYSTEM.FORM_STATUS = 'changed' then
         COMMIT;
    end if;
    end;
    thanks
    Muhammad Nadeem

  • Return to selected row with refresh after update in edit  form

    Hi,
    I created a database view.When selected a single row and click on button i can edit the row in a form for update.What i want, when doing some update and click on the commit button i return back on the initial row with a refresh to see the update done on this row.I succeeded to modify the form and commit.But when i return on the selected row my update is not visible.How can i return to the same selected row with a refresh.In oracle form i can do a go record with execute_query, but how to do this in ADF.Please someone can help so that i do not spend many days on it.
    Thanks
    Soodesh

    [click for the tutorial|http://www.google.co.in/url?sa=t&rct=j&q=&esrc=s&source=web&cd=6&ved=0CFQQFjAF&url=http%3A%2F%2Fandrejusb.blogspot.com%2F2013%2F03%2Fadf-rollback-and-keep-current-row.html&ei=Tnl3Ucn3BoXIrQeemICQAw&usg=AFQjCNHdYcJL8kJKymqbWBT9XDGTWmeUvQ&bvm=bv.45580626,d.bmk&cad=rja]
    here you go :)

  • HT1365 How can I get my iPhone 4 to update my updates from my app store of it keeps telling me error 3150 or it tell me to refresh the page after updates and the updates are still there asking me to update them again

    How can I get my iPhone 4 to update my updates from my app store of it keeps telling me error 3150 or it tell me to refresh the page after updates and the updates are still there asking me to update them again?

    Make sure iTunes on the computer is logged into the account on the phone.
    Plug the iPhone in.
    In the popup window warning about wiping your phone, hit cancel.
    In the left pane of iTunes, the phone icon should be there.
    Right click on it, select transfer purchases.
    Note: this will only transfer music bought from iTunes. Not mp3's from amazon or ripped from CD's.

  • Updating a row is not reflected after committing and it takes the old value

    Sir,
    I have been stuck at this problem for quite some time. So, I have a updatable table with editall property but i am controlling each column's read only property based on the value of the checkbox present in that table.So, if the user clicks on the checkbox ,the entire row becomes editable. But when i am changing the value of the row and pressing the commit button , it does not take the new value but the postback happens with the old value only. If i just drag the table as editall table and edit something , the commit button does reflect the change.
    How to solve this. Please help

    Frank,
    The reason i am not using the ClicktoEdit feature is because my aim is that the user clicks on multiple checkbox and then press the update button ,then all the checked rows becomes editable and the user can update them. But unfortunately, this feature is also not working .I am going step by step. So, i have checkboxes which the user can click to update them but it is not committing the change. Could u please help me or suggest some other way round. If u want any other information , please do ask.
    Thanks

  • ALV grid oo delete rows and update to table

    Hi all
      How can I delete one row and update to the db table?
    thanks

    Hi,
    Refer:-
    The ALV Grid has events data_changed and data_changed_finished. The former method is
    triggered just after the change at an editable field is perceived. Here you can make checks for
    the input. And the second event is triggered after the change is committed.
    You can select the way how the control perceives data changes by using the method
    register_edit_event. You have two choices:
    1. After return key is pressed: To select this way, to the parameter i_event_id pass cl_gui_alv_grid=>mc_evt_enter.
    2. After the field is modified and the cursor is moved to another field: For this, pass cl_gui_alv_grid=>mc_evt_modifies to the same parameter.
    To make events controlling data changes be triggered, you must select either way by
    calling this method. Otherwise, these events will not be triggered.
    To control field data changes, ALV Grid uses an instance of the class
    CL_ALV_CHANGED_DATA_PROTOCOL and passes this via the event data_changed.
    Using methods of this class, you can get and modify cell values and produce error messages.
    Hope this helps you.
    Regards,
    Tarun

  • Refreshing JTable contents (rows and columns) handling.

    Hi,
    I have a general question related to refreshing the contents of JTable and handling some application specific requirements.In our application we are planning to refresh the contents of JTable automatically after certain period of time by fetching data from database and update the JTable contents or user has clicked refresh button.
    But following scenarios we are planning to handle when refresh is called automatically or user has clicked refresh button.
    1) User is working with data of JTable. Like rows of JTable has checkBoxes and user selects them and doing operation like viewing the details of selected rows in new details dialog. So if refreshing is done then the selection will be lost if I update the whole data in JTable.
    a)Will it be possible to append the data at the end of JTable rows without disturbing the existing JTable contents.
    b) Is it feasible to compare the data of existing rows and newly fetched rows and update only the rows whose values are changed in database or update specifically updated columns. But this comparision for finding changed values will result in performance problems.So are there any other alternatives of doing this, ideas are most welcome.
    c) Simple way is to alert the user that data will be updated and everything will be refreshed will be the choice in worst case.
    I guess many may have encountered such problems and may have solved it depending on the product requirements.
    Ideas and suggestions are most welcome.
    Regards.

    Hi,
    Here are my views and my assumptions.
    Assumptions :
    1) Your JTable is populated with list of Objects.
    2) Your tables in database is having columns like created date, created time, updated date updated time
    3) Order by clause for all the time will remain same.
    If these assumptions are correct then I think you can achieve your goal.
    Here how it is.
    Your application session will maintain last db hit time and will maintain for every hit that applicate made to fetch data from db.
    When object is created on the server side once it fetch data from table it will compare the created date/time or update date/time with the session varibale that holds last visit date/time. Based on this flag need to be set to indicate if this item is added/updated/deleted since last visit.
    And when all these object is returned to your client, the table model will iterate through the list and based on object index in the list and and if object is changed will update only that perticular row.
    Hope this is what you want to achieve.
    Regards

  • Is anyone else having problems selecting the message field after typing in the recipient in iOS 6.1 update?

    Just updated iPhone 5 and I can't start new messages because you can't select message field after typing in message recipients

    Mines fine, I did a hard reset after the update and with both bluetooth and wifi and celluar data on I am geting slightly better battery life on my iPhone 5s. right now Im at 83% with 1 hour and 24 mins useage and 1 day 14 hours standbye. Siome apps leach battery life so check whats using background app refresh and notifications, apps like facebook and also GPS useage suck your phone dry quickly.

Maybe you are looking for

  • I just updated to itunes 10.5.2  on windows 7, and the itunes store doesn't work.

    the itunes store comes up as a list with not pictures. and the list take forever to apper. Whilre there loading, its just pain white. the search doesn't work. i cant search music. it can still play stuff i downloaded before though. i just installed a

  • FLAT FILE ISSUE IN LSMW

    Hi, I am migrating customer Master in LSMW using BUS0050. Now I am using two structures: BKNA1 (General Customer master Record 1) and BKNVK (Customer Master contact person) BKNA1-> NAME1,SORTL,STRAS,ORT01,PSTLZ,LAND1,SPRAS,STCEG | |_____BKNVK -> NAME

  • Text input - how set an automated space after each word?

    When typing in text and using the qwerty assisted text - how can i get it to automatically add a space after each word? My Droid original did that automatically... Thanks

  • How to count number of rows in table

    can I get number of row in table except Count(*) in pl/sql is there any other way

  • Changing normal tags to people tags

    Hello, I'm using Elements 11. I imported some photos to my catalog and the program asked if I wanted to import the tags as well. Of course I did and so did the program. However, now when I want to find pictures of a specific person that I tagged in p