Getting only the rows committed in the database

Hi,
I have one strange requirement in my application.
I need to fetch the rows from a particular table in the database which are committed.
I mean there are other view objects for that table and those view objects are manipulating the data in that table and doing postChanges(). But I need a way (may be using a view object or any other technique) for getting the rows which are COMMITTED in the database and not just posted using postChanges().
Please advice how can I achieve this.
Thanks

Hi,
I have one strange requirement in my application.
I need to fetch the rows from a particular table in the database which are committed.
I mean there are other view objects for that table and those view objects are manipulating the data in that table and doing postChanges(). But I need a way (may be using a view object or any other technique) for getting the rows which are COMMITTED in the database and not just posted using postChanges().
Please advice how can I achieve this.
Thanks

Similar Messages

  • TableView -- get the row number of the top most current visible row

    Is there any way to get the row number of the top most visible row, and or bottom most visible row in TableView?

    If you already know the document's name, the sheet's name and the table's name, the easy way is :
    --Here you may replace the three values by the current ones
    set dName to 1
    set sName to 1
    set tName to 1
    tell application "Numbers" to tell document dName to tell sheet sName to tell table tName
    tell first cell of the selection range to set {rowNum1, columnNum1} to {address of its row, address of its column}
    tell last cell of the selection range to set {rowNum2, columnNum2} to {address of its row, address of its column}
    end tell
    Yvan KOENIG (VALLAURIS, France) mercredi 9 février 2011 17:22:21

  • I am a member of CC and want install Muse on a second pc. I get only version Muse cc, not the version Muse CC2014.1. What can i do?

    I am a member of CC and want install Muse on a second pc. I get only version Muse cc, not the version Muse CC2014.1. What can i do?

    H-J Winter do you meet the minimum system requirements for Muse CC 2014 at System requirements | Muse?  If so then please complete the steps in CC desktop lists applications as "Up to Date" when not installed - http://helpx.adobe.com/creative-cloud/kb/aam-lists-removed-apps-date.html to refresh the list of available applications.
    You can also find more details regarding installing the Adobe Creative applications included with your membership at Install and update apps - https://helpx.adobe.com/creative-cloud/help/install-apps.html.

  • How to obtain the row data in the component datatable?

    if I want to edit a row data, and then know which row is edited in the component datatable, and how to do?
    How to obtain the row data in the component datatable, and update it to database, not simplely edit a simple table
    Any ideas? Thanks

    Thank you very much for your help Alexander !
    It's quite confusing when you leave Struts and try to adapt your projects for JSF for the first time...
    I wanted to click on a row with a "onMouseClick" on the TR tag like I used to do in Struts/JSTL. But it seems to be impossible in a dataTable.
    Ok then. I've added a column at the end of the row with an icon.
    But eventually I didn't need to declare link parameters.
    In my BackingBean I did like this :
    public String selectEventForUpdate() throws IllegalAccessException, InvocationTargetException {
            PortletAgenda event = (PortletAgenda) JSFUtils.getInRequestMap("event");
            BeanUtils.copyProperties(this, event);
            return null;
       }JSFUtils.getInRequestMap(...) is a method I wrote in a util object :
    public static Object getInRequestMap(String name) {
            Object res = null;
            Map requestMap=FacesContext.getCurrentInstance().getExternalContext().getRequestMap();
            if (requestMap!=null) {
                res=requestMap.get(name);
            return res;
    }  " event " is the name of the item in my dataTable list.
    My backingBean has the same attributes as "event".
    So when the page is reloaded I have a backingBean full with the selected properties to edit/update.
    Thanks to your reply I realized that putting this form in the middle of the dataTable seems to be impossible.
    So I put this form in a floating DIV in front of the table with a shadow.
    It works :o) !
    But I'm a little bit disapointed to be honest...
    I used to build my web applications with Struts and JSTL and doing this kind of interface was really easy.
    I've decided 3 days ago to convert into JSF because the "GUI Layer" seemed to be improved.
    But now I realize that I cannot put a onMouseOver and onMouseClick on a row and I cannot display a different row in the middle of a table....
    I think it's a shame because there is a facet for header and footer.
    And it would be great if we could create our own personal facet that appears only if a condition is true.
    For exemple " if the current item id is the same as the request parameter id then display the following facet content ....... (with a panel group and a form inside to update the row) "
    It's easy to do that with JSTL thanks to c:forEach and c:if but it seems to be impossible to use JSTL tags like this during the dataTable iteration.
    And JSF tags seems to have no logical tags like " if " or loops that can be nested in dataTable.
    I really need to realize this interface (you click on a row then an edit form appears where you clicked).
    Do I have to write a component myself that extends dataTable?
    Do you know if writing such a component is hard to do for a beginner like me?
    (I've juste discovered JSF 3 days ago and I've used Struts/JSTL for 2 years til now)
    I'd be glad to have much advices from you about that.
    Regards

  • The row structure of the table BANFTAB is incorrect

    Dear Experts,
    I get right here the error message
    The row structure of the table BANFTAB is incorrect
    ZBANFN is a table type and has the line tab BANFN.
    Can you pls tell me what is wrong here ?
    FUNCTION Z_CHANGE_EBAKZ_FLAG.
    *"*"Lokale Schnittstelle:
    *"  CHANGING
    *"     VALUE(BANFTAB) TYPE  ZBANFN
      data lt_eban type table of eban.
      data ls_eban type eban.
      SELECT * FROM eban into table lt_eban where BANFN IN BANFTAB AND EBAKZ EQ 'X'.
      IF SY-SUBRC IS INITIAL.
        LOOP AT lt_eban INTO ls_eban .
          ls_eban-EBAKZ = ' '.
          modify eban from ls_eban.
        ENDLOOP.
      ENDIF.
    ENDFUNCTION.

    Hello,
    You have to use a ranges table in this case.
    FUNCTION Z_CHANGE_EBAKZ_FLAG.
    *"*"Lokale Schnittstelle:
    *"  CHANGING
    *"     VALUE(BANFTAB) TYPE  ZBANFN
      data:lt_eban type table of eban.
      data:ls_eban type eban.
    data:
    l_r_banfn type range of banfn,
    l_wa_banfn like line of l_r_banfn,
    l_wa_banftab like likne of BANFTAB.
    loop at banftab into l_wa_banftab.
    l_wa_banfn-sign = 'I'.
    l_wa_banfn-option = 'EQ'.
    l_wa_banfn-low = l_wa_banftab-banfn.
    append l_wa_banfn into l_r_banfn.
    clear l_wa_banfn.
    endloop.
      SELECT * FROM eban into table lt_eban
      where
      BANFN IN L_R_BANFN "BANFN IN BANFTAB
    AND EBAKZ EQ 'X'.
      IF SY-SUBRC IS INITIAL.
        LOOP AT lt_eban INTO ls_eban .
          ls_eban-EBAKZ = ' '.
          modify eban from ls_eban.
        ENDLOOP.
      ENDIF.
    ENDFUNCTION.
    or you can use FOR ALL ENTRIES :
    FUNCTION Z_CHANGE_EBAKZ_FLAG.
    *"*"Lokale Schnittstelle:
    *"  CHANGING
    *"     VALUE(BANFTAB) TYPE  ZBANFN
      data lt_eban type table of eban.
      data ls_eban type eban.
      SELECT * FROM eban into table lt_eban
      FOR ALL ENTRIES IN BANFTAB "--> Add this
      where BANFN = BANFTAB-BANFN
      AND EBAKZ EQ 'X'.
      IF SY-SUBRC IS INITIAL.
        LOOP AT lt_eban INTO ls_eban .
          ls_eban-EBAKZ = ' '.
          modify eban from ls_eban.
        ENDLOOP.
      ENDIF.
    ENDFUNCTION.
    Try this & let me know in case of any issues.
    BR,
    Suhas
    Edited by: Suhas Saha on Feb 10, 2009 5:43 PM

  • A Characteristci appears twice under the Rows Column on the left hand side.

    Hi All,
    According to the requirement , there are 2 Material Numbers ,1 of them is used for Compounding,which is not required in the Report,but as it is used for Compounding ,we need to place that in the rows.
    We have put tat in "NO DISPLAY" mode,but  Material Number appears twice under the Rows  column, on the left hand side of the screen, in the Portal when we execute the Report.How Can we have to display only 1 Material Number on the left hand side of the screen?
    Thanks in Advance,
    Sravani

    the left hand side of the screen is reakky vague....you should be more specific...
    Probably you need to filter out the compounding characteristics in the global filter area.
    Thanks...
    Shambhu

  • Sap.ui.table.Table.addRow(): The control manages the rows aggregation. The method "addRow" cannot be used programmatically!

    Hi there,
    I'm using a sap.ui.table.Table and want to add rows. However, I get the error message stated above in the title of this thread.
    The same happens when adding the rows via XML view by defining the rows aggregation.
    Coding in Table-dbg.js
    * @see JSDoc generated by SAPUI5 control API generator
    sap.ui.table.Table.prototype.addRow = function() {
      jQuery.sap.log.error("The control manages the rows aggregation. The method \"addRow\" cannot be used programmatically!");
    Any ideas?
    Regards
    Tobias

    Hi Tobias,
    A row could be added to the model instead.
    Below post might help.
    Re: Adding 1 row to a table in SAPUI5 with local data(textfields etc...)
    Thanks and Regards, Venkatesh

  • Document Settings - Calculate the row total using the unit price

    Hi All,
    I'm using SAP2007A PL37, the option "Calculate the row total using the unit price" in Document Settings is no longer available.  Is there any updates on this issue?
    Thank you,

    Hi Marlon,
    In 2007A, by default, new database would be created without this
    checkbox activated.
    However, there is a way to bring this checkbox back to the configuration
    screen, even if it is a DB newly created in 2007A. In order to do so it
    is necessary to do as follows:
    1) Open B1 2007A
    2) Go to Help -> Support Desk -> Activation Request
    3) Copy the ASCII string that appears in the top textbox ("Customer
    Request Code").
    4) Open a Support ticket stating that you want the "Calculate Row Total
    by Unit Price" checkbox activated for the specified system (Copy the
    string in the step 2) into a text file and attach it to the message).
    5) VERY IMPORTANT: State in the message also the Business Impact leading to this request. In your case you should just say that your AddOn needs this option changed in order to work correctly.
    6) You will receive a reply from B1 Support with a number to be entered
    in the "SAP Support Code" textbox in Help -> Support Desk -> Activation
    Request
    7) Click on OK and the checkbox will be displayed thereafter.
    Hope this can be helpful.
    Best Regards
    Helen Sun

  • How to increase the row height of the table in the smartform

    Hi,
    Can any one say,
    How to increase the row height of the table in the smartform.
    It is presently show the row width very small, i want to increase the row with of the table in the smartform.
    Plase say how can we increase the row height in the smartform.

    Hi Ravi,
         In Smartforms , Select the Table and you can adjust the cell hieghts in OUTPUT OPTIONs TAB.
        Reward points if that Helps.
    Manish

  • Dynamic Table in PDF - only first row passed to the WD Java

    Hi Experts,
    I'm working with Web Dynpro for Java on WAS 2004s SP13, ADS for SP13 and LiveCycle Designer 7.1
    I am facing a problem related to PDF-dynamic table generation.
    I am creating the PDF form with a dynamic table, an empty row will be added, when ADD button is clicked, the row will be deleted when DELETE button is clicked. After form submit, only first row of the table is passed to the Web Dynpro. I'v tried to use different dataSource Context node structure without results. The structure diescribed in the thread [Dynamic Table -  same data repeating in all rows;  doesnt works for me. The same happend if i try to folow the advise from Wiki https://wiki.sdn.sap.com/wiki/display/WDJava/Creating%20Table%20in%20Interacting%20form%20using%20Web%20Dynpro.
    Beside this,  my DropDown list in the table column is not populated. I know how to populate the DropDown list outside of table. That's working fine. But the DropDown in the table just not respond on the click (is not going open). I'm pretty sure that this is a result of a Context node structure/binding issue. 
    Please suggest me how can i implement dynamic table and populate the data in table dropdown column.
    Edited by: A. Mustacevic on Sep 7, 2009 12:18 AM

    Hi Prabhakar,
    You describe exactly my situation. The node which is bound to the table row has cardinality 1..n. Exactly Context structure is:
    node dataSource (cardinality 1..1/ Singleton true) ======> dataSource of the Interactive Form
    subnode TableList (cardinality 1..1/ Singleton true) ======> bound to the table in the Interactive Form
    subnode TableWrapper (cardinality 1..n/ Singleton true) ======> bound to the table row in the Interactive Form
    subnode TableData (cardinality 0..1/ Singleton false) ======> table data
    attribute 1  ====>     Context nodeattribute bound to the table row field   
    attribute 2
    This structure is recommanded in the post that I found on the Forum (see the firs hyperlink in my firs post).
    Is this structure correct? Why is not working?
    Your link is not working. Can you post the correct one.
    Thanks in advance.
    Regards
    Adnan
    Edited by: A. Mustacevic on Sep 8, 2009 1:56 PM
    Edited by: A. Mustacevic on Sep 8, 2009 1:57 PM
    Edited by: A. Mustacevic on Sep 8, 2009 2:00 PM
    Edited by: A. Mustacevic on Sep 8, 2009 2:01 PM
    Edited by: A. Mustacevic on Sep 8, 2009 2:02 PM

  • How to get the row & col of the cell being edited?

    I have a reference to a editable JTable, and I want to know at any point in time, what cell the user is editing (specifically the row & col).
    You'd think you could just go:
    int col = table.getActiveCellColumn();
    int row = table.getActiveCellRow();
    Where the active cell is the one the user is typing in.
    I tried getting the rectangle of the permenant focus owner and using that to get a Point object, then testing the table using columnAtPoint and rowAtPoint, but sometimes the cell is returned as the foucs owner and sometimes the whole table is returned (which does not help). Any ideas?

    You'd think you could just go:
    int col = table.getActiveCellColumn();
    int row = table.getActiveCellRow();Or maybe:
    table.getEditingRow();
    table.getEditingColumn();

  • Hello Experts., I would like to use only Lightroom but current set up by Adobe will force me to get Photoshop along with Lightroom. Is there any way where I can get only Lightroom and pay for the same.

    In the present set up by Adobe if one need Lightroom alone, they have to get and pay for Photoshop also Which I am not interested. Is there any way I can get only Lightroom.? Please help.

    Just for clarity, the strict answer to your question is "no": you can't get just Lightroom for the same price as the Lr/Photoshop Creative Cloud (CC) bundle.
    You can buy a stand-alone licence for Lightroom alone - that's what Don and Elie have helped you to find - but the pricing (and licencing) arrangements are entirely different to those which make up the CC bundle.
    Note too, it's likely that Lightroom 6 will be coming before long (although how long is not known): you will almost certainly have to pay for the upgrade to Lr 6 if you're on a stand-alone licence, whereas moving from 5 to 6 (and to 7 and to...) is included in the price of the bundle.

  • Getting last x rows written to the DB

    Hi all
    I have written some data to my table and wanted to know the best way of getting the last x rows written to the table?
    Thanks for any suggestions.

    Probably I come a little late here, but here is my suggestion:
    WITH data AS (SELECT SYSDATE + 1 / 24 AS col1
                    FROM DUAL
                  UNION ALL
                  SELECT SYSDATE + 2 / 24 AS col1
                    FROM DUAL
                  UNION ALL
                  SELECT SYSDATE + 6 / 24 AS col1
                    FROM DUAL
                  UNION ALL
                  SELECT SYSDATE + 1 / 24 AS col1
                    FROM DUAL
                  UNION ALL
                  SELECT SYSDATE + 4 / 24 AS col1
                    FROM DUAL
                  UNION ALL
                  SELECT SYSDATE + 5 / 24 AS col1
                    FROM DUAL
                  UNION ALL
                  SELECT SYSDATE + 6 / 24 AS col1
                    FROM DUAL
                  UNION ALL
                  SELECT SYSDATE + 2 / 24 AS col1
                    FROM DUAL
                  UNION ALL
                  SELECT SYSDATE + 1 / 24 AS col1
                    FROM DUAL
                  UNION ALL
                  SELECT SYSDATE + 3 / 24 AS col1
                    FROM DUAL
                  UNION ALL
                  SELECT SYSDATE + 1 / 24 AS col1
                    FROM DUAL
                  UNION ALL
                  SELECT SYSDATE + 3 / 24 AS col1
                    FROM DUAL
                  UNION ALL
                  SELECT SYSDATE + 1 / 24 AS col1
                    FROM DUAL
                  UNION ALL
                  SELECT SYSDATE + 6 / 24 AS col1
                    FROM DUAL)
    SELECT *
      FROM (SELECT col1,
                   DENSE_RANK () OVER (ORDER BY col1 DESC) AS rnk
              FROM data)
    WHERE rnk = 1
    /So, if you have some sort of data and a column of datetime type, you can sort the data in descending order by this datetime column and then take the "last" rows, e.g. the rows which value in the datetime column is the oldest one.

  • HowTO: Get only one entry which has the highest value in a specific column?

    Hi there,
    ich have the following problem. I want to write logs in a table. One column is the date of the log and some others hold the information.
    Now I want to get the last log and I it should be good performance too.
    What would you suggest?
    At the moment I think about the max() function. Is it a solution?
    Would a view which orders the logs by date (DESC) improve performance? maybe the view could create a collum which numbers the logs beginning by the newest.
    something like: ...ROW_NUMBER() OVER(ORDER BY logdate) AS indx ...
    Thx in advance
    Dominik

    In my opinion SELECT * FROM MY_LOG WHERE LOG_DATE =
    MAX(LOG_DATE) could be expensive (performance)In the first place, it issues an error saying GROUP functions are not allowed here.
    MAX() solution would be better.
    SQL> explain plan for select *
      2                   from (select emp.* , row_number() over (order by hiredate desc) rn
      3                         from emp)
      4                   where rn = 1;
    Explained.
    SQL>
    SQL> select * from table(dbms_xplan.display);
    PLAN_TABLE_OUTPUT
    | Id  | Operation                |  Name       | Rows  | Bytes | Cost  |
    |   0 | SELECT STATEMENT         |             |    16 |  1760 |     4 |
    |*  1 |  VIEW                    |             |    16 |  1760 |     4 |
    |*  2 |   WINDOW SORT PUSHED RANK|             |    16 |   704 |     4 |
    |   3 |    TABLE ACCESS FULL     | EMP         |    16 |   704 |     2 |
    Predicate Information (identified by operation id):
       1 - filter("from$_subquery$_001"."RN"=1)
       2 - filter(ROW_NUMBER() OVER ( ORDER BY "EMP"."HIREDATE" DESC )<=1)
    Note: cpu costing is off
    17 rows selected.
    SQL>
    SQL> explain plan for select emp.* from emp
      2                   where hiredate = (select max(hiredate)
      3                                     from emp);
    Explained.
    SQL>
    SQL> select * from table(dbms_xplan.display);
    PLAN_TABLE_OUTPUT
    | Id  | Operation            |  Name       | Rows  | Bytes | Cost  |
    |   0 | SELECT STATEMENT     |             |     1 |    44 |     2 |
    |*  1 |  TABLE ACCESS FULL   | EMP         |     1 |    44 |     2 |
    |   2 |   SORT AGGREGATE     |             |     1 |     9 |       |
    |   3 |    TABLE ACCESS FULL | EMP         |    16 |   144 |     2 |
    Predicate Information (identified by operation id):
       1 - filter("EMP"."HIREDATE"= (SELECT /*+ */
                  MAX("EMP"."HIREDATE") FROM "EMP" "EMP"))
    Note: cpu costing is off
    17 rows selected.
    SQL> Cheers
    Sarma.

  • I can't get the row number of the current selection

    Hi all,
    How can I get the row number of a selection if I don't know the range selected? I need it to store in variable.
    I've tried in many ways, but unsuccesfully.
    Thank's in advance.

    If you already know the document's name, the sheet's name and the table's name, the easy way is :
    --Here you may replace the three values by the current ones
    set dName to 1
    set sName to 1
    set tName to 1
    tell application "Numbers" to tell document dName to tell sheet sName to tell table tName
    tell first cell of the selection range to set {rowNum1, columnNum1} to {address of its row, address of its column}
    tell last cell of the selection range to set {rowNum2, columnNum2} to {address of its row, address of its column}
    end tell
    Yvan KOENIG (VALLAURIS, France) mercredi 9 février 2011 17:22:21

Maybe you are looking for