Issues in Deleting table rows

Hi all,
          After deleting any rows/row in the WebDynpro table it is showing one blank row showing the presence of row there already. This blank row is appearing when we add new row next time.  I don't want to appear this blank line after deleting the row. I Used
wdContext.nodename().removeElement();
removeElement() to delete the row.
          Is there any other possibilities to avoid this.
Plz let me know.

Hi,
Try this code, it may use full for you.
<b>Removing Element</b>
ITestNodeElement ele = (ITestNodeElement) wdContext.nodeTestNode().getElementAt(wdContext.nodeTestNode().getLeadSelection());
wdContext.nodeTestNode().removeElement(ele);
<b>Adding Element to the node</b>
ITestNodeElement testNodeELe = null;
testNodeELe = wdContext.nodeTestNode().createTestNodeElement();
testNodeELe.setTest1("Second ");
testNodeELe.setTest2("Third ");
wdContext.nodeTestNode().addElement(testNodeELe);
It is working fine for me.
Note: - TestNode is the node and Test1 and Test2 are the two elements in the node
Regards,
Sridhar

Similar Messages

  • Issue while deleting a row from a table

    Dear friends,
    i am getting an issue while deleting a row from a table, pls check screen shots , the first screen shot is my table contents
    when i delete 2 row , the second row is deleting properly like below screen shot
    but i want like below screen shot , Col1 contents should be like pic 1 . could any one pls let me know how to solve this issue.
    Thanks
    Vijaya

    Hi vijaya,
    please try this code, it will help you.
    DATA : it_rows  TYPE wdr_context_element_set,
              wa_rows LIKE LINE OF it_rows.
       DATA lo_nd_table TYPE REF TO if_wd_context_node.
        DATA lt_table TYPE wd_this->elements_table.
       DATA lo_el_table TYPE REF TO if_wd_context_element.
       DATA ls_vbap TYPE wd_this->element_table.
    DATA: ld_index TYPE i.
    data value TYPE sy-index.
    * navigate from <CONTEXT> to <table> via lead selection
       lo_nd_table= wd_context->get_child_node( name = wd_this->wdctx_table ).
    * @TODO handle non existant child
    * IF lo_nd_table IS INITIAL.
    * ENDIF.
    * get element via lead selection
    * alternative access  via index
    * lo_el_table = lo_nd_table->get_element( index = 1 ).
    * @TODO handle not set lead selection
       IF lo_el_table IS INITIAL.
       ENDIF.
    * navigate from <CONTEXT> to <table> via lead selection
       lo_nd_table = wd_context->get_child_node( name = wd_this->wdctx_table ).
    * @TODO handle non existant child
    * IF lo_nd_table IS INITIAL.
    * ENDIF.
       lo_nd_table->get_static_attributes_table( IMPORTING table = lt_table ).
    * @TODO handle non existant child
    * IF lo_nd_table IS INITIAL.
    * ENDIF.
    ** @TODO compute values
    ** e.g. call a model function
    * navigate from <CONTEXT> to <table> via lead selection
       lo_nd_table = wd_context->get_child_node( name = wd_this->wdctx_table ).
    * @TODO handle non existant child
    * IF lo_nd_table IS INITIAL.
    * ENDIF.
    ** @TODO compute values
    ** e.g. call a model function
    it_rows  =  lo_nd_table>get_selected_elements( ).
       CALL METHOD lo_nd_table->GET_LEAD_SELECTION_INDEX
       RECEIVING
         INDEX  = value .
      LOOP AT it_rows INTO wa_rows.
         CALL METHOD wa_rows->get_static_attributes
           IMPORTING
                  static_attributes = ls_table.
         READ TABLE lt_table INTO ls_table WITH KEY col1 = ls_table-col1.
          ld_index = value.
              ENDLOOP.
       CLEAR : ls_table-col2,
             ls_table-col2.
       MODIFY lt_table INDEX ld_index FROM ls_table.
      lo_nd_table->bind_table( new_items = lt_table set_initial_elements = abap_true ).

  • I Need Help In Deleting Table row by clicking on "Delete" button inside the

    Dear all,
    first i'm new to Swing
    i have created table with customized table model, i fill this table using 2d array, this table rows contains JButtons rendered using ButtonRenderer.java class and action listeners attached by the AbstractButtonEditor.java
    what iam trying to do is when i click on a specified button in table row i want this row to be deleted, i found some examples that uses defaultTableModelRef.removeRow(index), but iam using customized table model and the following is my code
    JTable tblPreview = new JTable();
              DbExpFormTableModel model = new DbExpFormTableModel();               
              tblPreview.setModel(model);
    //adding the edit button          
              tblPreview.getColumn("Edit").setCellRenderer(new ButtonRenderer());
              tblPreview.getColumn("Edit").setCellEditor(new AbstractButtonEditor(new JCheckBox()));
              //adding the delete button
              tblPreview.getColumn("Delete").setCellRenderer(new ButtonRenderer());
              tblPreview.getColumn("Delete").setCellEditor(new AbstractButtonEditor(new JCheckBox()));
    and here is the code of the code of my customized table model ( DbExpFormTableModel )
    public class DbExpFormTableModel extends GeneralTableModel
         public DbExpFormTableModel()
              setColumnsNames();
              fillTable();          
         private void setColumnsNames()
              columnNames = new String [5];
              columnNames[0] = "ID";
              columnNames[1] = "Database ID";
              columnNames[2] = "Prestatement";
              columnNames[3] = "Edit";
              columnNames[4] = "Delete";
         private void fillTable()
              int numOfRows = 2;     // = getNumberOfRows();
              data = new Object[numOfRows][5];          
              data[0][0] = "1"; //we must get this value from the database, it is incremental identity
              data[0][1] = "AAA";
              data[0][2] = "insert into table 1 values(? , ? , ?)";
              data[0][3] = "Edit";
              data[0][4] = "Del";
              data[1][0] = "2"; //we must get this value from the database, it is incremental identity
              data[1][1] = "BBB";
              data[1][2] = "insert into table2 values(? , ? , ? , ?)";
              data[1][3] = "Edit";
              data[1][4] = "Del";
    and this is the GeneralTableModel class
    public class GeneralTableModel extends AbstractTableModel implements Serializable
         public static Object [][] data;
         public static String[] columnNames;
         //these functions should be implemented to fill the grid
         public int getRowCount()
              return data.length;
         public int getColumnCount()
              return columnNames.length;
         public String getColumnName(int col)
    return columnNames[col];
         public Object getValueAt(int row , int col)
              return data[row][col];
         //i've implemented this function to enable events on added buttons
         public boolean isCellEditable(int rowIndex, int columnIndex)
              return true;
         public Class getColumnClass(int c)
    return getValueAt(0, c).getClass();
    public void setValueAt(Object value, int row, int col)
    //fireTableDataChanged();          
    data[row][col] = value;          
    fireTableCellUpdated(row, col);     
    And Now what i want to do is to delete the clicked row from the table, so please help me...
    thank you in advance

    Hi Sureshkumar,
    1. Create a value attribute named <b>select</b> of type boolean.
    2. Bind the <b>checked property</b> of all the checkboxes to this attribute.
    3. Create an action called <b>click</b> and bind it to <b>OnAction</b> event of the button(whose click will check all the checkboxes) and write this code in that action.
    <b>wdContext.currentContextElement().setSelect(true);</b>
    Warm Regards,
    Murtuza

  • Strange issue on deleting some rows on SYS.AUD$ table

    I just found out this strange thing happened on my 10gR2 database. I created a user called AUDIT_LOG and GRANT DELETE, REFERENCES, SELECT ON SYS.AUD$ TO AUDIT_LOG when I logged on as SYS dba.
    (1) Then I logged on as AUDIT_LOG user, tested the following statements:
    SELECT count(*) from sys.aud$ where ntimestamp# < TRUNC (SYSDATE-14);
    COUNT(*)
    2
    DELETE from sys.aud$ where ntimestamp# < TRUNC(SYSDATE-14);
    0 rows deleted
    (2) When I logged on as SYS account, SYS deleted them all,
    DELETE from sys.aud$ where ntimestamp# < TRUNC(SYSDATE-14);
    2 rows deleted
    I don't understand why the AUDIT_LOG user can't delete that two rows?
    Thanks for your help!
    lixidon

    Apologies for misreading the first time. I am wondering if the rows in question were related to audit actions on sys.aud$ itself as those rows should not be deleted by the AUDIT_LOG user (even if the user has been granted delete).
    Here's an excerpt from the Security Guide under the "Protecting the Standard Audit Trail" section:
    Audit records generated as a result of object audit options set for the SYS.AUD$ table can only be deleted from the audit trail by someone connected with administrator privileges, which itself has protection against unauthorized use.
    Here's a quick example illustrating this:
    SQL> connect / as sysdba
    Connected.
    SQL> grant delete, references, select on sys.aud$ to scott;
    Grant succeeded.
    SQL> connect scott/tiger
    Connected.
    SQL> select count(*) from sys.aud$ where sessionid = 30002;
      COUNT(*)
             2
    1 row selected.
    SQL> delete from sys.aud$ where sessionid = 30002;
    2 rows deleted.
    SQL> commit;
    -- now try to delete the sys.aud$ rows related to the above delete
    -- this will not succeed as user scott even though delete has been granted
    -- the session that performed the delete is 422426
    SQL> select count(*) from sys.aud$ where obj$name = 'AUD$' and action# = 7 and sessionid = 422426;
      COUNT(*)
             2
    1 row selected.
    SQL> delete from sys.aud$ where obj$name = 'AUD$' and action# = 7 and sessionid = 422426;
    0 rows deleted.
    SQL>Regards,
    Mark

  • WebDynpro : Delete Table Row

    HI All,
    Im developing a webdynpro application in which I have a table in which the data is fetched form the backend (Function module) and displayed.
    The Function Module takes in paramaters:
    1, Case_ID (for identifying wether to delete, insert or update a record)
    2. EMP ID
    3. First name
    4. Lastname
    5 Gender
    and returns the following :
    1. EMP ID
    2. First name
    3. Lastname
    4 Gender
    I have been able to insert the data in the table, now my requirement is that I should be able to select a row from the table and on click of the delete button, that row should get deleted.
    Simple.
    Please suggest how to work !!
    regards
    Saurabh

    Hi Bhardwaj,
    Consider you table node is DataNode. Then u get your current selected row as follows:
    wdContext.currentDataNodeElement().getLeadSelection().getEmpID() to get empid.
    Hope this helps you.
    You can get more help at :
    http://help.sap.com/saphelp_nw2004s/helpdata/en/17/87b941d25ae434e10000000a1550b0/frameset.htm
    Thanks,
    Shiva

  • Deleting table row when OnLeadSelection = none

    Hello experts.
    I have a table with some columns (Textviews and InputFields) and a Delete button.
    One of the requirements is that the LeadSelection will be set to None, which means that the user will set the cursor on one of the InputFields and by pressing the button the row will be deleted, and (of course) it means that i have no lead selection to work with.
    How can i do that? i know that in WD4J it can be done.
    Thx.
    Motty.

    Hi,
    data: lo_nd_user_entities   TYPE REF TO   if_wd_context_node,
           ls_user_entities      TYPE          wd_this->element_user_entities,
           lt_elements           TYPE          wdr_context_element_set,
           lo_elements           TYPE REF TO   if_wd_context_element.
    lt_elements = lo_nd_user_entities->get_selected_elements( ).
          CHECK NOT lt_elements[] IS INITIAL.
         IF lt_elements IS NOT INITIAL.
            LOOP AT lt_elements INTO lo_elements.
    Get Contents of selected Lines............
              CALL METHOD lo_elements->get_static_attributes
                IMPORTING
                  static_attributes = ls_user_entities.
            ENDLOOP.

  • Issue while deleting a row

    Hi,
    We have a VL view comprising of B and _TL table.
    Created an Entity Oject for _TL table , XXXTLEO
    Created an Entity Object for _VL view,XXXVLEO
    Created an association between these two EOs XXXToTLAO via Primary Key.
    Changed the Accessor Name in the Destination to OA_TL_ENTITIES.
    With the above association,we are able to create record in the B table. Also observed that corresponding records got inserted in to TL table.
    But when we try to delete the record we are getting an error.
    Unable to perform transaction on the record. \nCause: The record has been deleted by another user. \nAction: Cancel the transaction and re-query the records to get the new data.
    In the _TL table, there is no Object Version Number Column. Even after creating the same and making the same as change Indicator, we are facing the same error.
    Please let us know if we are missing any thing.
    Thanks in advance,
    Raghu

    Hi,
    We have a VL view comprising of B and _TL table.
    Created an Entity Oject for _TL table , XXXTLEO
    Created an Entity Object for _VL view,XXXVLEO
    Created an association between these two EOs XXXToTLAO via Primary Key.
    Changed the Accessor Name in the Destination to OA_TL_ENTITIES.
    With the above association,we are able to create record in the B table. Also observed that corresponding records got inserted in to TL table.
    But when we try to delete the record we are getting an error.
    Unable to perform transaction on the record. \nCause: The record has been deleted by another user. \nAction: Cancel the transaction and re-query the records to get the new data.
    In the _TL table, there is no Object Version Number Column. Even after creating the same and making the same as change Indicator, we are facing the same error.
    Please let us know if we are missing any thing.
    Thanks in advance,
    Raghu

  • How to delete the row from the ADF table using popup box

    Hi,
    I have one requirement like need to delete a record from the table, but that time need to show one popup window for confirmation of the deletion. I am using Delete buttom from the vo operations. I am able to delete the row with out popup but when i used the popup that time deletion is not happening.
    Can any one help me in this.
    Regards,

    Issue was resolved.

  • Deleting a row from a table using jsp

    Given a table in a jsp, can an user click on a row of that table and retrieve the information so that the program can delete a record from a database table?
    most of the tables that I have seen are static, the user cannot interact with them(specially when the user wants to delete several records from a database table).
    Can anyone suggests a good book or way of deleting a row from table using jsp.

    eg use a column in the table that has a radio button or check box,
    on submit, get all the rows that are checked, using the row as an index into your db store, get the key and use the key to issue the sql delete command.

  • Deleting a row from parent table

    Dear Guru's
    I am having two table with parent - child relationship. My problem is when I am deleting a row from parent table the curresponding child row from child table also should be deleted.
    My Primary table 'Employee, EMPID Primary key
    Child table 'Privilage' inthis EMPID referencing the EMPID of Employee table
    My need is when I am deleting a row from parent table the curresponding child row from child table also should be deleted
    I issued the SQL query like,
    delete from employee where empid='12345' cascade constraints;
    Then it showing me error like,
    ERROR at line 1:
    ORA-00933: SQL command not properly ended
    Please resolve my issue , Its Top urgent
    Thanks & Cheers
    Antony

    Choosing How Foreign Keys Enforce Referential Integrity
    Oracle Database allows different types of referential integrity actions to be enforced, as specified with the definition of a FOREIGN KEY constraint:
    Prevent Delete or Update of Parent Key The default setting prevents the deletion or update of a parent key if there is a row in the child table that references the key. For example:
    CREATE TABLE Emp_tab ( 
    FOREIGN KEY (Deptno) REFERENCES Dept_tab);Delete Child Rows When Parent Key Deleted The ON DELETE CASCADE action allows parent key data that is referenced from the child table to be deleted, but not updated. When data in the parent key is deleted, all rows in the child table that depend on the deleted parent key values are also deleted. To specify this referential action, include the ON DELETE CASCADE option in the definition of the FOREIGN KEY constraint. For example:
    CREATE TABLE Emp_tab (
        FOREIGN KEY (Deptno) REFERENCES Dept_tab 
            ON DELETE CASCADE); Set Foreign Keys to Null When Parent Key Deleted The ON DELETE SET NULL action allows data that references the parent key to be deleted, but not updated. When referenced data in the parent key is deleted, all rows in the child table that depend on those parent key values have their foreign keys set to null. To specify this referential action, include the ON DELETE SET NULL option in the definition of the FOREIGN KEY constraint. For example:
    CREATE TABLE Emp_tab (
        FOREIGN KEY (Deptno) REFERENCES Dept_tab 
            ON DELETE SET NULL);
    SQL> conn scott/tiger
    Connected.
    SQL> create table ppk ( no number primary key);
    Table created.
    SQL> begin for inn in 1..10 loop insert into ppk values (inn); end loop; end;
    PL/SQL procedure successfully completed.
    SQL> create table ffk ( no number references ppk(no));
    Table created.
    SQL> begin for inn in 1..10 loop insert into ffk values (inn); end loop; end;
    PL/SQL procedure successfully completed.
    SQL> drop table ppk cascade constraints;
    Table dropped.Message was edited by:
    user52
    Message was edited by:
    user52
    Message was edited by:
    user52

  • Delete a row in a table

    Hi,
    My requirement in OAF is to delete a row in a table if the row doesn't have mapping to another table.
    If there is a mapping then the row must not be deleted.
    I have created two VO and formed two ROW.
    While using my code if there exists a mapping for a row in two tables, then the row doesnt get deleted.
    But i want to DELETE when there exists no reference in second table.
    The Code used in AM is
    *public void deleteOU(String ReferenceId1) {*
    OAViewObject VOB=getBLTARBOUMAPEOView1();
    Row row=VOB.getCurrentRow();
    Boolean flag=false;
    *while(row!=null) {*
    OAViewObject VOB1=getBLTINVMAPVO1();
    Row row1=VOB1.first();
    *while(row1!=null) {*
    *if((row1.getAttribute("OuReffId").equals(ReferenceId1))){*
    flag=true;
    throw new OAException("Can't delete because Inventory is Assigned for this Operating Unit",OAException.ERROR);
    *else{*
    row1=VOB1.next();
    *if(flag==false){*
    System.out.println("Remove");
    row.remove();
    Ex:
    Table1
    ReferenceId OU
    1 ABC
    2 DEF
    Table2
    ReferenceId OUID
    2 567
    In the example my code must not allow to delete the 2nd ReferenceId in Table 1.
    Please advice.
    Thanks in Advance,
    Jegan

    Hi,
    I have modified the Query, now the row deletes the next row in the table.
    For ex:
    If i click 1st row second row is deleted.
    *public void deleteOU(String ReferenceId1) {*
    OAViewObject VOB=getBLTARBOUMAPEOView1();
    Row row=VOB.getCurrentRow();
    Boolean flag=false;
    *while(row!=null) {*
    System.out.println(ReferenceId1);
    OAViewObject VOB1=getBLTINVMAPVO1();
    Row row1=VOB1.first();
    *while(row1!=null) {*
    *if((row1.getAttribute("OuReffId").equals(ReferenceId1))){*
    flag=true;
    throw new OAException("Can't delete because Inventory is Assigned for this Operating Unit",OAException.ERROR);
    *else{*
    row1=VOB1.next();
    *if(row1==null){*
    row.remove();
    *//getOADBTransaction().commit();*
    throw new OAException("Deleted Successfully",OAException.CONFIRMATION);
    Please help to solve this issue.

  • Stored procedure to delete a row from a table

    I have forgotten how to do this and cant find my college notes so here goes...
    How do you create a stored prcedure to delete a row of data from a table, I want to pass in three parameters to identify the unique row. Any help would be great

    Since you use the work hyperlink, I'm assuming that you are developing some sort of web-based front end. If you are having flow control issues, you probably want to address your question to a forum that specializes in your particular front-end language/ environment/ framework. A JSP app using Struts, an ASP.Net app using C#, and a PHP app will all have rather different approaches to state control and page flow.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Delete a row in a table should affect in another table specified row

    hello ,
    my problem is let us  assume i have two table related to each other as
    dish       [d_id as primary key ,d_name,d_code,d_cost]
    dish_outlet    [id as primary key,d_id as foreign key,outlet_name,amt]
    i set foreign constraint in dish_outlet as foreign basetable as [dish_outlet] , foreign key as [d_id] , primary key table as [dish],primary key as [d_id].
    now i want to do as delete a row where d_id is let us suppose '1'  in dish table but also dish_outlet whose d_id will be '1' should also get deletd
    my issue is on [DELETE FROM dish WHERE d_id ='1'] query a row is deleted from dish table only.
    give a opinion or solution to my problem i need a query for vb.net and if foreign key setting is mistaken then need a procedure to solve it.
    im using vb.net with sqlserver 2005 with sqlserver management studio
    aziz

    use ondelete cascade option
    Please see below example for your reference
    CREATE TABLE dbo.cource
          courceID     INT   PRIMARY KEY,
          Name        VARCHAR(50)
    CREATE TABLE dbo.student
         studentID     INT   PRIMARY KEY,
         name     VARCHAR(50),
         courceID     INT   REFERENCES cource(courceID)
                            ON DELETE SET NULL
                            ON UPDATE CASCADE,
          Duration    TIME(0)
    INSERT      INTO dbo.cource(courceID  , Name)
    VALUES      (1,'c1'), (4,'c2')
    INSERT      INTO dbo.student (studentID,name, courceID, Duration)
    VALUES      (1, 's1' , 1, '00:07:08'),
                (2, 's2', 1, '00:07:52'),
                (3, 's3', 1, '00:07:56'),
                (4, 's4', 4, '00:05:12')
    DELETE FROM dbo.cource
    WHERE courceID = 1
    SELECT      A.courceid, A.Name,
                T.studentID, T.name, T.courceID, T.Duration
    FROM        dbo.cource  A
    RIGHT JOIN dbo.student T ON A.courceid = T.courceID
                

  • Is there a way to perform a batch delete Azure Table rows given a PartitionKey in a Single Call

    Is there any Efficient way to Perform deletion on Multiple Azure Table rows in a Single Call if I know the PartitionKey ( and RowKeys) - other than designing for "deleting the whole table" ?
    There were many older threads which infers that there is no way other then issuing in a Batch of 100. I want to know the latest POR - Are there any plans to support this scenario in near future ?

    Hi Sir,
    >>Is there any Efficient way to Perform deletion on Multiple Azure Table rows in a Single Call if I know the PartitionKey ( and RowKeys) - other than designing for "deleting the whole table" ?
    Generally, the batch operation is the good choice for deleting the multiple entities . See this similar threads(http://social.msdn.microsoft.com/Forums/azure/en-US/c5cf03b0-2001-4b11-91ce-7888bfc2605e/efficient-delete-multiple-rows-by-partitionkey
    >>There were many older threads which infers that there is no way other then issuing in a Batch of 100. I want to know the latest POR - Are there any plans to support this scenario in near future ?
    Currently, the max number of Batch is 100 in one single request. I suggest you could submit a feature request via this page:
     http://www.mygreatwindowsazureidea.com/forums/34192-windows-azure-feature-voting.
    Regards,
    Will 
    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.

  • How to delete the row in table control with respect to one field in module pool programming?

    Hi,
    Can I know the way to delete the row in table control with respect to one field in module pool programming
    Regards
    Darshan MS

    HI,
    I want to delete the row after the display of table control. I have created push button as delete row. If I click on this push button, the selected row should get deleted.
    I have written this code,
    module USER_COMMAND_9000 input.
    DATA OK_CODE TYPE SY-UCOMM.
    OK_CODE = SY-UCOMM.
    CASE OK_CODE.
         WHEN 'DELETE'.
            LOOP AT lt_source INTO ls_source WHERE mark = 'X'.
                APPEND LS_SOURCE TO LT_RESTORE.
                DELETE TABLE LT_SOURCE FROM LS_SOURCE.
                SOURCE-LINES = SOURCE-LINES - 1.
            ENDLOOP.
    But I'm unable to delete the selected rows, It is getting deleted the last rows eventhough I select the other row.
    So I thought of doing with respect to the field.

Maybe you are looking for

  • I need some drivers for my CD-RW/DVD-ROM drive

    I have been going through the apple site for a few hours here and I would really like to speak to a human being about this. This is not hard. I have a Pismo PowerBook G3, which I purchased online, used. Wiped the HD when I got it, installed 10.2.8. U

  • Name of exported PDF file

    <p>Hello,</p><p>I hope I'm in the correct section and that someone will be able to help me.</p><p>I run a web application (within Weblogic 8.1 sp5) which allows the direct generation of reports in PDF.<br />Each report has a unique name and I want th

  • What Server to use ?

    I'm building a client/server application. The client will be Swing based, and the business logic will all live on the server, accessed via RMI. What is the most appropriate "application server" to host the server side ? Running rmiregistry and the im

  • Same AS2 message to multiple partners

    Hello, We have a scenario where the same IDOC needs to be sent to one of many different partners (but only one partner at a time). Rather than hardcoding n routings in the receiver determination and having to create n comm channels, is it possible to

  • WBT- Follow up control options

    Hi Folks, I am settign up a new EWT course , when i maintained Follow up control option infotype as Learning porta A and activate button checked - i am getting a confirmation but on the portal ince i confirm by clicking it i am getting another FALSE