Blank Rows in Table on Range Change After Add

I have a table and to add rows to it, you click on an add button, enter the information and then click save. After clicking save you return to the first page of the table. If you click on the Next option and change the table range, the table only shows the first record (in that new range) but the rest of the lines are all blank with no data. So for example, if my range is 5 and I have 8 records, after hitting the next button I see the 6th record and then 2 more rows but they are blank. How do I refresh the data after the range change to show the rest of the records properly? (Note, this appears to only happen after adding new records).

Since there is a sequence try this url, this will do the job:
see section "4.12.5 Assigning the Primary Key Value Using an Oracle Sequence"
http://download.oracle.com/docs/cd/E17904_01/web.1111/b31974/bcentities.htm#insertedID12

Similar Messages

  • Blank row in table UI Element

    Hi All,
    I am having a UI table element in my screen. Below that i ve some input fields. When i lead select a row in table, the input field data changes accordingly.
    When i do not have a row in the table, am getting an error message saying no value for the input field.
    So when there is no row in table, if i append a blank row. It is working fine. Can anyone give someother solution for this issue.??
    Because in this solution we have a blank row in table when the table is empty. We do not want this blank row
    Am binding the table and the input fields below to the same node. (So that the table row data automatically reflects in the input fields below).

    hii ,
    u shud try using this :
    1 create a context attribute , say attr1 ,of type string under a separate node of cardinality 1..1 or 1..n ,say context node is cn_all.
    2 bind this attribute  attr1 with the value property of the ur UI element INput Field's .
    3 set the value of ur attribute of attr1 in ONLEAD SELECT of the  TABLE .
      DATA lo_nd_cn_all TYPE REF TO if_wd_context_node.
        DATA lo_el_cn_all TYPE REF TO if_wd_context_element.
        DATA ls_cn_all TYPE wd_this->element_cn_all.
        DATA lv_attr1 LIKE ls_cn_all-attr1.
    *   navigate from <CONTEXT> to <CN_ALL> via lead selection
        lo_nd_cn_all = wd_context->get_child_node( name = wd_this->wdctx_cn_all ).
    *   get element via lead selection
        lo_el_cn_all = lo_nd_cn_all->get_element(  ).
    *   set single attribute
        lo_el_cn_all->set_attribute(
          EXPORTING
            name =  `ATTR1`
          IMPORTING
            value = lv_attr1).
    in this way , u wud not be creating the empty rows , also wud not get runtime error for ur Input field
    regards,
    amit

  • Add blank Row in table.

    Hi,
    I want to Add Blank row in my table so i can add corresponding data into them and on click of commit button it should get updated in database.
    In table I have primary key as a sequences generated for that i already added expression in my Attribute of EO.
    Please suggest me some code so i can achieve this.
    Jdev :- 11.0.0.3
    Thanks
    Ramit Mathur

    Since there is a sequence try this url, this will do the job:
    see section "4.12.5 Assigning the Primary Key Value Using an Oracle Sequence"
    http://download.oracle.com/docs/cd/E17904_01/web.1111/b31974/bcentities.htm#insertedID12

  • Blank Row in table during Master Data Load

    I am having some success with my master data loads, but when I maintain the master data I have noticed that every table has had a blank row inserted.
    Does anybody know why and what I should do with the row (i.e. delete it)?

    This blank row is by default created and you can no way delete it.  Though you delete it, a new row with blank values will be appended.  This is required for some technical reason while reading the table within ABAP programs. 
    This is applicable only for SAP tables and may not be required for custom developed ones unless you want to use this in screen programs.
    Regards,
    Raj

  • Blank Row in table control

    Hi,
      Could anybody tell me how to add a n  number of blank lines to the table control UI element on some event. I have tried with the method CREATE_ELEMENT but its clearing the table control.
    I have two nodes called   "lines" and "table".  "Lines" node contains attribute "Count". and this attribute is binded to inputfiled "INP".
    When i click on button , based on inputfield value (INP)  that many blank rows should get appended to the table control.
    Can anybody advice me how can i get this ?
    Can anybody send me the sample code of CREATE_METHOD if its correct approach.
    Thanks and Regards
    Sireesha.

    Hi Saurav,
       Thanks a lot for your reply.  I am very Sorry to miss one point in my first thread. With the CREATE_ELEMENT its adding the blank rows to the table control but its adding in the second page. I thought its clearing the table control entries but in fact the blank rows are getting added in the second page.
    My doubt is how to add blank rows only in the first page.  I have unchecked the "footerVisible" property for the table control. so when i add rows to the table i cannt see the new rows.
    How to add blank rows only in the first page...?
    Thanks for your help.
    Regards
    Sireesha.

  • Blank row in table....

    Hi all,
           I have a serious problem with the table UI.
    In screen 1 ,I have  a table where I multiselect the table rows and press "next Button" this action leads to the Screen 2, where a summary of the previously selected rows is displayed..
    Here I get a blank row as my first row along with the selected rows.
    This is some wht URGENT...
    Thanks in advance

    hi gopi
    when you get element from the table the indexing is from 1,2,3etc. and not from 0,1,2.so the line get element at index=1 retrieves the first element ,get element at index=2 retrieves the second element and so on.
    use one more variable say int k=1  to retrieve elements and use i for count.
    instead of this line
    element.setDelivery(wdContext.nodeHeader_Data().getHeader_DataElementAt(i).getDeliv_Numb());
    use k to get element say as follows
    element.setDelivery(wdContext.nodeHeader_Data().getHeader_DataElementAt(k).getDeliv_Numb());
    the modified code may be
    for (int i = 0,int k=1; i < size; i+,k+) {
    if (wdContext.nodeHeader_Data().isMultiSelected(i) || i == leadSelection) {
    element = wdContext.nodeItemdata().createItemdataElement(new Bapishipmentitem());
    element.setDelivery(wdContext.nodeHeader_Data().getHeader_DataElementAt(k).getDeliv_Numb());
    wdContext.nodeItemdata().addElement(element);
    regards
    saravana.

  • How to insert one blank row in table using ODataModel?

    Hi,
    I have a table in which the data is being shown using ODataModel. Now I want to add a new row dynamically when user clicks on 'New' button. For this I know using JsonModel it would be something like below where every field in the table is almost  blank as I want users to enter the data in it and later I want to save the data in the model at server:
    var tableModel = table.getModel();
      var tableData = timeSheetTable.getModel().getData();
      tableData.modelData.push({"workItem":"item5","day1":"","day2":"","day3":"","day4":"","day5":"","day6":"","day7":""});
       tableModel.setData(tableData);
      timeSheetTable.setModel(tableModel);
    How this thing can be achieved using ODataModel? I can't push data like what is shown above.
    I tried searching examples for this but no luck. Any help would appreciated.
    Thanks,
    Supriya Kale

    Hi,
    I have a table in which the data is being shown using ODataModel. Now I want to add a new row dynamically when user clicks on 'New' button. For this I know using JsonModel it would be something like below where every field in the table is almost  blank as I want users to enter the data in it and later I want to save the data in the model at server:
    var tableModel = table.getModel();
      var tableData = timeSheetTable.getModel().getData();
      tableData.modelData.push({"workItem":"item5","day1":"","day2":"","day3":"","day4":"","day5":"","day6":"","day7":""});
       tableModel.setData(tableData);
      timeSheetTable.setModel(tableModel);
    How this thing can be achieved using ODataModel? I can't push data like what is shown above.
    I tried searching examples for this but no luck. Any help would appreciated.
    Thanks,
    Supriya Kale

  • Why EIGRP metric didn't change after add delay?

    Here is the lay out:
    --R2--
    E1---R1---E2/ \E3
    --R3--
    I have added delay for R2's E2 interface, but when I check the EIGRP topology from R1 for E3, the metric didn't change and they are still the same for R2 and R3.
    Do I miss anything?

    You've discovered that ascii diargams don't work on the forum. :-)
    Remember that EIGRP always takes its metric from the inbound interface. In this case, R2 and R3 take their "connected metric" to E3, and advertise it to R1. R1 takes its delay from E2, and adds it to the delay R2 and R3 advertised. R2's metrics on E2 have no bearing or impact on R1's metric for E3.
    R2's metric on E2 will have an impact on R2's cost to reach E1, however.... Always consider the direction the update is going, and then add cost on the inbound side of one of the hops if you want to traffic engineer, rather than the outbound side.
    Russ.W

  • Af:table range change

    Hi I have a table which has 200+ records displaying 20 records perpage. I am setting the values to that table from my backing bean. The problem is that, When ever the range is changed, the next 20 records are displayed but the request doesnot seem to be completed. I mean the seek bar at the bottom showing the progress infinitely. I am calling the method which which sets the values to the table in the tables's range change listener method. The followin is the code.
    public void onRangeChanged(RangeChangeEvent rangeChangeEvent) {
    this.setTableValues();
    please help me...
    Thanq.

    Hi,
    if the browser shows busy then for sure its not caused by the code snippet you provide. In your code you may want to try and call response complete on the FacesContext to indicate a complete response
    Frank

  • WebDynpro Java: how to remove blank element from Table and Dropdown.

    Hi  Folks
    In a webdynpro application,
    I created a table and witten the below code to populate the table
         IPrivateDummyView.IFirst_TableElement First_Table_Element = null;
         First_Table_Element = wdContext.nodeFirst_Table().createFirst_TableElement();
         First_Table_Element.setF_Value("One");
         wdContext.nodeFirst_Table().addElement(First_Table_Element);
         First_Table_Element = wdContext.nodeFirst_Table().createFirst_TableElement();
         First_Table_Element.setF_Value("2");
         wdContext.nodeFirst_Table().addElement(First_Table_Element);
    As per the code, i got 2 row in the table.
    But , i have one Empty row on top of the table ,  how to get ride of this.
    i find the same problem happening with dropdown too, where i used DDBI, i populated a the content as mention, but i initial 2 row as blank and then i have my own elements ,as per my code.

    >
    > how to remove blank element from Table and Dropdown
    >
    Change selection property of related node to from 0..1 to 1..1 (mandatory)
    Re: DropdownByIndex and empty line (Thread: DropdownByIndex and empty line )
    Re: Can the empty selection be removed from element dropdownbykey(Thread: Can the empty selection be removed from element dropdownbykey )
    Edited by: Anagha Jawalekar on Nov 18, 2008 10:28 PM

  • How to set total number of rows of table control

    Hi All,
    I want to set the total number of rows of table control. I don't want to display the blank rows in table.
    Regards,
    Shrinivas

    Need some fine tuning regarding the scrollbar height but it's a start
    Unless this isn't what you asked for
    Small number of rows
    Large number of rows
    Attachments:
    PlayingWithTable.vi ‏17 KB

  • Insertion of a blank row after change of persk field in a HR report

    Hi,
    I want to Insert of a blank row after change of persk field in a HR report.
    Any suggestions??
    rgrds,
    pranjal

    Hi,
    use this....
    INSERT INITIAL LINE INTO <tab> INDEX <idx>.

  • Sap.m.Table generating first two blank rows after adding more rows.

    Hi everyone,
                          I am stucked in a very bad condition the problem is with the table rows and columns. I am generating dynamic table columns and rows based on searched unit so whenever i am searching i created a function for initializing the table rows and columns i am looping the array for whatever the size of rows and columns it will display up to 5. My issue is with the request going is adding more times then the required one. So if anyone can check for the solution. Only problem is my data is generated correct but next time i call this method again it is hiding the first 2 rows.
    function initializeGrid() {
        if (SHOPFLOOR_DCS_UNIT_KEY != null) {
            var dcsComboBox = sap.ui.getCore().byId("selectDCSName");
            var dcsName = dcsComboBox.getValue();
            var viewData = {};
            viewData.EntityName = "DataCollectionSetAttribute";
            viewData.Condition = [{ColumnName : "DcsName",Value :dcsName}];
            viewData.Projection = {AttributeName:true,AttributeType:true,Length:true,Precision:true,LowerLimit:true,
                    UpperLimit:true,DefaultValue:true };
            $
            .ajax({
                type : "POST",
                url : "/demo/xsds/designer/SelectByQueryService.xsjs",
                contentType : "application/json",
                data : JSON.stringify(viewData),
                dataType : "json",
                success : function(data) {
                    /*dcDataTable.unbindItems();
                    dcDataTable.removeAllItems();
                    dcDataTable.removeAllColumns();*/
                    var dcsCols = data;
                    if (data != null
                            && data.length > 0) {
                        var firstColumn = [{
                            "AttributeName": "SerialNumber",
                            "ModifiedAttributeName": "SerialNumber"
                        for (var index = 0; dcsCols.length > index; index++) {
                            var currentRow = dcsCols[index];
                            if (currentRow.AttributeName != null
                                    && currentRow.LowerLimit != null
                                    && currentRow.UpperLimit != null) {
                                dcsCols[index].ModifiedAttributeName = currentRow.AttributeName
                                + "["
                                    + currentRow.LowerLimit
                                    + " - "
                                    + currentRow.UpperLimit
                                    + ","
                                    + "Def:"
                                    + currentRow.DefaultValue
                                    + "]";
                                firstColumn
                                .push(dcsCols[index]);
                            } else if (currentRow.AttributeName != null) {
                                dcsCols[index].ModifiedAttributeName = currentRow.AttributeName
                                + "["
                                    + "Def:"
                                    + currentRow.DefaultValue
                                    + "]";
                                firstColumn
                                .push(dcsCols[index]);
                            if (currentRow.AttributeType != null
                                    && currentRow.AttributeType == "LocalDate")
                                dateAttributes[dateAttributes.length] = currentRow.AttributeName;
                        dcsCols = firstColumn;
                        runtimeDCS = dcsCols;
                        console.log("dcsCols", dcsCols);
                        var viewData = {};
                        viewData.EntityName = dcsName;
                        viewData.Cmd="GET";
                        viewData.UnitKey=SHOPFLOOR_DCS_UNIT_KEY;
                        $.ajax({
                            type : "POST",
                            url : "/demo/xsds/designer/AddOrRemoveDCSDataService.xsjs",
                            contentType : "application/json",
                            data : JSON.stringify(viewData),
                            dataType : "json",
                            success : function(data) {
                                console.log("dcsVals"+
                                        JSON.stringify(data)+data.length);
                                dcDataTable.removeAllColumns();
                                for (var i = 0; i < data.length; i++) {
                                    for (key in data[i]) {
                                        var textValue = data[i][key];
                                        if (typeof textValue !== "object"
                                                && typeof textValue === "string"
                                                && textValue
                                                .indexOf("/Date(") > -1) {
                                            var startIndex = textValue
                                            .indexOf("(");
                                            var endIndex = textValue.indexOf(")");
                                            var tempValue = textValue.substring(startIndex + 1,endIndex);
                                            var tempDate = new Date(parseInt(tempValue));
                                            data[i][key] = tempDate.toDateString();
                                dcsModel.setData({dcsRows : data});
                                sap.ui.getCore().setModel(dcsModel);
                                var columnList = new sap.m.ColumnListItem();
                                dcDataTable.bindItems({
                                    path: "/dcsRows/",
                                    template: columnList,
                                for (var i = 0; i < dcsCols.length && i<5; i++) {
                                    dcDataTable.addColumn(new sap.m.Column({
                                        header : new sap.m.Label({
                                            text : dcsCols[i].ModifiedAttributeName
                                    columnList.addCell(new sap.m.Text({
                                        text : {
                                            path : dcsCols[i].AttributeName
                                clearItems();
                            },error : function(response) {
                                console.log("Request Failed==>",response);
                                if (response.responseText.indexOf('<html>') == -1)
                                    console.log(JSON.stringify(response.responseText));
                                else
                                    console.log("Invalid Service Name");
                },error : function(response) {
                    console.log("Request Failed==>",response);
                    if (response.responseText.indexOf('<html>') == -1)
                        console.log(JSON.stringify(response.responseText));
                    else
                        console.log("Invalid Service Name");
        else {
            console.log("Data not found!!!");

    No, even with the select box gone the table still doesn't show the last two rows, so this seems indeed be irrelevant to the question.
    Best Regards,
    S.
    ***update***
    I tried to create a simple case in which the same strange behavior occurs but I can't seem to reproduce it. The table that produces the two blank rows is part of a complex application and I tried to extract enough of it for a simple test case that behaves the same way but I can't manage to do that. I guess that once I have the behavior I will also know what causes it.
    It seems that the iterator is set to rangesize 10 but the table rests on rangesize 12, when I looked at other tables in the application it seems that if I want to set the rangesize from 57 to 50, it remains on 57.
    Can anyone help me with either this limited info or otherwise instruct me to get more info ?
    Best Regards,
    S.
    Edited by: matdoya on Dec 1, 2008 5:51 AM

  • Getting Blank Rows and Good Rows in the same bound table

    Hi, a little brief here I am a developer at Oracle and am trying to use ADF and Oracle BC's on my webpages.
    I am using Oracle TopLink and ADF to display the contents of several tables. The issue I encounter is that TopLink for some reason (I hypothesize memory constraints) does not return the actual contents of the rows but instead nulls to the front end for my ADF Read-Only Table on the page. The number of rows is correct but only the first 11 rows are displayed and after that the rows are completely blank, I cannot navigate to the third set of rows (the second set of rows I can navigate to because there is one good row there) and when I select one of the blank rows and try to perform an action it gives null for the contents of the actual row and throws an exception. How can I resolve this issue?
    I have tested that I can see the full contents of the table correctly on another page with less content, but when I put the table on the page that has multiple iterators and also BC's on it only the first 11 rows are visible. Is there an easy solution to this issue, why does it occur, and why is there no error thrown when the null rows are given to the page? Does anyone know of a solution to this issue?

    Resolved the issue, the problem was that I had a refresh that was on ALWAYS on the component, I change the refresh to a RENDER MODEL refresh and now can see the whole table.

  • How to set current row in table after use tab key on inputText

    Hello all,
    My first post .., I'm newbie in ADF and I will try to explain my problem.
    For the moment we use ADF 11g (11.1.1.4), in a jsff page I have a table with an inputText column.
    On the valueChangeListener of the inputText, I invoke a method in a viewScope bean which call an EJB method, make some services in the EJB on the line modified. After that I refresh the VO and the table (because others values on the line have been modified) and reset the focus on the same inputText modified by the user with javaScript because focus was lost after refresh.
    So far, everything works fine.
    When I use the arrow keys to change the selected row in the table, it's work fine (focus is still in the next or previous inputText), but if user try to use tab key to change the current line, the inputText on the next line have the focus but the current row of the table is not changed (I think it's normal).
    My question : how can I change the current row after tab key pressed in this case ?
    I don't know if it's really clear, not easy to explain, don't hesitate to ask more details.
    Thanks in advance.

    Frank Nimphius wrote:
    Hi,
    My question : how can I change the current row after tab key pressed in this case ?
    Use a client event to listen for the keyboard entry and intercept the tab. The use af:serverListener to call the server to set the rowKey on the table and issue a PPR for the table to re-paint
    See sample 11 on http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html#CodeCornerSamples
    to learn about how to use the client listener and server listener
    FrankHi,
    Thanks a lot for your advices, I used the client and server listener
    I used this code on the method call in order to change the selection after key tab pressed, I don't know if it can be easier, but it works.
              if (LOGGER.isDebugEnabled()) {
              LOGGER.debug("START changeSelectedRow");
              RowKeySet oldRowKeySet = myTable.getSelectedRowKeys(); // get oldRowKeySet
              if (oldRowKeySet == null) {
                   if (LOGGER.isDebugEnabled()) {
                        LOGGER.debug("oldRowKeySet is null");
                   return;
              RowKeySetImpl newRowKeySet = new RowKeySetImpl(); // The new RowKeySet use to change the selectedRow
              DCIteratorBinding bindingIterator = ADFUtils.findIterator(MY_ITERATOR);
              bindingIterator.setRangeSize(-1);
              // set the new index of the current row.
              int index = bindingIterator.getCurrentRowIndexInRange();
              if (index < bindingIterator.getAllRowsInRange().length - 1) {
                   index++;
              bindingIterator.setCurrentRowIndexInRange(index);
              // get the current row after changed the index
              Row currentRow = bindingIterator.getCurrentRow();
              if (currentRow != null) {
                   ArrayList nextLst = new ArrayList(1);
                   nextLst.add(currentRow.getKey());
                   newRowKeySet.add(nextLst);
                   // set the new selectedRow
                   myTable.setSelectedRowKeys(newRowKeySet);
                   SelectionEvent selectionEvent = new SelectionEvent(oldRowKeySet, newRowKeySet, myTable);
                   selectionEvent.queue();
                   AdfFacesContext.getCurrentInstance().addPartialTarget(myTable);
              if (LOGGER.isDebugEnabled()) {
                   LOGGER.debug("END changeSelectedRow");
    Best Regards
    Benjamin

Maybe you are looking for

  • Slowness while accessing the Responsiblities and further activities in EBS

    Hi , we are using Apps 12.0.4 & Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi and running PMF module. It is a two node architecture with db running on one node and CP,FORMS,admin , web on the other node. The db node is having 4 CPUS and 8

  • Snow Leopard 10.6.8 on Mac Mini 2012

    Hello! I've a new Mac Mini and I'd like to run it on Snow Leopard. Is it possible to install 10.6.8 on Mac Mini 2012?

  • Iweb has lost my site for the 3rd time...

    i can't even open i web now... it's all grey.... i can't retrieve the new web pages I spent 2 days making. i can't get rid of the old site/pages that I don't want it's just really not good enough...

  • Various errors after upgrade (stale file handle, corrupt file)

    Hi, I performed a system update a couple of days ago and since then have not been able to access certain directories (it seems to be only my home directory and any directory in my Dropbox) using graphical file browsers (tested with thunar and nautilu

  • Merge sort not working

    so i've been trying to write a merge sort algorithm for linked lists for an assignment and i'm so fing close, but it's really frustrating me because it isn't working correctly. i have a sort and a merge method and i'm doing this recursively. can some