Changes not reflected in alv after calling check change method

Hi to all experts,
i have alv report with two editable fields ( checkbox and qty to print) when i  check the checkbox and dont change the qty to print i m able to see the changes . but when i change the checkbox and qty to print fields (both ) im unable to see the changes . what could be the reasons for this .please help ........
user_command
FORM user_command USING r_ucomm TYPE sy-ucomm
                    rs_selfield TYPE slis_selfield  .
  DATA: p_ref1 TYPE REF TO cl_gui_alv_grid.
  DATA: l_menge(4).
  CASE r_ucomm .
    WHEN 'SEL_ALL'.
      fl_sel = 'X'." setting up the flag for all selection.
      PERFORM sel_rec.
*      rs_selfield-refresh = 'X'.
    WHEN  'DES_ALL'.
      fl_del = 'X'.
      PERFORM del_sel.
*      rs_selfield-refresh = 'X'.
    WHEN 'EXEC' .
      IF p_ref1 IS INITIAL.
        CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
          IMPORTING
            e_grid = p_ref1.
      ENDIF.
      IF p_ref1 IS NOT INITIAL.
        CALL METHOD p_ref1->check_changed_data.
      ENDIF.
      LOOP AT it_output INTO wa_output WHERE cbox EQ 'X'.
        READ TABLE it_mard INTO wa_mard WITH KEY matnr = wa_output-matnr.
        IF sy-subrc EQ 0.
          wa_smart-lgpbe = wa_mard-lgpbe.
        ENDIF.
        wa_smart-matnr =  wa_output-matnr.
        wa_smart-maktx =  wa_output-maktx.
        wa_smart-meins =  wa_output-meins.
        wa_smart-bldat =  wa_output-bldat.
        wa_smart-no_cop = wa_output-menge1.
        APPEND wa_smart TO it_smart.
        CLEAR wa_smart.
      ENDLOOP.
      CHECK fl_del NE 'X'.
      IF 1x3 = 'X'.
        PERFORM print_smartform1x3.
      ELSE.
        PERFORM print_smartform2x4.
      ENDIF.
  ENDCASE.
