Code comparison ....please help

Hi All,
I will be really grateful if someone could go through the following codes (2 different places) and tell me why in CODE 1 i am able to append rows to the Webdynpro ALV on clicking on the Append Rows button while nothing happens at all on doing the same in case of CODE 2.
*********************CODE 1**************************************
METHOD wddoinit .
  DATA: l_ref_cmp_usage TYPE REF TO if_wd_component_usage.
  l_ref_cmp_usage =   wd_this->wd_cpuse_alv2( ).
  IF l_ref_cmp_usage->has_active_component( ) IS INITIAL.
    l_ref_cmp_usage->create_component( ).
  ENDIF.
  DATA: l_ref_interfacecontroller TYPE REF TO iwci_salv_wd_table .
  l_ref_interfacecontroller =   wd_this->wd_cpifc_alv2( ).
  DATA : l_value TYPE REF TO cl_salv_wd_config_table.
  l_value = l_ref_interfacecontroller->get_model(
  DATA : lr_table_settings TYPE REF TO if_salv_wd_table_settings.
  lr_table_settings ?= l_value.
  lr_table_settings->set_read_only( abap_false ).
  DATA: lr_column_settings TYPE REF TO if_salv_wd_column_settings,
        lr_column TYPE REF TO cl_salv_wd_column,
        lr_column_header TYPE REF TO cl_salv_wd_column_header,
        lr_input_field TYPE REF TO cl_salv_wd_uie_input_field.
  DATA: lr_checkbox TYPE REF TO cl_salv_wd_uie_checkbox.
  lr_column_settings ?= l_value.
**ITEM
  lr_column = lr_column_settings->get_column( 'ZZITEM' ).
  lr_column_header = lr_column->get_header( ).
  lr_column_header->set_text( 'ITEM' ).
**ZZINVAL editable
  lr_column = lr_column_settings->get_column( 'ZZINVAL' ).
  CREATE OBJECT lr_input_field EXPORTING value_fieldname = 'ZZINVAL'.
  lr_column->set_cell_editor( lr_input_field ).
  lr_column_header = lr_column->get_header( ).
  lr_column_header->set_text( 'Inicio Validade' ).
**ZZFIMVAL editable
  lr_column = lr_column_settings->get_column( 'ZZFIMVAL' ).
  CREATE OBJECT lr_input_field EXPORTING value_fieldname = 'ZZFIMVAL'.
  lr_column->set_cell_editor( lr_input_field ).
  lr_column_header = lr_column->get_header( ).
  lr_column_header->set_text( 'Fim Validade' ).
**ZZVATR
  lr_column = lr_column_settings->get_column( 'ZZVATR' ).
  CREATE OBJECT lr_input_field EXPORTING value_fieldname = 'ZZVATR'.
  lr_column->set_cell_editor( lr_input_field ).
  lr_column_header = lr_column->get_header( ).
  lr_column_header->set_text( 'Valor' ).
**ZZUATR
  lr_column = lr_column_settings->get_column( 'ZZUATR' ).
  CREATE OBJECT lr_checkbox EXPORTING checked_fieldname = 'ZZUATR'.
  lr_column->set_cell_editor( lr_checkbox ).
  lr_column_header = lr_column->get_header( ).
  lr_column_header->set_text( 'Usa Kg ATR/Ton' ).
**ZCORRIG
  lr_column = lr_column_settings->get_column( 'ZCORRIG' ).
CREATE OBJECT lr_input_field EXPORTING value_fieldname = 'ZCORRIG'.
  CREATE OBJECT lr_checkbox EXPORTING checked_fieldname = 'ZCORRIG'.
  lr_column->set_cell_editor( lr_checkbox ).
  lr_column_header = lr_column->get_header( ).
  lr_column_header->set_text( 'Gerado Correcao' ).
**invisible columns
  l_value->if_salv_wd_column_settings~delete_column( 'MANDT' ).
  l_value->if_salv_wd_column_settings~delete_column( 'BUKRS' ).
  l_value->if_salv_wd_column_settings~delete_column( 'ZZINDICE' ).
  l_value->if_salv_wd_column_settings~delete_column( 'ZZDESC' ).
  l_value->if_salv_wd_column_settings~delete_column( 'ERNAM' ).
  l_value->if_salv_wd_column_settings~delete_column( 'AEDAT' ).
  l_value->if_salv_wd_column_settings~delete_column( 'MEINS' ).
  l_value->if_salv_wd_std_functions~is_edit_append_row_allowed( ).
ENDMETHOD.
*********************CODE 2**************************************
METHOD wddoinit .
  DATA: l_ref_cmp_usage TYPE REF TO if_wd_component_usage,
        l_ref_interfacecontroller TYPE REF TO iwci_salv_wd_table ,
        lr_table_settings TYPE REF TO if_salv_wd_table_settings,
        lr_column_settings TYPE REF TO if_salv_wd_column_settings,
        lr_column TYPE REF TO cl_salv_wd_column,
        lr_column_header TYPE REF TO cl_salv_wd_column_header,
        lr_input_field TYPE REF TO cl_salv_wd_uie_input_field,
        lv_bool TYPE boolean,
        l_value TYPE REF TO cl_salv_wd_config_table.
  l_ref_cmp_usage =   wd_this->wd_cpuse_alv( ).
  IF l_ref_cmp_usage->has_active_component( ) IS INITIAL.
    l_ref_cmp_usage->create_component( ).
  ENDIF.
  l_ref_interfacecontroller = wd_this->wd_cpifc_alv( ).
  l_value = l_ref_interfacecontroller->get_model(
lr_table_settings ?= l_value.
  lr_table_settings->set_read_only( abap_false ).
lr_table_settings->set_enabled( abap_true ).
**set individual fields as editable
***Set field SAFRA as editable
  lr_column_settings ?= l_value.
**ITEM
  lr_column = lr_column_settings->get_column( 'ZITEM' ).
  lr_column_header = lr_column->get_header( ).
  lr_column_header->set_text( 'ITEM' ).
**SAFRA
  lr_column = lr_column_settings->get_column( 'ZZSAFRA' ).
  CREATE OBJECT lr_input_field EXPORTING value_fieldname = 'ZZSAFRA'.
  lr_column->set_cell_editor( lr_input_field ).
  lr_column_header = lr_column->get_header( ).
  lr_column_header->set_text( 'SAFRA' ).
**ZZINSAFRA editable
  lr_column = lr_column_settings->get_column( 'ZZINSAFRA' ).
  CREATE OBJECT lr_input_field EXPORTING value_fieldname = 'ZZINSAFRA'.
  lr_column->set_cell_editor( lr_input_field ).
  lr_column_header = lr_column->get_header( ).
  lr_column_header->set_text( 'Data Inicio' ).
**ZZFIMSAFRA editable
  lr_column = lr_column_settings->get_column( 'ZZFIMSAFRA' ).
  CREATE OBJECT lr_input_field EXPORTING value_fieldname = 'ZZFIMSAFRA'.
  lr_column->set_cell_editor( lr_input_field ).
  lr_column_header = lr_column->get_header( ).
  lr_column_header->set_text( 'Data Fim' ).
**invisible columns
  l_value->if_salv_wd_column_settings~delete_column( 'MANDT' ).
  l_value->if_salv_wd_column_settings~delete_column( 'BUKRS' ).
  l_value->if_salv_wd_column_settings~delete_column( 'ERNAM' ).
  l_value->if_salv_wd_column_settings~delete_column( 'AEDAT' ).
l_value->if_salv_wd_std_functions~set_pdf_allowed( abap_false ).
  l_value->if_salv_wd_std_functions~is_edit_append_row_allowed( ).
l_value->if_salv_wd_std_functions~set_edit_insert_row_allowed( abap_true ).
ENDMETHOD.
This is really frustrating. Help is really appreciated.
Regards,
Priyank

Hi Sascha,
I know i might be sounding really weird on this. But as I see it now, even the second code has stopped working. Means now I am not able to append rows in either of the cases. What i did was to create another container in the view and then put some elements in it. After the problem, i reverted back and removed the container (just to check if that was the cause of the problem) and now I find that what was initially working is not so any more.
1) I am using direct setting of node via interface controller
2) Cardinality of both nodes mapped to the ALVs are 0:N
3) Yes the structure of both nodes are different. Both nodes are based on different structures returned from different RFCs? Should this matter too much?
Any ideas?
regards,
Priyank

