Igrid displaying deleted row on browser refresh

Hi Guys,
I am deleting a row from iGrid using delete row(). but when I click applet refresh, the deleted row is again displayed. Please let me know how to make the set of records not to display. Do I need to use session in this case.
Regards
Mallik

hi,
ok, i have got your point.
if you just want to delete the row in the UI level, so the method: grid.getGridObject().deleteRow(row) will help you.  you said that when you refresh the applet you once again get the deleted row appears in your grid. i think that is absolutely yes. because when you refresh the applet , it will reload the data from the db, or from the query you have used.
may you can try like this:
function Hide()
            var row = grid.getGridObject().getSelectedRow();
            grid.getGridObject().deleteRow(row);
function Show()
          grid.updateGrid(true);
have a nice day!
Edited by: Jeremy Good on Aug 22, 2008 12:58 AM

Similar Messages

  • How to display the result of  excutions(insert/update/delete rows)

    Hello.
    Does anyone know how to display the result of scenario executions just like a scenario executions tab of package (insert/update/delete rows) in other screen (in the intergated operating platform for operators using http)
    In additional, I also like to show the hierarchy of scenario in the same view.
    So, I need the query using the information of the ODI repository.
    If it is possible, I also like to have the decription of the tables in the ODI repository.
    Can anyone tell me how can I get the information of the counts of excution?
    Thanks in advance.

    Hi,
    You can get that information from the API getPrevStepLog. Does it work for you?
    Download the last API reference manual from:
    http://www.oracle.com/technology/products/oracle-data-integrator/10.1.3/htdocs/1013_support.html#docs

  • DISPLAY AND DELETE ROW ISSUE

    Moderator message: please do not post subject in all capitals
    Dear friends
    i have created report for transfering data from one database table to another database table i.e. detail table.
    after executing Master data list will appear and after clicking on master data record it shows detail data with edit fields where i can enter my own data and after clicking save button i can pass that data to database table and at the same time data goes in display mode. I want that enterd data not to delete bye delete row button please tell me how can i avoid deletion of data.
    Thanks
    regards
    Rohan
    Edited by: Matt on Jan 19, 2009 1:51 PM

    Hi ,
    You csn hide the Delete button so that it will not delete the line...
    Please have a look at this example ...BCALV_EDIT_05. You need to append exclude table and pass in the set_table_for_first_display method like below...
      ls_exclude = cl_gui_alv_grid=>mc_fc_loc_delete_row.
      append ls_exclude to t_exclude.
    call method g_grid->set_table_for_first_display
           exporting is_layout             = gs_layout
                     it_toolbar_excluding  = lt_exclude
           changing  it_fieldcatalog       = gt_fieldcat
                     it_outtab             = gt_outtab[].
    hope this helps you,.
    Raj

  • How to invoke delete rows event in ALV_GRID

    I have two screens.
    The first screen 100 have several splitter control ALV grids that display data.
    The second screen 200 is the maintenance of screen on 100 that have two grids side by side need to update simultanously.
    When I update or insert data on the second screen, I refresh data on screen 100 so that when user navigate to screen 100 they can see the updated data.
    For insert rows or modified rows, it works as expected.
    However when I delete rows on screen 200 and click go back to 100, screen 100 still shows the rows that I deleted in screen 200.  I think that I missed something. 
    I debug in even data_changed in cl_gui_alv_grid when I deleted, it did not go through this logic therefore I cannot refresh the other grids on screen 100.
    Here are the events that I defined and registered in the PBO of screen 200.
    class lcl_event_handler definition.
    class-methods:
    on_data_changed FOR EVENT data_changed
               OF cl_gui_alv_grid   IMPORTING er_data_changed e_ucomm,
    on_user_command for event user_command of cl_gui_alv_grid importing e_ucomm.
    endclass.
    set handler:
    lcl_event_handler=>on_data_changed for go_grid,
    lcl_event_handler=>on_user_command for go_grid.
    What did I do wrong?
    Thanks,

    Hi Akinosora,
    >
    Akinosora wrote:
    > When I update or insert data on the second screen, I refresh data on screen 100 so that when user navigate to screen 100 they can see the updated data.
    >
    > For insert rows or modified rows, it works as expected.
    >
    > However when I delete rows on screen 200 and click go back to 100, screen 100 still shows the rows that I deleted in screen 200.  I think that I missed something. 
    Don't you need to do a refresh of the data for a delete action as well?
    Kind regards,
    Robert

  • How to Delete rows in the database table by using Table Control

    Hi Experts,
    I wrote one program.
    In that program i used table control.
    I displayed data from database table in the table control, but i want to delete selected rows.
    Can anybody please tell me this by writing sample code
    thank you
    Basu

    Hi ,
    Pls try this coding below or check the prg demo  - RSDEMO02 in se38
    WHEN 'DELL'.
    * remove marked lines
          LOOP AT IT_SPFLI WHERE MARKED = 'X'.
            DELETE IT_SPFLI.
          ENDLOOP.
          IF SY-SUBRC <> 0.
            GET CURSOR FIELD FLD LINE LINNO OFFSET OFF.
            SET CURSOR FIELD FLD LINE LINNO OFFSET OFF.
            IF FLD CP 'IT_SPFLI*' AND SY-SUBRC = 0.
              LINNO = LINNO + TC_SPFLI-TOP_LINE - 1.
              DELETE IT_SPFLI INDEX LINNO.
              TC_SPFLI-LINES = TC_SPFLI-LINES - 1.
            ENDIF.
          ENDIF.
    or another eg :
    MODULE USER_COMMAND_0100 INPUT.
        SAVE_CODE = OK_CODE.
        CLEAR OK_CODE.
        CASE SAVE_CODE.
    WHEN 'DELE'.
                CALL FUNCTION 'COPO_POPUP_TO_GOON'
                    EXPORTING
                         TEXTLINE1 = 'Selected rows will be deleted!'
                         TEXTLINE2 = 'Are you sure?'
                         TITEL     = 'Delete rows'
                    IMPORTING
                         answer    = confirmation.
                IF CONFIRMATION = 'G'.
                    REFRESH ITAB_PHONELIST.
                    CLEAR ITAB_PHONELIST.
                ENDIF.
    MODULE EXTRACT_USERDATA INPUT.
        CASE SAVE_CODE.
            WHEN 'DELE'.
                IF SELECTION IS INITIAL AND
                   confirmation = 'G'.
                     CLEAR ITAB_PHONELIST.
        ITAB_PHONELIST-NAME = RECORD-NAME.
        ITAB_PHONELIST-PHONE = RECORD-PHONE.
        ITAB_PHONELIST-EMAIL = RECORD-EMAIL.
        APPEND ITAB_PHONELIST.
    <b>Reward pts if found usefull :)</b>
    regards
    Sathish

  • Delete row in report........

    i have report, i have to delete row without page loading. i have wrote the application process(on demand). but i dont know how to write the javascript for htmldb items...
    my req is when i click the delete button the checked row(using check box) should delete without page load. i use ajax to call the javascript to process the plsql code.
    can any one pls help me to modify the below javascript coding....
    application process
    begin
    for i in 1..htmldb_application.g_f01.count
    loop
      delete from service
      where service_code = htmldb_application.g_f02(htmldb_application.g_f01(i));
    end loop;
    end;
    javascript
    function get_repd(){
    var get = new htmldb_Get(null,html_GetElement('pFlowId').value,'APPLICATION_PROCESS=REP_D',0);
    }thanks and regard.
    skud.

    Hi Skud,
    I will have to say your observation is incorrect. The whole purpose of doing the DML via Application Process using ajax technique is to avoid a page refresh, otherwise it would simply be a page level after submit process.
    I have just tested and its working as expected, i.e
    1. You select one or more records
    2. Use the delete button to delete
    3. Records get deleted from DB, you get a message
    4. Only the report region get refreshed. (However this could delay for a few seconds if the dataset is larger and server is very busy)
    If you are however using APEX 4.x you could use dynamic actions to get it done. My work environment is still on 3.x so my solution is using classic method.
    If you are still having issue could you please let me know which browser you are using?
    Cheers
    Ligon

  • BC4J delete row in a different VO

    Hi,
    I have a UIX/BC4J browse form with an "expert SQL" VO which joins several tables together, with one of the tables being the primary or driving table (ie a list of agreements which also displays customer data and personnel data from different tables). I want to have a "delete" button to delete the selected row. I understand that I can't use my custom VO, I have to have another VO based on the base entity of the table I want to delete from. I just don't have the nouse right now to understand how to take the "key" of the selected row in my custom VO and then direct the entity-based VO to delete the selected row. Am I on the right track or should I be writing a Java class to achieve what I want? (I would prefer to have a UIXML solution).
    Thanks,
    Steve

    Hey, I think I am getting the hang of this now. I managed to fix it by adding the entity to my custom VO (it was originally based only on a query) then including the primary key attribute in the VO. The UIX form was then able to delete rows from the VO, no additional coding necessary. Nice!
    Steve

  • BPM Object Presentation - array items - (add / delete rows dynamically)

    Hi,
    We have a BPM Object presentation which uses a 'group' inner object to display ROWS of data. The presentation has an 'array0' created by default to handle the 'group' of rows. It also has the '+' and '-' buttons by default.
    There is a field at the upper level which shows the 'sum' of values in individual rows. It needs to 'REFRESH' when an add (+) or deletetion (-) or rows happen.
    But we see that all the controls (text boxes etc which are wired to the 'inner' bpm object of the group and the +/- buttons are one unit 'array0'. And the only method if at all, is an 'Event Listner' which is not showing any methods related to BPM Object.
    Can anyone help us with a clue as to how to handle the '+' and '-' events or wire the 'array/group' events to code - any clue with 'events'?
    This is a little urgent as it is an issue and we need to fix the same. Appreciate any quick responses/clues.
    Thanks in advance,
    -user8702013.

    The SUM field needs refresh() method to be called to reflect the new value whenever we are adding/deleting rows.
    To call this method for to show the reflection we have to declare a method on BPM object level which receives a argument of type ‘Fuego.Util.GroupEvent’, then in this method you can have your logic(here refresh() method is required to show new value on deletion/addition, hence this method is being called). This method can then be wired (it shows up) to the 'Event Listener' of the group/array.
    The newly created method will be called whenever a new row is added/deleted (Event will be fired hence method call).

  • Delete rows from table...Bizarre problem.

    Folks
    i HAVE this bizarre problem.
    I hava a Java class which displays data read into a table with a delete
    option by the side of each row.
    Now lets assume you have 3 rows in the Table.
    abc deleteButton
    efg deleteButton
    xyz deleteButton
    When I click the first delete,that row gets deleted from the table.(perfect...)
    Now I have 2 rows.
    When I click on the first row,I get the error
    'You clicked -1'
    java.lang.ArrayIndexOutofBoundsException: -1 < 0.
    Can anyone tell me why this is happening even though there are rows in the table.???
    ActionListener al = new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    System.out.println("You clicked row : " + table.getSelectedRow());
    javax.swing.table.TableModel model = table.getModel();
    Object o = model.getValueAt(table.getSelectedRow(),0);
    //System.out.print(model.getValueAt(table.getSelectedRow(), 0));
    //System.out.println();
    MyDeleteFunction(o.toString());
    // Delete row from window.
    ((DefaultTableModel)table.getModel()).removeRow(table.getSelectedRow());
    table.revalidate();
    table.repaint();

    Hi ritu,
    This class is called
    new DisplayCall_IDTodisconnect(hashTable);
    its a long file.
    its attached below.
    The rows are displayed by reading a hashtable into a vector
    and the vector is iterated and appended..
    public class DisplayCall_IDToDisconnect {
    public static JTable createTable(Vector data, String buttonLabel, ActionListener action){
    return createTable(data.iterator(), buttonLabel, action);
    public static JTable createTable(
    Iterator dataIterator,
    String buttonLabel,
    ActionListener action) {
    DefaultTableModel model = new DefaultTableModel() {
    public boolean isCellEditable(int row, int col) {
    return col == 1;
    model.setColumnCount(2);
    while (dataIterator.hasNext()) {
    Object[] row = { dataIterator.next().toString(), null };
    model.addRow(row);
    DefaultTableColumnModel columnModel = new DefaultTableColumnModel();
    columnModel.addColumn(new TableColumn(0, 100));
    columnModel.addColumn(new TableColumn(1, 80,
    new TableButtonCellRenderer(buttonLabel),
    new TableButtonCellEditor(buttonLabel, action)
    JTable table = new JTable(model, columnModel) {
    public void valueChanged(ListSelectionEvent e) {
    super.valueChanged(e);
    table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    return table;
    private static class TableButtonCellRenderer implements TableCellRenderer {
    final JButton button;
    TableButtonCellRenderer(String buttonLabel) {
    button = new JButton(buttonLabel);
    public Component getTableCellRendererComponent(
    JTable table,
    Object value,
    boolean isSelected,
    boolean hasFocus, int row, int column) {
    return button;
    private static class TableButtonCellEditor
    extends AbstractCellEditor
    implements TableCellEditor, ActionListener {
    final JButton button;
    final ActionListener callback;
    TableButtonCellEditor(String buttonLabel, ActionListener callback) {
    button = new JButton(buttonLabel);
    this.callback = callback;
    button.addActionListener(this);
    public Component getTableCellEditorComponent(
    JTable table,
    Object value,
    boolean isSelected,
    int row, int column) {
    return button;
    public Object getCellEditorValue() {
    return null;
    public void actionPerformed(ActionEvent e) {
    button.getParent().requestFocus();
    callback.actionPerformed(e);
    static JTable table;
    Vector items;
    final ClientManager clientMgr;
    // Constructor.
    public DisplayCall_IDToDisconnect(Hashtable callLegTable,ClientManager clientMgr){
    Vector vCSeqnos = displayCSeqNos(callLegTable);
    this.clientMgr = clientMgr;
    JFrame frame = new JFrame("Disconnect Options");
    /*Vector*/ items = new Vector();
    Enumeration vEnum = vCSeqnos.elements();
    while(vEnum.hasMoreElements()){
    items.add(vEnum.nextElement());
    ActionListener al = new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    //System.out.println("You clicked row ,col: " + table.getSelectedRow()+
    // table.getSelectedColumn());
    javax.swing.table.TableModel model = table.getModel();
    Object o = model.getValueAt(table.getSelectedRow(),0);
    System.out.print(model.getValueAt(table.getSelectedRow(), 0));
    System.out.println();
    closeConnection(o.toString());
    // Delete row from window too.
    ((DefaultTableModel)table.getModel()).removeRow(table.getSelectedRow());
    table.revalidate();
    table = DisplayCSeqNos.createTable(items, "Disconnect", al);
    frame.getContentPane().add(new JScrollPane(table));
    frame.pack();
    frame.show();
    } // End Constructor.
    public void closeConnection(String s){
    /*1. Disconnect the current session*/
    this.clientMgr.disconnectCall(s);
    /*2. refresh the Disconnect window*/
    this.refreshWindow();
    public Vector displayCSeqNos(Hashtable callLegTable){
    Enumeration eNum;
    String str;
    Vector v = new Vector();
    eNum=callLegTable.keys();
    while(eNum.hasMoreElements()){
    str = (String) eNum.nextElement();
    //System.out.println("Key : " + str + " Value : " + callLegTable.get(str));
    v.addElement(str);
    return v;
    } // End of displayCSeqNos.

  • Problems on deleting rows in UIX pages

    Hi,
    I am new on using BC4J, Struts and uiXML and I am having some problems on it. I have tried to make a simple create/update/delete web application.
    First, I have created a DataAction which PageForward displays a table with data from a view object. This page allows the user to select a row and request its deletion by clicking on a submit button.
    The event triggered by the submit button calls a DataAction that displays another PageForward, composed by a read-only form, that asks for confirmation. If the user confirms, a DataAction that performs the Delete method from the view is called and the deletion is successful.
    A problem occurs when I change the readonly property of the fields of the confirmation form: the row deleted is not the selected, but a random one.
    I would like to know why the readonly property of the fields change the Delete method behavior. Also, an example of a simple create/update/delete struts page flow would be appreciated.
    Thanks in advance.
    Verner.

    Verner,
    Are you using JDeveloper 10g Preview or JDeveloper 9i v9.0.3?
    I'm not sure what problem you are having, but I just tried to reproduce your application by doing the following in JDeveloper 10g Preview:
    1) Created new business components.
    2) Created a new struts-config.xml.
    3) Added to the Struts config (using the page flow modeler):
    3.a) Browse data action and page forward to browse.uix
    3.b) Confirm data action and page forward to confirm.uix
    3.c) Delete data action.
    3.d) Link from browse action to confirm action for outcome "delete".
    3.e) Link from confirm action to delete action for outcome "delete".
    3.f) Link from confirm action to browse action for outcome "cancel".
    3.g) Link from delete action to browse action for outcome "success".
    4) Then I made the delete action do the deletion by dragging the Delete operation from my data control onto the Delete data action in the page flow.
    5) Then I created my UI pages.
    browse.uix just has a read-only table created via the Data Control palette and then a delete button that fires the "delete" event when clicked. The delete handler returns the delete outcome.
    confirm.uix has a read-only form also dragged from the Data Control palette for the same data control. There's a delete and a cancel button, each of which fire an event of the same name that returns an outcome of the same name.
    When I run browseDataAction, I see my table. When I click "Delete", I see the read-only form with the details for the selected row. Clicking "Delete" from the confirmation page removes the same row I saw in the confirmation page, then goes back to the browse page showing the same range but with the given row removed.
    If you continue to see a problem, what exactly is wrong? It should be the case that (A) the row selected in the table, (B) the row whose details are shown in the confirmation page, and (C) the row that gets deleted are the same row. If it's not the case that A = B = C, please give more details about what values of these three rows you are seeing. Is A=B but not =C? Or is B=C but not =A?
    Hope this helps,
    -brian
    UIX Team

  • Undo deleting rows in Editable ALV

    Hi All,
    i have to check something (at event data_changed of cl_gui_alv_grid), after the user click delete row in an editable ALV. If any expression is true, then the deleted row should not be deleted, it should be undo.
    Have anyone a idea to undo this deleting-function.
    Best regards
    Andreas

    hi,
      SAP provides provision for overwriting the functionality of standard buttons displayed in the ALV. You have write a subroutine in which your code has to be executed. That subroutine will be executed during the runtime,
    when a standard button has been clicked.
    if you are using the function module to display the data, you have to pass the program name to I_CALLBACK_PROGRAM  ,subroutine name to I_CALLBACK_USER_COMMAND.  Refer below code.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    i_callback_program = sy-repid
    * I_CALLBACK_PF_STATUS_SET = 'SET_PF_STATUS'
    i_callback_user_command = 'USER_COMMAND1'
    i_callback_top_of_page = 'TOP_OF_PAGE'
    * I_BACKGROUND_ID = 'ALV_BACKGROUND'
    i_grid_title = i_title_vbfa
    is_layout = i_layout
    it_fieldcat = i_fldcat[]
    it_sort = i_sort
    it_events = i_event
    TABLES
    t_outtab = it_so1
    FORM user_command1 USING r_ucomm LIKE sy-ucomm
    rs_selfield TYPE slis_selfield.
    *CASE R_UCOMM .
    * WHEN '&IC1' .
    * IF rs_selfield-FIELDNAME = 'VBELN' .
    * ENDIF .
    * WHEN OTHERS .
    * ENDCASE .
    CLEAR wa_so.
    REFRESH: it_del1 .
    IF r_ucomm = '&IC1' AND rs_selfield-fieldname = 'VBELN' AND
    rs_selfield-value IS NOT INITIAL.
    READ TABLE it_so1 INTO wa_so INDEX rs_selfield-tabindex.
    IF sy-subrc = 0.
    LOOP AT it_vbfa INTO wa_vbfa WHERE vbelv = wa_so-vbeln
    AND posnv = wa_so-posnr.
    READ TABLE it_del_ful INTO wa_it_del_ful
    WITH KEY vbeln = wa_vbfa-vbelv
    posnr = wa_vbfa-posnn.
    IF sy-subrc = 0.
    CLEAR wa_del.
    MOVE wa_it_del_ful TO wa_del.
    APPEND wa_del TO it_del1.
    ENDIF.
    ENDLOOP.
    ENDIF.
    ENDIF.
    ********* SECOND ALV GRID DISPLAY ***********************************
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    i_callback_program = sy-repid
    * I_CALLBACK_PF_STATUS_SET = 'SET_PF_STATUS'
    i_callback_user_command = 'USER_COMMAND2'
    i_callback_top_of_page = 'TOP_OF_PAGE'
    * I_BACKGROUND_ID = 'ALV_BACKGROUND'
    i_grid_title = i_title_vbpa
    it_fieldcat = i_fldcat2[]
    it_sort = i_sort
    TABLES
    t_outtab = it_del_ful
    * IF sy-subrc <> 0.
    ** MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    ** WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    * ENDIF.
    ENDFORM . "USER_COMMAND1
    Regards,
    Veersh
    Edited by: veereshbabu ponnada on Feb 11, 2009 3:04 PM

  • Cannot DELETE rows from LOV on running...is it a bug ??

    One of the features I appreciated in the new version of JHeadstart is that we can now insert, modify and delete rows on LOV (even in the database).
    We have just to check on Lookup properties :
    Multi-row insert allowed
    Multi-row update allowed
    Multi-row delete allowed
    I cheked all of them and on runnig I could insert and update records in LOV.
    When I tried to delete records from LOV the system display information message "nothing to save" and in fact no records were deleted.
    Normally since I checked the delete property it should be possible to delete rows from LOV
    thanks for any Help

    Monta,
    I could reproduce this, it is a bug. Added to the fix list for the next release.
    Thanks for reporting,
    Steven Davelaar,
    JHeadstart Team.

  • Database, Dataset, Table Adaptors Error "Unable to load, Update requires a valid DeleteCommand when passed DataRow collection with deleted row"

    Microsoft Visual Basic 2010 Express.
    I am new to Visual Basic programing and i am trying to understand the relationships between Datasets, database, table Adaptors. I have to following code that is is giving me the following error" Unable to load, Update requires a valid DeleteCommand
    when passed DataRow collection with deleted rows". 
    I can track the error and its located in "OffsetTableTableAdapter.Update(MaterionOffsetDataSet.OffsetTable)" code. What am i missing?
    It seems that i can delete the data on the DataGridView Table and it only displays the correct data. but my database is not updating, even though the data grid displays differently.I can determine this because, when i save the offset database, i have all
    the previous uploads and all the rows that i wanted to delete are still there.
    My final goal is to be able to import offset data from a CSV file, save this data on the pc, send a copy of this data to a NuermicUpDown so the customer can modify certain numbers. From here they download all the date to a controller.  IF the customer
    needs to modify the imported data, they can go to a tab with a data grid view and modify the table. They will also have to option to save the modified data into a csv file.  
    Im not sure if i am making this overcomplicated or if there is a easier way to program this.
    CODE:
    Private Function LoadOffSetData()
            Dim LoadOffsetDialog As New OpenFileDialog 'create a new open file dialog and setup its parameters
            LoadOffsetDialog.DefaultExt = "csv"
            LoadOffsetDialog.Filter = "csv|*.csv"
            LoadOffsetDialog.Title = "Load Offset Data"
            LoadOffsetDialog.FileName = "RollCoaterOffset.csv"
            If LoadOffsetDialog.ShowDialog() = Windows.Forms.DialogResult.OK Then  'show the dialog and if the result is ok then
                Try
                    Dim myStream As New System.IO.StreamReader(LoadOffsetDialog.OpenFile) 'try to open the file with a stream reader
                    If (myStream IsNot Nothing) Then 'if the file is valid
                        For Each oldRow As MaterionOffsetDataSet.OffsetTableRow In MaterionOffsetDataSet.OffsetTable.Rows
                            oldRow.Delete()                       
    'delete all of the existing rows
                        Next
                        'OffsetTableTableAdapter.Update(MaterionOffsetDataSet.OffsetTable)
                        Dim rowvalue As String
                        Dim cellvalue(25) As String
                        'Reading CSV file content
                        While myStream.Peek() <> -1
                            Dim NRow As MaterionOffsetDataSet.OffsetTableRow
                            rowvalue = myStream.ReadLine()
                            cellvalue = rowvalue.Split(","c) 'check what is ur separator
                            NRow = MaterionOffsetDataSet.OffsetTable.Rows.Add(cellvalue)
                            Me.OffsetTableTableAdapter.Update(NRow)
                        End While
                        Me.OffsetTableTableAdapter.Update(MaterionOffsetDataSet.OffsetTable)
                        MainOffset.Value = OffsetTableTableAdapter.MainOffsetValue          'saves all the table offsets
    to the offset numericUpDown registers in the main window
                        StationOffset01.Value = OffsetTableTableAdapter.Station01Value
                        StationOffset02.Value = OffsetTableTableAdapter.Station02Value
                       myStream.Close() 'close the stream
                        Return True
                    Else 'if we were not able to open the file then
                        MsgBox("Unable to load, check file name and location") 'let the operator know that the file wasn't able to open
                        Return False
                    End If
                Catch ex As Exception
                    MsgBox("Unable to load, " + ex.Message)
                    Return False
                End Try
            Else
                Return False
            End If
        End Function

    Hello SaulMTZ,
    >>I can track the error and its located in "OffsetTableTableAdapter.Update(MaterionOffsetDataSet.OffsetTable)" code. What am i missing?
    This error usually shows that you do not initialize the
    DeleteCommand object, you could check this
    article to see if you get a workaround.
    >> Im not sure if i am making this overcomplicated or if there is a easier way to program this.
    If you are working CSV file, you could use OleDB to read it which would treat the CSV file as a Table:
    http://www.codeproject.com/Articles/27802/Using-OleDb-to-Import-Text-Files-tab-CSV-custom
    which seems to be easier (in my opinion).
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Right way to delete row before insert

    I create a new row with method of ViewObject.
    Row row = viewObject.createRow();Then I want to delete this row. I found there are 4 methods. Which is the right answer?
    //1.
    row.remove();
    //2.
    row.refresh(Row.REFRESH_REMOVE_NEW_ROWS);
    //3.
    row.refresh(Row.REFRESH_FORGET_NEW_ROWS);
    //4.
    row.removeFromCollection();Thanks,

    Timo, we're having a problem when deleting as you describe, maybe you can offer some advice?
    We have a button to delete a row from an editable table, this is set to immediate=true (obviously the user should be able to skip validation when doing a delete). After deleting, if the user then clicks another button to add a new row, the values from the deleted row show in the new row :(
    If we set immediate=false this seems to fix the problem, but we then get the undesirable side effect that the user has to make sure all the values in the row are correct before it can be deleted (because the validation is firing). The user experience becomes a bit strange.

  • Browser REFRESH button does not return to the same iView/Page

    Hi,
    In SDN site I have seen that in whichever menu i am in, if i use the browser refresh button i return to the same page. But this does not happen on my enterprise portal.
    Can you please let me know, how to set / configure the enterprise portal EP7 such that, if am in any iview and use the browser refresh, then i am returned to the same iview / page and not to the first page of the menu. Currently in my portal, when i hit the browser REFRESH button, it takes me to the first page/iview.
    Thanks,
    Anirban

    Dear Romano,
    Thanks for your reply. With the help of the document link that you have provided, i have been able to achieve my target partially. Currently i am able to refer to the iView and Role directly using the QuickLink and when i access that particular iView & Role using the QuickLink and then do a refresh, the same screen appears. This part is working fine. But i have one issue.
    But generally a iView/Role is accessed not via the QuickLink on the browser but by clicking on the Role on Navigation Level 1. Even though this Role has a QuickLink, it is not visible in the address bar since the QuickLink URL was not used for reaching the Role. In such a situation, when we press the REFRESH button, the iView / Role is vanished and the browser returns to the first default page of the portal.
    Can we somehow make it such that whenever the Role is accessed in the Navigation Levels, it can be accessed via QuickLinks and the QuickLink URL is displayed on the address bar ? If this can be achieved, then i guess the problem will be solved.
    I hope i have been able to get across my point. Hoping to hear a positive reply from your side.
    Thanks in advance.
    Regards,
    Anirban Kundu.

Maybe you are looking for

  • Filling checkboxes with data from database

    Hello. I need help setting a checkbox value to checked if the corresponding field has "Yes" saved in the database. I can do this with textboxes, but haven't figured out how to do it with checkboxes or drop down lists. If you can help, please do. Than

  • Crm survey table

    hi experts, i have created a survey for activity and now i want to get all data of survey file into a  internal table to print the details of survey file via report please help me regading the same ..

  • Win2008 에서 win2003으로 sqlplus 접속이 느립니다

    [접속환경] OS : Windows 2008 Client : Oracle Database 10g Client Release 2 (10.2.0.3) [DB환경] OS : Windows 2003 DB : Oracle Database 10g Release 2 (10.2.0.1.0) for Microsoft Windows 환경이 위와 같은데 클라이언트에서 서버 접속하는데 25초 가까이 소요됩니다. DB서버에서는 바로 되는데..접속된후에 쿼리 응답시간도

  • CUPS Server capacity

    I've been scouring the CUPS documents to try to find the maximum number of users supported per server. But I've failed to find a simple table that says server type X supports Y users. (I understand that there are differences between the deployment me

  • Can't copy large files from DVD

    Hi all, I'm trying to copy a 4.3 GB .tar file from a DVD onto my harddrive, but it will only copy about 1 GB before I get the error Cannot read: Input/output error I can copy smaller files just fine from the same DVD and other DVDs, but nothing too l