fieldcatalog
wa_fieldcat-col_pos   =  1  .
  wa_fieldcat-fieldname =  'CBOX'  .
  wa_fieldcat-tabname   =  'IT_OUTPUT' .
  wa_fieldcat-outputlen =   '1' .
  wa_fieldcat-seltext_m =    'SELECTION'.
  wa_fieldcat-checkbox  =    'X'.
  wa_fieldcat-edit      =    'X' .
  wa_fieldcat-input       = 'X'.
  APPEND wa_fieldcat TO it_fieldcat.
  CLEAR wa_fieldcat.
  wa_fieldcat-col_pos     =    2.
  wa_fieldcat-fieldname   =    'MENGE1'.
  wa_fieldcat-datatype             = 'INT4'.
  wa_fieldcat-seltext_m   =      'QTY TO PRINT'.
  wa_fieldcat-tabname     =    'IT_OUTPUT'.
  wa_fieldcat-edit        =    'X'.
  wa_fieldcat-input       = 'X'.
  APPEND wa_fieldcat TO it_fieldcat.
  CLEAR wa_fieldcat.
  wa_fieldcat-col_pos   =  3  .
  wa_fieldcat-fieldname =  'MBLNR'  .
  wa_fieldcat-tabname   =  'IT_OUTPUT' .
  wa_fieldcat-seltext_m =  'MATERIAL DOCUMENT NO'.
  wa_fieldcat-outputlen =  '10'.
  APPEND wa_fieldcat TO it_fieldcat.
  CLEAR wa_fieldcat.
  wa_fieldcat-col_pos   =    4.
  wa_fieldcat-fieldname =    'BWART'.
  wa_fieldcat-tabname   =    'IT_OUTPUT'.
  wa_fieldcat-seltext_m =    'MOVEMENT TYPE'.
  wa_fieldcat-outputlen =    '3'.
  APPEND wa_fieldcat TO it_fieldcat.
  CLEAR wa_fieldcat.
  wa_fieldcat-col_pos   =  5.
  wa_fieldcat-fieldname =  'MATNR'  .
  wa_fieldcat-tabname   =  'IT_OUTPUT' .
  wa_fieldcat-seltext_m =  'MATERIAL ID'.
  wa_fieldcat-outputlen =  '10'.
  APPEND wa_fieldcat TO it_fieldcat.
  CLEAR wa_fieldcat.
  wa_fieldcat-col_pos   =  6  .
  wa_fieldcat-fieldname =  'BTEXT'  .
  wa_fieldcat-tabname   =  'IT_OUTPUT' .
  wa_fieldcat-seltext_m =  'MOVEMENT TYPE DESC'.
  wa_fieldcat-outputlen =  '10'.
  APPEND wa_fieldcat TO it_fieldcat.
  CLEAR wa_fieldcat.
  wa_fieldcat-col_pos   =    7.
  wa_fieldcat-fieldname =    'MAKTX'.
  wa_fieldcat-tabname   =    'IT_OUTPUT'.
  wa_fieldcat-outputlen =    '40'.
  wa_fieldcat-seltext_l =  'MATERIAL DESCRIPTION'.
  APPEND wa_fieldcat TO it_fieldcat.
  CLEAR wa_fieldcat.
  wa_fieldcat-col_pos     =    8.
  wa_fieldcat-fieldname   =    'MENGE'.
  wa_fieldcat-tabname     =    'IT_OUTPUT'.
  wa_fieldcat-seltext_m   =    'QUANTITY'.
  APPEND wa_fieldcat TO it_fieldcat.
  CLEAR wa_fieldcat.
  wa_fieldcat-col_pos     =    9.
  wa_fieldcat-fieldname   =    'MEINS'.
  wa_fieldcat-tabname     =    'IT_OUTPUT'.
  wa_fieldcat-seltext_m   =    'UNIT OF MEASUREMENT'.
  wa_fieldcat-ref_tabname =    'T006'.
  wa_fieldcat-outputlen =      '3'.
  APPEND wa_fieldcat TO it_fieldcat.
  CLEAR wa_fieldcat.
  wa_fieldcat-col_pos     =    10.
  wa_fieldcat-fieldname   =    'WERKS'.
  wa_fieldcat-tabname     =    'IT_OUTPUT'.
  wa_fieldcat-seltext_m   =    'PLANT'.
  wa_fieldcat-outputlen =      '4'.
  APPEND wa_fieldcat TO it_fieldcat.
  CLEAR wa_fieldcat.
  wa_fieldcat-col_pos     =    11.
  wa_fieldcat-fieldname   =    'LGORT'.
  wa_fieldcat-tabname     =    'IT_OUTPUT'.
  wa_fieldcat-seltext_m   =    'STORAGE LOCATION'.
  wa_fieldcat-outputlen =      '4'.
  APPEND wa_fieldcat TO it_fieldcat.
  CLEAR wa_fieldcat.
  wa_fieldcat-col_pos     =    12.
  wa_fieldcat-fieldname   =    'EBELN'.
  wa_fieldcat-tabname     =    'IT_OUTPUT'.
  wa_fieldcat-seltext_m   =    'PUR ORDER NO'.
  wa_fieldcat-outputlen =      '10'.
  APPEND wa_fieldcat TO it_fieldcat.
  CLEAR wa_fieldcat.
  wa_fieldcat-col_pos     =    13.
  wa_fieldcat-fieldname   =    'LIFNR'.
  wa_fieldcat-tabname     =    'IT_OUTPUT'.
  wa_fieldcat-seltext_m   =    'VENDOR'.
  wa_fieldcat-outputlen =      '10'.
  APPEND wa_fieldcat TO it_fieldcat.
  CLEAR wa_fieldcat.
  wa_fieldcat-col_pos     =    14.
  wa_fieldcat-fieldname   =    'XBLNR'.
  wa_fieldcat-tabname     =    'IT_OUTPUT'.
  wa_fieldcat-seltext_m   =    'DELIEVERY NOTE'.
  wa_fieldcat-outputlen =      '16'.
  APPEND wa_fieldcat TO it_fieldcat.
  CLEAR wa_fieldcat.
  wa_fieldcat-col_pos     =    15.
  wa_fieldcat-fieldname   =    'BLDAT'.
  wa_fieldcat-tabname     =    'IT_OUTPUT'.
  wa_fieldcat-seltext_m   =    'DOCUMENT DATE'.
  wa_fieldcat-outputlen =      '10'.
  APPEND wa_fieldcat TO it_fieldcat.
  CLEAR wa_fieldcat.
  wa_fieldcat-col_pos     =    16.
  wa_fieldcat-fieldname   =    'BUDAT'.
  wa_fieldcat-tabname     =    'IT_OUTPUT'.
  wa_fieldcat-seltext_m   =    'POSTING DATE'.
  wa_fieldcat-outputlen =      '10'.
  APPEND wa_fieldcat TO it_fieldcat.
  CLEAR wa_fieldcat.
  wa_fieldcat-col_pos     =    17.
  wa_fieldcat-fieldname   =    'USNAM'.
  wa_fieldcat-tabname     =    'IT_OUTPUT'.
  wa_fieldcat-seltext_m   =    'USER ID'.
  wa_fieldcat-outputlen =      '12'.
  APPEND wa_fieldcat TO it_fieldcat.
  CLEAR wa_fieldcat.