Similar Messages

  • What's wrong with my code? please help....

    when display button is clicked it must diplay the remarks but it didn't happen...
    what's wrong with my code? please help
    here is my code.....
    import java.applet.Applet;
    import java.awt.*;
    import java.awt.event.*;
    public class Area extends Applet implements ItemListener,ActionListener
         {Label arlbl = new Label("AREA");
          Choice archc = new Choice();
          Label extlbl = new Label("EXPENDITURE TYPE");
          CheckboxGroup extchk = new CheckboxGroup();
              Checkbox fchk = new Checkbox("FOOD",extchk,true);
              Checkbox schk = new Checkbox("SHELTER",extchk,false);
              Checkbox echk = new Checkbox("EDUCATION",extchk,false);
              Checkbox uchk = new Checkbox("UTILITIES",extchk,false);
          Label exalbl = new Label("EXPENDITURE AMOUNT");
          TextField exatf = new TextField("",20);
          Label remlbl = new Label("REMARKS");
          TextField remtf = new TextField("",30);
          Button disbtn = new Button("DISPLAY");
          Button resbtn = new Button("RESET");
          String display;
          public void init()
              {add(arlbl);
               archc.add("MANILA");
               archc.add("MAKATI");
               archc.add("QUEZON");
               archc.add("PASAY");
               add(archc);
               archc.addItemListener(this);
               add(extlbl);
               add(fchk);
               fchk.addItemListener(this);
               add(schk);
               schk.addItemListener(this);     
               add(echk);
               echk.addItemListener(this);
               add(uchk);
               uchk.addItemListener(this);
               add(exalbl);
               add(exatf);
               add(remlbl);
               add(remtf);
               add(disbtn);
               disbtn.addActionListener(this);
               add(resbtn);
               resbtn.addActionListener(this);
         public void itemStateChanged(ItemEvent ex)
              {int n = archc.getSelectedIndex();
               if(n==0)
                   {if(fchk.getState())
                         {exatf.setText("10000.00");
                         display = archc.getSelectedItem();
                   if(schk.getState())
                        {exatf.setText("15000.00");
                        display = archc.getSelectedItem();
                   if(echk.getState())
                        {exatf.setText("24000.00");
                        display = archc.getSelectedItem();
                   if(uchk.getState())
                        {exatf.setText("8500.00");
                        display = archc.getSelectedItem();
              if(n==1)
                   {if(fchk.getState())
                        {exatf.setText("5000.00");
                        display = archc.getSelectedItem();
                   if(schk.getState())
                        {exatf.setText("11000.00");
                        display = archc.getSelectedItem();
                   if(echk.getState())
                        {exatf.setText("7500.00");
                        display = archc.getSelectedItem();
                   if(uchk.getState())
                        {exatf.setText("24000.00");
                        display = archc.getSelectedItem();
              if(n==2)
                   {if(fchk.getState())
                        {exatf.setText("13000.00");
                        display = archc.getSelectedItem();
                   if(schk.getState())
                        {exatf.setText("7000.00");
                        display = archc.getSelectedItem();
                   if(echk.getState())
                        {exatf.setText("27000.00");
                        display = archc.getSelectedItem();
                   if(uchk.getState())
                        {exatf.setText("6000.00");
                        display = archc.getSelectedItem();
              if(n==3)
                   {if(fchk.getState())
                        {exatf.setText("6000.00");
                        display = archc.getSelectedItem();
                   if(schk.getState())
                        {exatf.setText("9000.00");
                        display = archc.getSelectedItem();
                   if(echk.getState())
                        {exatf.setText("15000.00");
                        display = archc.getSelectedItem();
                   if(uchk.getState())
                        {exatf.setText("19000.00");
                        display = archc.getSelectedItem();
         public void actionPerformed(ActionEvent e)
              {if(e.getSource() == disbtn)
                    {String amtstr = exatf.getText();
                     int amt = Integer.parseInt(amtstr);
                        {if(amt > 8000)
                             {remtf.setText(display + " IS ABOVE BUDGET");
                        else
                             {remtf.setText(display + " IS BELOW BUDGET");
              if(e.getSource() == resbtn)
                   {archc.select(0);
                   fchk.setState(true);
                   schk.setState(false);
                   echk.setState(false);
                   uchk.setState(false);
                   exatf.setText("");
                   remtf.setText("");
    Edited by: lovely23 on Feb 28, 2009 11:24 PM

    Edit: thanks for cross-posting this question on another forum. I now see that I wasted my time trying to study your code in the java-forums to help you with an answer that had already been answered elsewhere (here). Do you realize that we are volunteers, that our time is as valuable as yours? Apparently not. Cross-post again and many here will not help you again. I know that I won't.

  • Photoshop CS6 could not update successfully.  Error codes Adobe Photoshop 13.0.1.3 Installation failed. Error Code: U44M1P7  Extension Manager 6.0.8 Update Installation failed. Error Code: U44M1P7  Please help me figure out how to call customer service. 

    Photoshop CS6 could not update successfully.  Error codes Adobe Photoshop 13.0.1.3 Installation failed. Error Code: U44M1P7  Extension Manager 6.0.8 Update Installation failed. Error Code: U44M1P7  Please help me figure out how to call customer service.  I would prefer to talk to someone directly.

    Are you using any disk cleaner or optimization tools like CleanMymac or Mackeeper?
    Regards,
    Ashutosh

  • Cannot restore my brand new iphone 4s ,got stuck in DFU mode and itunes shows error code (-1) please help?

    Cannot restore my brand new iphone 4s ,got stuck in DFU mode and itunes shows error code (-1) please help?
    repeatedly tried from diffierent computers and the same error code pops up (error -1)

    That's a hardware problem which will require a trip to the Apple store for evaluation, unless your phone has been jailbroken, then it's a corrupt hosts file (and we can't help you with that here as it is against the forum's terms of use).

  • I cannot restore my Iphone 4, I keep getting the error code 1611, please help and the Iphone keeps displaying the "Plug-In Itunes Symbol!??

    I cannot restore my Iphone 4, I keep getting the error code 1611, please help and the Iphone keeps displaying the "Plug-In Itunes Symbol!??

    http://tinyurl.com/nyj36v

  • Why when I change my debit card banking details and the postal code of where I stay is rejected,yet I know it is the correct postal code?please HELP me.

    Why is it that when I'm changing my debit card details and my postal address I receive a message that says my postal code is not valid?and yet I'm certain of what my postal code is.Please help.Regards,

    Ztshosane wrote:
    ... I receive a message that says my postal code is not valid?...
    Try here  >  http://support.apple.com/kb/TS1646
    If necessary... Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • HT1338 I receive this message ,repeatedly,when I try to update an App through App store:Error code 1009.Please help,what should I do?

    I receive this message ,repeatedly,when I try to update an App through App store:Error code 1009.Please help,what should I do?

    The App Store is not available in Iran.

  • Trying to download ios 3 getting error code 8288  please help

    Have a first generation ipod touch, trying to download ios 3 to computer getting error code 8288, please help.

    I finally solved this on my own. I installed iTunes 9.2 on my Mac. You can get it from here:
    http://support.apple.com/kb/dl1056
    Then I went to the iOS 3 purchase page here:
    http://support.apple.com/kb/HT2052
    and clicked the Purchasing link. It opens up iTunes. I connected my iPod touch G1 and did a check for system update. Miraculously, it found it this time and downloaded the update.
    No guarantee that this'll work for you, but I'm finally able to use my iPod touch again and put on some useful apps.

  • Hi.my itunes appear this error ERROE CODE:1009 please help me

    hi.my itunes appear this error ERROE CODE:1009 please help me

    Read my post. I don't know if you're having the same problem but I hope this helps. http://discussions.apple.com/thread.jspa?threadID=1351705&tstart=0
    Message was edited by: Happyfish

  • I ordered mac OS and I got the email for License and I didnt get the attachement for content code. Please help me getting the content code.

    I ordered mac OS and I got the email for License and I didnt get the attachement for content code. Please help me getting the content code.

    It's a two email process, one email has a locked pdf with the redemption code. The second email has the password to unlock the pdf. They come separetly, so you may have to wait for the 2nd to arrive.

  • Problem in Crystal Report 11 Logon failed Vendor Code 4060- Please help

    We are using VB 6.0 as front end, SQL 2005 Express edition as a data base server back end and crystal report 11 as reporting tool on Windows XP with SP2. The problem is, In the local system where DB exits the report generates fine. But if DB in network system the report will not work and it will ask for connection information (Provide necessary information to Logon to the chosen data source). We are using ODBC to connect the report. And if we give the correct password the report will generate
    I have checked all your help file and sample code but solution not found. please help as soon as possible
    Regards
    Karthik

    Hi Karthik,
    Ensure the report is using the correct connection information. For example, the data source name, server name, database name, and user name are correct.
    In a database-client test tool, ensure that the fields, tables, and procedures used by the report exist and that SQL queries can be executed against them.
    In the Crystal Reports designer, verify that the SQL query, as shown under the Database menu Show SQL Query option, does not contain syntax errors.
    If the SQL query shown in Crystal Reports is valid, execute the same SQL query through a database-client test tool.
    Is report working fine in designer?
    Which database connection are you using?
    Regards,
    Shweta

  • Blue screen error code. Please help.

    late 2008 version.
    Recently my school reinstalled windows 7 but after he did that, there was some blue screen error code which only appears while running on windows and everything is fine on the mac side.
    He reinstalled windows 7 again but the blue screen error code started again. He said that it could be that my apple disc is not original which caused the error code, however last year they were able to installed windows 7 without any issue. He also said that it could be the hard drive problem.
    Another problem I have is that while on windows the hard disk drives doesn't show the mac too.
    Please help! Much appreciated if any of you can help me out.

    Unless you run a VM such as Parallels, you're not going to be able to see your Mac disk using Boot Camp. If I were you, I'd see about getting Parallels Desktop and installing Windows 7 on it. You can then inter-operate with both systems.
    Clinton

  • HT1339 ipod not recognized by my computer, it says "Windows has stopped this device because it has reported problems. (Code 43)" please help

    please help...
    my computer is not recognizing my ipod classic gen 5. it shows the sad face then i did the basic troubleshooting until logo comes out...
    still my computer is not recognizing my ipod.. it still says "Windows has stopped this device because it has reported problems. (Code 43)"

    See here: iPod displays a sad iPod icon
    Note that it's often a good sign of a hardware issue with the iPod's hard drive meaning the iPod will need to be serviced or replaced.
    B-rock

  • I forgot my ipod 5 passcode. i do all the steps itunes tells my to do. when i get to the right page and it says "restore ipod" i click it. it works for about 11minutes left and then it says like 'error cod erXX011210021" PLEASE HELP ME!!!!!!!!!!!

    my iPod is I 5th generation. I forgot my passcode and typed in the wrong thing too many times, so now on the lock screen it says "connect to iTunes" I did all the steps your supposed to. I unplugged all cord from iPod connecting to my computer, I held the home button and plugged my iPod back in, and then I keep holding the home button until the iTunes sign showed up. I got to the right page and then clicked restore. A small window came up saying " restore and update" I clicked it, I agreed to the terms and agreements and the updating started. The updated finished with =out a problem. I t was when I clicked "restore " that I had a problem. The restoring lasted until I had about 10 or 11 minutes left. that is when I saw a alert of my screen saying "iTunes could not finish restoring,. an unknown error occurred. error code: 0xE8000065" I tried restoring and updating my iPod about three or four times now! PLEASE, PLEASE, PLEASE HELP ME!!!!!!!!!!!!!!!!!!!!!!!!!!!

    See this support document, iTunes: Resolve USB-related alerts - Apple Support or this one regarding the same error and Windows. iOS: Unknown error containing '0xE' when connecting to a Windows PC - Apple Support

  • Problem in Code..Please help..urgent...:(

    Hello All,
    Please refer to the below code:
    package com.sap.NewOrderAssignment;
    import java.io.Serializable;
    import java.util.Calendar;
    import java.util.Date;
    import java.util.Locale;
    import java.util.GregorianCalendar;
    import com.sapportals.htmlb.*;
    import com.sapportals.htmlb.enum.TableColumnType;
    import com.sapportals.htmlb.table.DefaultTableViewModel;
    import com.sapportals.htmlb.table.TableColumn;
    public class BeanOrderDetails implements Serializable
    { public Date toDay, orderDate;
    public String toDayAsString;
    public IListModel deliveryAddress;
    public TextEdit address;
    public DefaultTableViewModel orderLines;
    public Locale locale;
    public String poNumber, model, qty;
    public Object colTitle[] = {"Model","Description","Qty (pcs)","AD Price","Net Price","Total amount","Indication ETA","12 NC","Part Del","GIM","# A-box","Pcd/A-box"};
    public BeanOrderDetails()
    { Calendar cal = new GregorianCalendar();
    toDay = cal.getTime();
    String year = String.valueOf(cal.get(Calendar.YEAR));
    String month = String.valueOf(cal.get(Calendar.MONTH)+1);
    String day = String.valueOf(cal.get(Calendar.DAY_OF_MONTH));
    toDayAsString = year"-"month"-"day;
    deliveryAddress = new DefaultListModel();
    deliveryAddress.setSingleSelection(true);
    deliveryAddress.addItem("1", "Delivery Address1");
    deliveryAddress.addItem("2", "Delivery Address2");
    deliveryAddress.addItem("3", "Delivery Address3");
    //company address
    address = new TextEdit("Company Address");
    address.setRows(4);
    address.setCols(40);
    String line1 = "KPIT Cummins Infosystems Ltd.";
    String line2 = "MIDC, Hinjewadi";
    String line3 = "Pune, India";
    address.setText(line1line2line3);
    address.setEnabled(true);
    //Table creation
    Object data[][] = {{"HQ8894","Sensotec Dry Rota Shaver","500","1,512.00","1,498.00","749.00","08-08-2005","885889401710","N","Y","","50"}};
    orderLines = new DefaultTableViewModel(data, colTitle);
    TableColumn columnModel = orderLines.getColumnAt(1);
    TableColumn columnDesciption = orderLines.getColumnAt(2);
    TableColumn columnQty = orderLines.getColumnAt(3);
    TableColumn columnADPrice = orderLines.getColumnAt(4);
    TableColumn columnNetPrice = orderLines.getColumnAt(5);
    TableColumn columnTotalAmunt = orderLines.getColumnAt(6);
    TableColumn columnETA = orderLines.getColumnAt(7);
    TableColumn column12NC = orderLines.getColumnAt(8);
    TableColumn columnPartDel = orderLines.getColumnAt(9);
    TableColumn columnGIM = orderLines.getColumnAt(10);
    TableColumn columnABox = orderLines.getColumnAt(11);
    TableColumn columnAmountInBox = orderLines.getColumnAt(11);
    TableColumn columnPcsBox = orderLines.getColumnAt(12);
    columnModel.setType(TableColumnType.INPUT);
    columnModel.setWidth("150");
    columnQty.setType(TableColumnType.INPUT);
    columnDesciption.setWidth("300");
    public void setLocale(Locale l)
    { locale = l;
    public Locale getLocale()
    { return locale;
    public void setOrderDate(Date od)
    { orderDate = od;
    public Date getOrderDate()
    { return orderDate;
    public void setOrderLines(DefaultTableViewModel mm)
    { orderLines = mm;
    public DefaultTableViewModel getOrderLines()
    { return orderLines;
    public void setAddress(String adr)
    { address.setText(adr);
    public void setTextEditAddress(TextEdit adr)
    { address = adr;
    public TextEdit getTextEditAddress()
    { return address;
    public String getAddress()
    { return address.getText();
    public void setDeliveryAdresses(IListModel model)
    { deliveryAddress = model;
    public IListModel getdeliveryAddresses()
    { return deliveryAddress;
    public void setPoNumber(String pon)
    { this.poNumber = pon;
    public String getPoNumber()
    { return this.poNumber;
    public void setModel(String m)
    { this.model = m;
    public void setQty(String quantity)
    { this.qty = quantity;
    public void getNewRow()
    { Object data[][] = { {"","Sensotec Dry Rota Shaver ABC","","1,512.00","1,498.00","749.00","08-08-2005","885889401710","N","Y","","50"}};
    this.setQty("");
    this.setModel("");
    TableColumn columnModel = orderLines.getColumnAt(1);
    TableColumn columnDesciption = orderLines.getColumnAt(2);
    TableColumn columnQty = orderLines.getColumnAt(3);
    TableColumn columnADPrice = orderLines.getColumnAt(4);
    TableColumn columnNetPrice = orderLines.getColumnAt(5);
    TableColumn columnTotalAmunt = orderLines.getColumnAt(6);
    TableColumn columnETA = orderLines.getColumnAt(7);
    TableColumn column12NC = orderLines.getColumnAt(8);
    TableColumn columnPartDel = orderLines.getColumnAt(9);
    TableColumn columnGIM = orderLines.getColumnAt(10);
    TableColumn columnABox = orderLines.getColumnAt(11);
    TableColumn columnAmountInBox = orderLines.getColumnAt(11);
    TableColumn columnPcsBox = orderLines.getColumnAt(12);
    columnModel.setType(TableColumnType.INPUT);
    columnModel.setWidth("150");
    columnQty.setType(TableColumnType.INPUT);
    columnDesciption.setWidth("300");
    The above code creates a table. It actually maps the various fields as the TableColumn.
    Question:
    I have added a button which appears below this table.
    Name of button = AddNewLine
    Now, when this button is clicked, a new empy row should appear in the table.
    My stmts in method - getNewRow() are not working.
    Please help me do so.
    Please help...its kinda urgent.
    Thanks and Warm Regards,
    Ritu R Hunjan

    Hi Ritu,
             First up all I don't see any code where exactly you have added a button in the table.
             Secondly as a general thing,looking on to ur scenario you have initialize the table on the event of clicking the button ie)in ur getNewRow() just initialize your code for building an empty row of the table.
    Regards,
    guru

  • I am facing problem in starting ShellHWDetection service Error code 1075,please help

    I am facing problem in starting ShellHWDetection service Error code 1075,please help

    Shellhwdetection is a Windows service which stands for Shell Hardware Detection Service.
    It provides notifications for AutoPlay hardware events.
    System error code 1075 means "The dependency service does not exist or has been marked for deletion."
    Please run services.msc, then find Shell Hardware Detection Service, view its dependencies
    Make sure the three services are set to running "automatic" in Services.
    If this doesn't help, then run sfc to check if there're some missing or corrupted files in system.
    Yolanda Zhu
    TechNet Community Support

Maybe you are looking for