How to identify a specific object that changed in a data table?

I have a data table in my jsf page which populate by myList (a property of type List<myObject> in myBean) that contains a list of myObject objects.
Within data table, the 'amount' property of myObject is in a h:inputText named 'amountText'.
How can I recalculate another property (for example 'cost') of the specific myObject within one of the
data table rows whenever user change the value of 'amountText' ?

Hi Roger,
I guess, it is up to your choice about design how you want to implement.
you have two ways....
1) Use valueChangeListener attribute of the text field, as it will be called for the row of the database on which the bind property value is actually changed.
2) Not prefered, but you can use setterMethod of amount in the your object, and can compare its new value with the old one and can decide the consequence.
Please let me know, if it solves your concern or you have a different concern.

Similar Messages

  • How do you select an object that is directly under another object?

    How do you select an object that is directly under another object?
    I was working from a template and I wanted to make a text box the same size as a column box that was put there in order to keep the text in the confines of the paper that is was being printed to.
    I could actually put text in each column fine but I wanted it to be in a text box so that I could slightly tilt the test box to compensate for my printer feeding it in slightly wrong. I accomplished this on another template but I could not on this one. If I was working in InDesign or something I know I could just select that layer but I'm at a loss of what to do here. How do I select a column right under a text box? I just thought of something. Once I make the text boxes the same size as the columns I think I can just delete the columns from the inspector. But that would be kind of a work around. I know you can hold down command when nothing is selected from outside the document and then highlight but this is not working. Does anyone have some tips and tricks when it comes to having control over which objects you are selecting when it comes to objects that are overlapped as well as directly over each other.
    Thanks.
    Tim

    I'm not sure it's documented any where, but it's not too difficult. First, ⌘-click outside of the layout area to enter object mode then drag the cursor towards the two objects until you see the handles. Now, again ⌘-click on the top object to deselect it. You can now move the underlying object to the front to edit, delete, etc.
    After typing this, it dawned on me, why not just click the top object to select it & move it to the back? I've only done the other way a bazillion times & now I think of this.

  • How to get customer-specific objects into PCUI ?

    Hello,
    we want to get an Z-table as tab page of the business partner-application into PCUI. It should 'only' be possible to create new entries - today there is no need to modify or delete records.
    Does there exist something like a "cookbook" on this task or has anyone of you experience how to get customer-specific objects (without using EEWB) into PCUI ?
    Thanks in advance
    Martin

    Option 1:
    If you are good in ABAP.
    You can add new tab in which create a new Field group. Assign it to a model access clas in which handle the table update.You can get the details in PCUI cookbook itsel.
    Option 2:
    If you are good at java
    Develop an FM to update the table.
    Call the FM from webdynpro
    Include this webdynpro as HTML viewer in PCUI.
    Regards,
    Abdul Raheem S

  • How to remove Business content objects that are not required?

    Hi all of you,
    I had extracted some of the objects from business content from FI such as General LEdger and Asset Accounting. After extracting it, my c drive is full and I am not able to open any other file. So I want to remove these FI objects that I had extracted from Business Content. Can any one please guide as to how should I remove these already loaded Business content objects?
    Thank you.
    TR.

    Hi,
    You can right click on the objects (unused) and delete.
    actually when you activate business content its version is changes from "D" Delivered to "A" Active but these objects will always be available as D version to you. Even if you delete the activated objects now & need those in future you can reactivate them.
    hope it helps
    Regards
    Vikash

  • How to identify one specific row in the table STPO?

    Hi!
    How can I identify one specific row in the table STOP? As an input for my ABAP function I have MatNr, Plant, Alternative, BomUsage and Bom Position (0010, 0020...). With these values I can ask the table MAST to get the STLNR. But how can I get all needed values to specify an entry in the table STPO then?
    Thanks,
    Konrad

    Here is a actual working code that we used here.
    *-- get the bom details
      li_mast-mandt = sy-mandt.
      li_mast-matnr = material.
      li_mast-werks = '6000'.
      li_mast-stlan = '1'.
      call function 'GET_MAST'
           exporting
                all             = 'X'
                no_buffer       = 'X'
                set             = 'X'
           tables
                wa              = li_mast
           exceptions
                call_invalid    = 1
                end_of_table    = 2
                get_without_set = 3
                key_incomplete  = 4
                key_invalid     = 5
                no_record_found = 6
                others          = 7.
      if sy-subrc <> 0.
        clear: kdf_material,
               kdf_material_desc.
        exit.
      endif.
      loop at li_mast.
    *-- get the valid headers
        move-corresponding li_mast to li_stko.
        li_stko-stlty = 'M'.
        call function 'GET_STKO'
             exporting
                  all             = 'X'
                  datub           = l_valid_date
                  datuv           = l_valid_date
                  del             = ' '
                  no_buffer       = 'X'
                  set             = 'X'
                  valid           = 'X'
             tables
                  wa              = li_stko
             exceptions
                  call_invalid    = 1
                  end_of_table    = 2
                  get_without_set = 3
                  key_incomplete  = 4
                  key_invalid     = 5
                  no_record_found = 6
                  others          = 7.
        if sy-subrc <> 0.
          continue.
        endif.
        loop at li_stko.
          move-corresponding li_stko to li_stpo.
          call function 'GET_STPO'
           exporting
             all                    = 'X'
             alter                  = li_stko-stlal
             datub                  = l_valid_date
             datuv                  = l_valid_date
             no_buffer              = 'X'
             set                    = 'X'
             valid                  = 'X'
    *        VIEWNAME               =
           tables
             add_wa                 = li_cszalt
             wa                     = li_stpo
           exceptions
             call_invalid           = 1
             end_of_table           = 2
             get_without_set        = 3
             key_incomplete         = 4
             key_invalid            = 5
             no_record_found        = 6
             viewname_invalid       = 7
             others                 = 8.
          if sy-subrc <> 0.
            continue.
          else.
            exit.
          endif.
        endloop.
        if not li_stpo[] is initial.
          exit.
        endif.
      endloop.

  • How to create a radio button that changes colors

    I'm using Acrobat X and ID CS5 on Mac OS X.
    A couple of years ago someone on the forums explained to me how to create a button that changes color with each click. You can view a sample PDF at https://dl.dropboxusercontent.com/u/52882455/colorcycle.pdf. They gave me the document JS and showed me how to set the properties of the button. I've integrated the button into a particular series of PDF forms and it's worked out very well.
    Now I would like to do the same thing, but using a circle instead of a square. Can anyone tell me the best way to do this? Can I somehow set a radio button to cycle through colors in the same way? I design my forms initially in ID CS5 and then activate and format the fields in Acrobat X. I've tried using circles instead of squares in my ID document, but when I export to an interactive PDF, they're converted to squares.
    Any ideas?

    I understand how to make buttons cycle through colors-- the problem I'm having is that I'm trying to figure out how to make a circular button cycle through colors. When I export my ID document to PDF, my round button maintains it's original appearance, but when I click on it to cycle through the colors, it behaves like a square (see new PDF at https://dl.dropboxusercontent.com/u/52882455/colorcycle2.pdf).
    If I use a radio button, I can get it to cycle through colors, but I don't want it to have a black dot in the middle. Is there a way to format the radio button to not show the black dot when clicked?

  • How to identify largest BW objects ?

    Hello All,
    I need to identify biggest BW objects within a BW system.
    Any idea of table name that holds that kind of information for BW system (object tech name and its size) ?
    regards, Tomasz

    BW repositorty tables are there.But tables are different for different type of BW Objects. and they don't store sizes.
    Like - RSDIOBJ - For InfoObject
             RSDDSO - For DSOs
            RSDCUBE - For InfoCubes

  • How to know the specific size of a field in oracle table

    Hello,
    oracle 11.2.0.3 on redhat
    i have three tables with same structure, table0, table50, table100:
    create table table0 (id number, shipment RAW(2000), options RAW(2000));
    i inserted 10000 rows in each but with some differences:
    table0 has 10000 id, but shipment and options has null values
    table50 has 10000 id, but shipment and options has only 5000 rows, the other 5000 are null values
    table100 has 10000 rows of id, shipment and options. No null values.
    I want to know the specific size of each column, also the size of each row, to know the exactly size of the field.
    for example:
    row 1, column options of table100 has "asdfasdfagasdgasbabsdgoasdpgiahnwe1129u412094u12"
    row 2, column options of table100 has "a".
    both are raw datatype, but i think its space will has different size (bytes), how to know it? any query?
    I found this query:
    select owner,tablespace_name,segment_name,sum((bytes/1024/1024)) Bytes
    from sys.dba_extents
    where owner in 'MAA' and segment_type='TABLE' and segment_name ='TABLE00'
    group by tablespace_name,owner,segment_name
    order by owner,tablespace_name,segment_name, bytes; but i think it isn't my solution.

    thx mr. sb92075
    i tried with vsize too but same result:
    with table50
    SELECT VSIZE(OPTIONS) FROM TABLE00;
    VSIZE(OPTIONS)
                 1000
                 1000
                 1000
                 1000
                   *with table100
    SELECT VSIZE(OPTIONS) FROM TABLE100;
    VSIZE(C_ELECCION)
                 2000
                 2000
                 2000
                 2000
                      *it's the same size for 'a' like 'abcasdfjañldngaosnbaposnbpaosuqroiwejrklasndiaoshbaposdjgajs'?? It's hard for me to believe.
    data is saved in blocks, a extents is a contiguos number of blocks and a group of extensions are segments. If you insert some text in a table field, Oracle create a extension and insert there the data but depend the bytes you insert Oracle will create one or more extents. How to know this specific space in that field?

  • How to cancel the second ATP after changing the delivery date in the SO

    Hello,
    our solution creates automaticly a production order accorting to sales order.
    The system calcule ATP for each items at the creation of the sale order.
    Sometime, we change the delivery date on the scheduled line and SAP do another ATP. If the composants are not available we get an TSUP status on the order production.
    How can we cancel the second ATP ?
    Is it possible to cancel it when we change delivery date ?
    Thanks
    Regards
    Pierre

    I think its not possible to skip the atp during change of the sales order.  All these determinations will trigger before saving the order
    regards,
    Ramana

  • How to identify if there is standard datasource available for a table/view

    hi
    Is there anyway we can identify or know if a particular table/view  in r/3 already has a standard datasource on it .
    we are working on tax/insurance data   table - J_3GVERSI
    is there any std. datasource available for this table .
    we have requirement in our report - insurance data report  which gets data from the above table.
    thanks

    Hi,
    Enter your table name in SE11 and click ''Display'. Then click ''Where-Used-List'' and select Programs, Structures etc.,
    You can see wherever your table has been used.
    Carry out this activity in ECC.
    REgards,
    Suman'

  • How to find the number of entries in a master data table

    Hi Experts,
    I am trying to find the entries in 0CUSTOMER master data.
    BW>LISTCUBE>Data target: 0CUSTOMER and selected the fields that I need.
    I would like to know how to find the "number of entrees". I tried to run the SUM for a count field, but it is taking forever as there are huge number of records .

    Hi Dev,
    Go to the change/display mode of the info object (0CUSTOMER) in your case. Go to the Master data/Text tab. Here you will find the master data tables according to your settings (P orQ or X or Y). Double click on the table name and it will take you to the SE11 display. From there, you can check the number of records as you do in any transparent table.
    Hope this helps.
    Thanks and Regards
    Subray Hegde

  • Web report data provider change from Master data table to InfoCube

    hi Experts,
    I have created one report on top of multiprovider but in the selection screen when i check the values for a variable I came to know that data is coming from master data table and not from data provider(InfoCube).Can any one help to change the data selection from master data table to data provider(InfoCube) and i am sure that there is no ODS involved in the multiprovider.
    Thanks in advance
    With Regards,
    Bala

    Hello,
    If u are using Analyser then just put a Analysis Grid on the output of the query(should cover all the rows and column) , click on the grid and put the dataprovider. and do auto fit.
    Rohit

  • How to solve this problem "ORA-01466: Unable to read data -- Table definiti

    Hi,
    I had deleted the entry and i want back now and in between i done the following
    alter table pv_head enable constraint FK_PV_HED__CRF_HEDwhen i try in the following one
    SELECT * FROM PV_HEAD AS OF TIMESTAMP TO_DATE('28-FEB-2011 9:45:00','DD-MON-YYYY HH24:MI:SS')
    WHERE PV_NO IN (703705,703704) the error i am receiving           
    ORA-01466: Unable to read data -- Table definition has changed how to solve this issue.
    please guide me.
    Kanish

    You can not perform DDL and then perform a flashback query to before the DDL.
    One might wonder why you chose this particular time to perform an ALTER TABLE but you did. It is what it is.

  • How do I trap on scroll event , while displaying a data table?

    I am making a very small screen size application, in which I need to display a table of long row of data. I have used the "tab-pane" DIV class and divided the data row into 3 tabs. The purpose is that, whenever i scroll to see next rows of data in Tab1, I want to scroll and display the corresponding other columns of those data rows (which are now getting displayed in tab 1), in tab 2 and tab 3 also i.e. the scrolling in tab 1 should control the scrolling in Tab 2 and Tab 3 also.
    Thanks in anticipation...

    heheh... the fun part of about programming... problem solving... :D
    here is one way of doing it is this... ( example included )
    we know we are using a JScrollPane that made up of some components including JScrollBars...
    what you can do is get the JScrollBars using the this method described in the javax.swing.JScrollPane API... in the example, i only grabbed the horizontal ones, you can get the vertical ones too if you like...
    JScrollBar getHorizontalScrollBar()
              Returns the horizontal scroll bar that controls the viewport's horizontal view position.from the example this one of the actual calls...
    sBar1 = scrPane1.getHorizontalScrollBar();and as you can see the JScrollBar object from JScrollPane is assigned to a variable sBar which is of type JScrollBar...
    if we look at JScrollBar it has a method to add an AdjustmentListener... this would be an object that listens for any adjustments made to the JScrollBar object and then do something in response...
    void      addAdjustmentListener(AdjustmentListener l)
              Adds an AdjustmentListener.so if you look at the API for java.awt.event.AdjustmentListener interface, the listening class only need to implement one method...
    void      adjustmentValueChanged(AdjustmentEvent e) now if you look at java.awt.event.AdjustmentEvent, there is a method to get the value from the adjustment event that occurred...
    int      getValue()
              Returns the current value in the adjustment event.and JScrollBar has a method that allows us to set it's current value ( for scroll position )...
    void      setValue(int value)
              Sets the scrollbar's value.so we add the logic that gets the adjustment value from the AdjustmentEvent from one of the JScrollBars and set the others value...
    so in the example, the ScrollingDemo class is the AdjustmentListener and has the method below...
           public void adjustmentValueChanged(AdjustmentEvent adje){
                  if ( adje.getSource() == sBar1 ){
                       sBar2.setValue(adje.getValue());
                  }else if ( adje.getSource() == sBar2 ){
                       sBar1.setValue(adje.getValue());
           }and of course, now that we have all the parts done, we simple just add the AdjustmentListener to our JScrollBars...
    sBar1.addAdjustmentListener(this);and we are basically done...
    here the full example code...
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class ScrollingDemo extends JFrame implements AdjustmentListener{ // to implement AdjustmentListener interface
           private JTable jt1,jt2;
           private JScrollPane scrPane1,scrPane2;
           private JTabbedPane tabPane;
           private JScrollBar sBar1,sBar2; // to hold our JScrollBar objects
           public ScrollingDemo(String title){
                  super(title);
                  setDefaultCloseOperation(EXIT_ON_CLOSE);
                  jt1 = makeTable("table1");
                  jt1.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
                  jt1.setPreferredScrollableViewportSize(new Dimension(300,300));
                  jt2 = makeTable("table2");
                  jt2.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
                  jt2.setPreferredScrollableViewportSize(new Dimension(300,300));
                  scrPane1 = new JScrollPane(jt1);
                  sBar1 = scrPane1.getHorizontalScrollBar(); // getting the first JScrollBar...
                  sBar1.addAdjustmentListener(this); // adding the AdjustmentListner which is "this" object
                  scrPane2 = new JScrollPane(jt2);
                  sBar2 = scrPane2.getHorizontalScrollBar(); // getting the second one...
                  sBar2.addAdjustmentListener(this); // and adding a listener to it also...
                  tabPane = new JTabbedPane();
                  tabPane.addTab("Panel 1",scrPane1);
                  tabPane.addTab("Panel 2",scrPane2);
                  add(tabPane);
                  pack();
                  setVisible(true);
           private JTable makeTable(String data){
                 String [][] stringArray = new String[50][50];
                 String [] col = new String [50];
                 for (int i = 0; i < stringArray.length; i ++ ){
                     col[i] = "Col " + i;
                     for (int j = 0; j < stringArray[0].length; j++ ){
                         stringArray[i][j]= data + " "+ i+ "." + j;
                 return new JTable(stringArray,col);
           // the method we have to implement for the AdjustmentListener interface...
           public void adjustmentValueChanged(AdjustmentEvent adje){
                  if ( adje.getSource() == sBar1 ){ //  checking to see which bar it is...
                       sBar2.setValue(adje.getValue()); // and move the other...
                  }else if ( adje.getSource() == sBar2 ){  // blah... blah...
                       sBar1.setValue(adje.getValue()); // blah... bhal...
           public static void main ( String [] x ) {
                  new ScrollingDemo("ScrollingDemo");
    }hope this helps... :D
    - MaxxDmg...
    - " He who never sleeps... "

  • How to identify or track the latest changes in database objects

    Hi,
    I am working in an application which has Oracle 10 g for backend.
    the application in total has around 30 tables and around 25 packages. I want to track the latest changes made in database. The database is accessible to my team of 20 members and i want to keep track what all changes in database(tables ,packages) are being made by them.Which package or table is being affected?
    Can yanyone please suggest how to track the same?

    To track table changes see following discussion: Re: How to find Last modified/updated time of a particular table

Maybe you are looking for

  • Purchase Order Change

    Hi , Could anyone guide me w.r.t below error ?. After saving the changes made to Purchase Order , i get the below error . Message SAP: No batch input data for screen SAPLSPO1 0300 ... What is it due to and how can it be corrected . Regards Ramesh

  • Problem while uploading 10,000 items via import workbench in PROD

    Hi All, we are using advance product catalog R12.1.3 (PIM). When we are trying to upload 10,000 items via import workbench , We are facing an error not even one record imported .please see the below log file. Please help us regarding this issue . The

  • IMPOSSIBLE TO STOP SYNCING WITH IPHONE

    IMPOSSIBLE TO STOP SYNCING WITH IPHONE AND ITUNES

  • E_63 Why cant I send Text Messages to an email add...

    Is there away to send a text message to an email address on the E63 when ever I try it gives an error message 'invalid Contact'?   my old phone allowed me to do it.  

  • RMI through JDeveloper

    I was wondering if there was a way of running rmic through the menu in JDeveloper . Similarly, is it possible to run rmiregistry through JDeveloper. Regards, Paul.