Hi,
Refer this wiki code ALV Grid Display with checkbox to process selected records at runtime, it will definitely help you:-
https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/alv%252bgrid%252bdisplay%252bwith%252bcheckbox%252bto%252bprocess%252bselected%252brecords%252bat%252bruntime
Regards,
Tarun

Similar Messages

  • Changes are not reflecting in QA after transport

    Hi Everyone,
    I am having an issue with the transport in PI. After making the changes in development, i exported the tpz file to Quality. The changes got reflected. Then for testing purpose some changes were done in the Quality IR. Now i again exported the tpz file from dev to QA. But the same changes are not reflecting.
    Has anyone faced such a problem? Need your help experts.

    Hello,
    Check in IR > Environment> cache status overview. Is it in green status??
    Check if the import of .tpz file is successful in quality IR??
    >>Then for testing purpose some changes were done in the Quality IR
    Also, check if there are any conflicts in the IR of quality system??
    -Rahul

  • Changes not reflected in portal after successful import

    Hello,
    I am having trouble with some transports in NWDI. I made some changes to the ESS Address Details dynpro and tested them in the development portal. I then imported them into CONS and the import ran successfully. However I cannot see the changes in the portal. I then ran the TCS Deployer and there was a long list of entries in the list of deployments for my buildspace. I then triggered the auto deployment and waited a few hours. This did not help either. I also checked to confirm that SDM was up and running which it was. Is anybody able to give me some advice on this?
    Thanks a lot,
    Ashley Butterfield

    i have faced the same problem, but after 30 hours all the deployements are done, we got some thing around 511 deployement request on the consolidation server,
    Cheers,
    Apparao

  • F4 help not reflecting in ALV Grid for fixed values specified in domain

    Hi experts,
       As per subject i have a field for which i have assigned 5 fixed values in the domain level (of that field) . The problem is when i am displaying my ALV grid output i need a F4 help and F4 Option for the same is not reflecting and i have assigned in the field catlog as shown bellow.
    wa_fcat-fieldname = 'ZDEPLOY'.
      wa_fcat-tabname = 'IT_FINAL'.
    wa_fcat-f4availabl = 'X'.
    wa_fcat-key     =  'X'.
      WA_FCAT-SELTEXT_L = 'Deployment Planned'.
      wa_fcat-outputlen = '25'.
       WA_FCAT-EDIT = 'X'.
       WA_FCAT-REF_FIELDNAME = 'ZDEPLOY'.
       WA_FCAT-REF_TABNAME = 'ZETMDEPL'.
      APPEND WA_FCAT TO IT_FIELDCAT.
      CLEAR WA_FCAT.
    for the above field the f4 help is not reflecting.
    Intrestingly i have another field which i have declared using the same procedure for which my F4 help (with fixed values ) is reflecting in the same program .with the values as shown below
        wa_fcat-fieldname = 'ZFINAL'.
      wa_fcat-tabname = 'IT_FINAL'.
      WA_FCAT-SELTEXT_L = 'Final Status'.
      wa_fcat-outputlen = '10'.
       WA_FCAT-EDIT = 'X'.
       wa_fcat-ref_fieldname = 'ZFINAL'.
       wa_fcat-ref_tabname = 'ZETMDEPL'.
      APPEND WA_FCAT TO IT_FIELDCAT.
      CLEAR WA_FCAT.
    can u plz suggest me with a solution .
    Regards,
    Edited by: abhilash aswath on Oct 20, 2010 3:32 PM
    Moderator message: please do not use SMS speak.
    Edited by: Thomas Zloch on Oct 20, 2010 3:58 PM

    hi,
    There was a mismatch of characteristics. I resolved by matching the same.

  • Essbase member modifications not reflecting in OBIEE after a refresh

    Hi ,
    I am getting the following message in my developed reports , after changing certain member names (adding / removing members also) of ENTITY dimension in essbase .
    [nQSError: 96002] Essbase Error: Unknown Member Total India Entity 1 used in query (HY000)
    After selecting the renamed members only the report is working , i.e from specified ENTITY report filters I had to select , Total India (old name : Total India Entity 1) .
    Reload server metadata or refresh is not helping ... Is there any setup , which will directly reflect these changes in dashboard without repeatedly selecting new members in analysis .
    OBIEE version : 11.1.1.6
    Essbase version : 11.1.2.1
    Thanks
    Sayak

    Hi ,
    thanks for responding .
    Just to clarify my question :
    I have a dimension named ENTITY , it has several generation under it (gen1,gen2,gen3 etc .) .
    for example , gen1 has member total region and no region .
    gen2 has UK and US region .
    gen 3 has manchester , london , new york , manhatton .
    In the report i'm using ENTITY .gen3 = manchester , london , new york , manhatton ..... this filter.
    Now , I am renaming (changing) gen 3 members like liverpool , birmigham , california , washington .
    So , after refreshing dashboard , will these member names automatically gets refreshed or i have to again manullay select them ?

  • Conversion routines do not run for ALV after upgrade

    Hi,
       We just upgraded from 4.6 to 6.0 and the custom created ALV reports which had fields like MATNR , VBELN , AUFNR now show leading Zeros. It seems the conversion routines are run before the list is displayed.
      If we add the REF_FIELD and the table in the Field Catalog, it seems to work, but that would a big change as we would have to manually change all the reports. Any suggestions.
    Regards,
    SG

    Thanks - our ticket should be getting closed out on it (our dba will be updating it), the scheduler has been running reliably since we took the steps in the doc mentioned.

  • Cannot delete file after calling JAI.create() method

    hi all
    this is the first time i write to this list
    today i began to use the JAI api on a project
    it works fine but i am not able to delete a file after using it
    my code:
    for(int i=2; i<2+filenames.size(); i++)           
                    try
                        String fName=filenames.get(i-2).toString();                   
                        if(fName!=null)
                            File file=new File(uploadDir+"\\"+fName);
                            FileInputStream f=new FileInputStream(file);
                            ps.setBinaryStream(i, f,(int)file.length());
                            PlanarImage pi = JAI.create("fileload", uploadDir+"\\"+fName);
                            System.out.println ("heigh : "+pi.getHeight());
                            System.out.println ("width : "+pi.getWidth());
                            f.close();
                    catch(NullPointerException n)
                        n.printStackTrace();
                        return;
    for(int i=0; i<filenames.size(); i++)
                    String fName=filenames.get(i).toString();  
                    File file=new File(uploadDir+"\\"+fName);
                    if(file.delete())
                        System.out.println(fName+" deleted");
                    else
                        System.out.println(fName+" not deleted");                   
                               }i use this code in a servlet that receives an image to put it in a database.
    JAI is useful to get heigth and width of it.
    the problem is that i always get the "not deleted" message.
    i'm quite sure that is a problem of the bold code (JAI code), also because, cutting it, i can delete my file
    anyone could help me?
    thanx a lot in advance
    alessandro

    excuse me another time!
    my first post was right.
    i'm not able to delete an image after creating it with JAI.create();
    i'm still lookin' for a way to close all the references to my image in order to delete it
    how?
    thanx a lot
    sandro

  • Changes are not reflecting on Script layout

    Hi Gurus,
         I made chandes in SO10 standard include this include can be used in Script,
    when ever I copied script from DEV client to Test Client changes are visible in SO10 include text But not reflecting while executing the Script through Transaction.Please suggest.
    Thank You,
    Usha.G

    >
    ushasri gadipally wrote:
    > I copied script using scc4 and created a transport request even so10 include also, But not reflecting on Script layout.t
    Check if the std. text changes are reflected in your testing server in SO10. If not you have to import the Std. Text using SCC4 as well.

  • Report changes not reflected in Portal

    Hi,
    I have a report designed in Business Intelligence Front end tool.  I have added that report to a role created in BI backend and assigned the report to that role.  I am executing the report in Portal through SSO and the report is executing successfully.
    I  made changes in the report and assigned it to the role again.  When i execute the report in portal, the changes are not reflected.  But when i check the same report in Portal using another team mate id, he is able to see the changed report.  We checked the iview of the report in portal and the changed report is there in portal.  But i donno why it is not showing up for me.   We cleared the Browser cache and checked again but the result is same.  We both have the same roles, so nothing to do with the Roles.  I think the problem is in portal, but dont have an idea on where to check it.
    Help me in this regard.  Thanks for your time.
    Regards,
    Murali

    Hello Murali,
    This is strange but please do this simple test & confirm:
    Run the iView using your colleague's id. Copy the complete URL from the browser.
    Open another fresh browser session, pasting the URL login using your credentials.
    What do you see now? Do you see the change?
    This a simple method to filter out the issue..whether its related to backend or not.
    Awaiting Reply.
    Regards,
    Ritu

  • Tax value not reflecting in Sales register

    Hi All,
    i created an order and Invoice is also generated for the same. but the TAX value for the order is not reflecting in sales report.
    i checked in V/08 the print option is ticked. what can be the problem what setting i should do to get that value in sales register?
    Thanks
    Ashwini

    Hi Ashwini,
            You mean to say output (sales register) ? if yes please check you your output program with help of ABAPer,check the condition type and value whether its picking the condition value or not.
    Thanks
    Ram

  • Alv grid - call transaction 'ME22N' and reflect the change made in alv grid

    Hi,
    <u>Scenario</u>
    I have an alv list which has fields Purchase document no. (EBELN) and Item delivery date (EINDT). EBELN field is hot spot enabled. when i click on that transaction 'ME22' is called. I have done this using USER_COMMAND subroutine.the code is given.
          FORM USER_COMMAND                                             *
    Call transaction ME22N on clicking Document number                 *
    FORM USER_COMMAND USING F_UCOMM LIKE SY-UCOMM
                    I_SELFIELD TYPE SLIS_SELFIELD.
      DATA: F_SUBRC LIKE SY-SUBRC,
            s_arseg like G_T_PORD. "the internal table used is G_T_PORD
      CASE F_UCOMM.
        WHEN '&IC1'.
          IF i_selfield-fieldname = 'EBELN'.
            READ TABLE G_T_PORD INDEX i_selfield-tabindex INTO s_arseg.
            SET PARAMETER ID 'BES' FIELD s_arseg-ebeln.
            CALL TRANSACTION 'ME22N' AND SKIP FIRST SCREEN.
          ENDIF.
      ENDCASE.
    endform.
    <u>Requirement</u>
    After calling the transaction, If the user changes the Item delivery date (EINDT) at the ME22 transaction screen, the new date needs to be reflected in the ALV grid.
    Plz help it is very urgent.

    The first method (using selfield-refresh = 'X'.) didn't work as the internal table doesnt get modified when the user make changes in Item delivery date(EINDT) at ME22 transaction screen. The 2nd method is OO,which can't be used in my case.
    I tried calling the subroutine for populating the itab (G_T_PORD) and the subroutine for displaying the alv grid immediately after calling ME22N transaction. Still it is not reflecting the new date in the output alv. The code is given below.
          FORM USER_COMMAND                                             *
    Call transaction ME22N on clicking Document number                 *
    FORM USER_COMMAND USING F_UCOMM LIKE SY-UCOMM
                    I_SELFIELD TYPE SLIS_SELFIELD.
      DATA: F_SUBRC LIKE SY-SUBRC,
            s_arseg like G_T_PORD.
      CASE F_UCOMM.
        WHEN '&IC1'.
          IF i_selfield-fieldname = 'EBELN'.
            READ TABLE G_T_PORD INDEX i_selfield-tabindex INTO s_arseg.
            SET PARAMETER ID 'BES' FIELD s_arseg-ebeln.
            CALL TRANSACTION 'ME22N' AND SKIP FIRST SCREEN.
          ENDIF.
      ENDCASE.
            refresh G_T_PORD.
            perform F1000_POPULATE_PO.
            perform F2000_DISPLAY_PO .
    endform.

  • After transport changes are not reflecting to other users

    HI all it's urgent
    One user abcd who had made some changes to some screens is not reflecting to other users after transport we have 2 clients 100 and 200 changes are reflecting in own user id we transported with scc1 transaction
    with regards
    vinod

    I am not a developer, so pardon me if I misunderstood this question. I thought screens and other repository objects are client independent. That means the change should be evident in all clients without a need to transport.
    Is this to do with security by any chance ( though it seems unlikely )? Can the other users see the change in the original client in which the request was made? That should help you determine whether the problem lies with the transport or outside. Also you can check the contents of the transport in SE01 and see if it holds the kind of data that you are expecting it to. I am guessing you have already generated the screen after saving the changes.
    Hope this helps,
    Sanket

  • DataGrid not reflecting changes after INSERT into Table. Delete from Table does.

    Wow, it's been a while.
    Hope you guys can help.
    This is my DataGrid:
    <DataGrid DataContext="{StaticResource TableAssetsViewSource}" ItemsSource="{Binding}" x:Name="TableAssetsDataGrid" AutoGenerateColumns="False" EnableRowVirtualization="True" Margin="15,10,10,10" RowDetailsVisibilityMode="VisibleWhenSelected" Grid.Column="1" HeadersVisibility="Column" CanUserResizeRows="False" IsReadOnly="True">
    <DataGrid.CellStyle>
    <Style TargetType="DataGridCell">
    <Setter Property="BorderThickness" Value="0"/>
    </Style>
    </DataGrid.CellStyle>
    <DataGrid.Columns>
    <DataGridTextColumn x:Name="NodeColumn" Binding="{Binding node}" Header="VS Number" Width="*"/>
    <DataGridTextColumn x:Name="SerialColumn" Binding="{Binding serial}" Header="Serial Number" Width="*"/>
    <DataGridTextColumn x:Name="NameColumn" Binding="{Binding name}" Header="Asset Name" Width="*"/>
    <DataGridTextColumn x:Name="TypeColumn" Binding="{Binding type}" Header="Asset Type" Width="*"/>
    <DataGridTextColumn x:Name="_dateColumn" Binding="{Binding date}" Header="Date Allocated" Width="*"/>
    <DataGridTextColumn x:Name="PoColumn" Binding="{Binding po}" Header="Purchase Order" Width="*"/>
    </DataGrid.Columns>
    </DataGrid>
    This is where I add a new Row to the Table:
    Private Sub Button_Click_1(sender As Object, e As RoutedEventArgs)
    Dim cbblocation As ComboBox = Me.FindName("LocationComboBox")
    Dim row As DataRowView = DirectCast(cbblocation.SelectedItem, DataRowView)
    Dim cbbtext As String = row.Item("node")
    Dim cbbtype As ComboBox = Me.FindName("comboBoxType")
    Dim cbbtext2 As String = cbbtype.Text
    Dim RETAILISOAMDDataSet As Retail_ISO_AMD.RETAILISOAMDDataSet = CType(Me.FindResource("RETAILISOAMDDataSet"), Retail_ISO_AMD.RETAILISOAMDDataSet)
    Dim RETAILISOAMDDataSetTableAssetsTableAdapter As Retail_ISO_AMD.RETAILISOAMDDataSetTableAdapters.tableAssetsTableAdapter = New Retail_ISO_AMD.RETAILISOAMDDataSetTableAdapters.tableAssetsTableAdapter()
    RETAILISOAMDDataSetTableAssetsTableAdapter.AddNewAsset(cbbtext, txbSerial.Text, txbName.Text, cbbtext2, Date.Today, txbPO.Text)
    node = cbbtext
    Dim mp As New MainPage
    mp.RefreshGrid(node)
    Me.Close()
    End Sub
    The RefreshGrid method:
    Public Sub RefreshGrid(node As String)
    Dim RETAILISOAMDDataSet As Retail_ISO_AMD.RETAILISOAMDDataSet = CType(Me.FindResource("RETAILISOAMDDataSet"), Retail_ISO_AMD.RETAILISOAMDDataSet)
    Dim RETAILISOAMDDataSetTableAssetsTableAdapter As Retail_ISO_AMD.RETAILISOAMDDataSetTableAdapters.tableAssetsTableAdapter = New Retail_ISO_AMD.RETAILISOAMDDataSetTableAdapters.tableAssetsTableAdapter()
    RETAILISOAMDDataSetTableAssetsTableAdapter.FillByNode(RETAILISOAMDDataSet.tableAssets, node)
    Dim TableAssetsViewSource As System.Windows.Data.CollectionViewSource = CType(Me.FindResource("TableAssetsViewSource"), System.Windows.Data.CollectionViewSource)
    Dim be As BindingExpression = BindingOperations.GetBindingExpression(TableAssetsViewSource, CollectionViewSource.SourceProperty)
    be.UpdateTarget()
    End Sub
    And this is what I use to delete a row from the table (and without doing anything special, the DataGrid auto-updates with the changes):
    Private Sub Button_Click_4(sender As Object, e As RoutedEventArgs)
    If TableAssetsDataGrid.SelectedIndex = -1 Then
    MsgBox("You have selected nothing to Delete!", MsgBoxStyle.OkOnly, "Nothing Selected")
    Else
    Dim dgv As DataGridTextColumn = Me.FindName("NodeColumn")
    Dim row As DataRowView = DirectCast(Me.TableAssetsDataGrid.SelectedItem, DataRowView)
    Dim dgvText As String = row.Item("node")
    Dim dgv2 As DataGridTextColumn = Me.FindName("SerialColumn")
    Dim row2 As DataRowView = DirectCast(Me.TableAssetsDataGrid.SelectedItem, DataRowView)
    Dim dgvText2 As String = row.Item("serial")
    Dim dgv3 As DataGridTextColumn = Me.FindName("NameColumn")
    Dim row3 As DataRowView = DirectCast(Me.TableAssetsDataGrid.SelectedItem, DataRowView)
    Dim dgvText3 As String = row.Item("name")
    Dim dgv4 As DataGridTextColumn = Me.FindName("TypeColumn")
    Dim row4 As DataRowView = DirectCast(Me.TableAssetsDataGrid.SelectedItem, DataRowView)
    Dim dgvText4 As String = row.Item("type")
    Dim dgv5 As DataGridTextColumn = Me.FindName("_dateColumn")
    Dim row5 As DataRowView = DirectCast(Me.TableAssetsDataGrid.SelectedItem, DataRowView)
    Dim dgvText5 As String = row.Item("date")
    Dim dgv6 As DataGridTextColumn = Me.FindName("POColumn")
    Dim row6 As DataRowView = DirectCast(Me.TableAssetsDataGrid.SelectedItem, DataRowView)
    Dim dgvText6 As String = row.Item("po")
    Dim RETAILISOAMDDataSet As Retail_ISO_AMD.RETAILISOAMDDataSet = CType(Me.FindResource("RETAILISOAMDDataSet"), Retail_ISO_AMD.RETAILISOAMDDataSet)
    Dim RETAILISOAMDDataSetTableAssetsTableAdapter As Retail_ISO_AMD.RETAILISOAMDDataSetTableAdapters.tableAssetsTableAdapter = New Retail_ISO_AMD.RETAILISOAMDDataSetTableAdapters.tableAssetsTableAdapter()
    RETAILISOAMDDataSetTableAssetsTableAdapter.RemoveAsset(dgvText, dgvText2, dgvText3, dgvText4, dgvText5, dgvText6)
    Dim cbb As ComboBox = Me.FindName("cbbLocation")
    Dim row7 As DataRowView = DirectCast(cbb.SelectedItem, DataRowView)
    Dim cbbtext As String = row.Item("node")
    RefreshGrid(cbbtext)
    End If
    End Sub
    --------- End of Edit
    It is bound to a Dataset which gets it's data from a SQL Database.
    Loading the Data and Filtering the data based on certain conditions work 100%. The problem I am having is as follows:
    I have a form on the Page that takes input and inserts a row into the Database. When this happens, the DataGrid won't automatically reflect the changes (even if I recall the Fill Method of the Dataset). No matter what I do, I have to refresh the entire page
    and THEN Fill the Dataset to see any changes.
    This is what strikes me as odd...
    When I do a delete row operation on the Database (Custom Method on the Dataset with conditions), and just Fill the Dataset again (without doing anything special), the row deletes and the changes is reflected IMMEDIATELY.
    What am I doing wrong here? Why would Delete Row reflect the changes on the DataGrid but no Insert Row?
    Thanks in Advance.
    (P.S. I am very rusty with my developing skills, I haven't done this in YEARS)

    >>And what about the the most important question, how exactly is TableAssetsViewSource defined in the XAML markup and what is
    its Source property set or bound to? And what about the reproducable sample...?
    Here is the Markup of the TableAssetsViewSource:
    <Page.Resources>
    <local:RETAILISOAMDDataSet x:Key="RETAILISOAMDDataSet"/>
    <CollectionViewSource x:Key="TableRegionsViewSource" Source="{Binding tableRegions, Source={StaticResource RETAILISOAMDDataSet}}"/>
    <CollectionViewSource x:Key="TableLocationsViewSource" Source="{Binding tableLocations, Source={StaticResource RETAILISOAMDDataSet}}"/>
    <CollectionViewSource x:Key="TableAssetsViewSource" Source="{Binding tableAssets, Source={StaticResource RETAILISOAMDDataSet}}"/>
    </Page.Resources>
    The ItemsSource of the DataGrid is bound to the TableAssetsViewSource:
    <DataGrid DataContext="{StaticResource TableAssetsViewSource}" ItemsSource="{Binding}" x:Name="TableAssetsDataGrid" AutoGenerateColumns="False" EnableRowVirtualization="True" Margin="15,10,10,10" RowDetailsVisibilityMode="VisibleWhenSelected" Grid.Column="1" HeadersVisibility="Column" CanUserResizeRows="False" IsReadOnly="True">
    Just remember, this code was auto-generated with the drag & drop onto the Page, so I did little in terms of setting the actual bindings.
    All in all, what I have done so far works as intended, except that when I want to add a row to the table it does not reflect, and that it only shows after refreshing/restarting the application.
    I will try and put together a reproducable sample.

  • I updated the spelling of a song in my itunes but its not reflecting when i check my ipod. this never happened before when after i updated to IOS5. please help.

    i updated the spelling of a song in my itunes but its not reflecting when i check my ipod. this never happened before when after i updated to IOS5. please help.

    Try unsyncing the sone and then resyncing. That works sometimes. Sometimes restoring from backup works. Other times nothing seems to work.. Yuo are not alone since iOS5 and iTunes 10.5/6.

  • Changes via SM30 of ztable is not reflected after saving...

    Hello experts,
    I am trying to modify a z table because the users told me that when they
    try to modify it using its maintenance view their changes is not being saved.
    Now, I checked the table and it has 3 fields(excluding MANDT) and I found out all of
    them are primary keys. So my question is, what modification will I do to the table
    to let users change the existing records of the ztable?
    Again, thanks guys and take care!

    Hi again,
    1. Ya, no problem.
    2. After changing the keys to non-primary,
      thru se11,
      and activating,
      it will give warning,
    3. hence, after that u will have to
      do it using SE14.
    4. Data will not get lost.
    5. The only IMPORTANT THING
      is that
      the data in the primary keys
      should be unique, after your changes.
    regards,
    amit m.

Maybe you are looking for

  • Iphone 6 screen problem. Please Help!

    Dear apple community, I cannot tap screen on my iphone 6 when texting or just navigating. This often happens and my solution is to off and on the screen. But its annoying. Can someone tell me how to fix it permanently?

  • PhPMyAdmin and Yahoo webhosting

    I am using Yahoo to host my website and I can not figure out how to connect to Mysql database directly through yahoo. Any ideas? Has anyone been able to connect direct? I do not have MySql or PhPMyAdmin installed on my computer.

  • Billing related accounting documents

    Hi Guru's while billing to customer, some times MP (Exice ) document is not generating and in some instances RV (customer) document is not generating.. request you plase let me know the probable reasons on this issue and how to resolve it? It's an ur

  • Epson 1640xl does't work with image capture.

    I have an epson 1640XL scanner. I know the epson scan utiliy doesn't work with Snow Leopard. I have been instructed to use Image Capture. I see the scanner on the left, and when it "overview" scan's the image the scanner makes noise but doesn't produ

  • Problem adding SATA drive

    Hi all First time poster, long time lurker. Hoping someone here can shed a bit of light on an unusual problem I am having. Before I outline the problem I will say that my system is running beautifully, I've not got any problems with it in its current